Re: deriving data Foo = Foo { unFoo :: String } ?

Bulat Ziganshin <[email protected]> Sun, 25 May 2008 17:00:27 +0400
Newsgroups gmane.comp.lang.haskell.template
Message-ID <[email protected]>
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:[email protected]