Re: example of derive using Template Haskell?
Lemmih <[email protected]> Tue, 11 Jan 2005 18:19:52 +0100
| Newsgroups | gmane.comp.lang.haskell.template |
|---|---|
| Message-ID | <[email protected]> |
On Tue, 11 Jan 2005 11:19:47 -0500 (Eastern Standard Time), S. Alexander Jacobson <[email protected]> wrote: > I understand that '[d|...|]' creates a Q [Dec], > but in practice GHC 6.2.2 interprets it as a > syntax error. Do I need to do something to enable > it? [...] >From the user guide: "You need to use the flag -fth to switch these syntactic extensions on (-fth is currently implied by -fglasgow-exts, but you are encouraged to specify it explicitly).", but you have to realize that your example is not valid Haskell code. -- Friendly, Lemmih