[Template-haskell] deriving data Foo = Foo { unFoo :: String } ?
Bulat Ziganshin
bulat.ziganshin at gmail.com
Sun May 25 09:00:27 EDT 2008
Hello Marc,
Sunday, May 25, 2008, 4:51:14 PM, you wrote:
> in return [DataD [] n' [] [RecC n' [(un,NotStrict,ConT un)]] []]
this probably eq to:
data Test = {unTest :: unTest}
last unTest is in the type name position
> test.hs|1 error|
> || Illegal type constructor or class name: `unTest'
> || When splicing generated code into the program
--
Best regards,
Bulat mailto:Bulat.Ziganshin at gmail.com
More information about the template-haskell
mailing list