Re: [Haskell-cafe] HList, hOccurs and MonadReader - solved

2007-02-22 Thread Marc Weber
On Thu, Feb 22, 2007 at 07:34:36PM -0800, Stefan O'Rear wrote: > This really smells like a violation of the "monomorphism > restriction"[1]. Try again with -fno-monomorphism-restriction, and if > that fixes it, add a type signature to fix it for good. > > [1] http://haskell.org/onlinereport/decls

Re: [Haskell-cafe] HList, hOccurs and MonadReader

2007-02-22 Thread Stefan O'Rear
This really smells like a violation of the "monomorphism restriction"[1]. Try again with -fno-monomorphism-restriction, and if that fixes it, add a type signature to fix it for good. [1] http://haskell.org/onlinereport/decls.html#sect4.5.5 Stefan ___ H

[Haskell-cafe] HList, hOccurs and MonadReader

2007-02-22 Thread Marc Weber
Having the module given below I can't see why using printAndRerun l1 printAndRerun2 l2 but not printAndRerun l1 printAndRerun l2 ? They only differ in their name. Can you point me in the right direction? {-# OPTI