[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? {-#

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 ___