RE: [Haskell-cafe] template haskell overly conservative during splicing?

2008-11-26 Thread Simon Peyton-Jones
-cafe] template haskell overly conservative during splicing? | | When using template haskell (via Derive) to generate this (exact) instance: | | instance Foldable ((->) Int) => Foldable | Data.Derivable.InterpreterLib.Test.List | where foldMap f (Cons x0 x1) = (const mempty Cons `mappend` | f

[Haskell-cafe] template haskell overly conservative during splicing?

2008-11-03 Thread Nicolas Frisby
When using template haskell (via Derive) to generate this (exact) instance: instance Foldable ((->) Int) => Foldable Data.Derivable.InterpreterLib.Test.List where foldMap f (Cons x0 x1) = (const mempty Cons `mappend` foldMap f x0) `mappend` foldMap f x1 foldMap f (Nil) = const