RE: reifyDecl and reifyType not working
Simon Peyton-Jones <[email protected]> Mon, 10 Sep 2007 08:59:45 +0100
| Newsgroups | gmane.comp.lang.haskell.template |
|---|---|
| Message-ID | <DCA83D5F3861C941808187D4D3878750129965E607@EA-EXMSG-C312.europe.corp.microsoft.com> |
'reifyDecl' is not a language construct; it's a function. You need to import Language.Haskell.TH to bring it into scope. If the user manual suggests otherwise, could you suggest improved wording? Simon | -----Original Message----- | From: [email protected] [mailto:[email protected]] On Behalf Of | Wolfgang Jeltsch | Sent: 08 September 2007 23:27 | To: [email protected] | Subject: [Template-haskell] reifyDecl and reifyType not working | | Hello, | | reifyDecl and reifyType seem to be recognized as identifiers and not as part | of TH syntax by GHC 6.7.20070903. Take, for example, the following code: | | {-# LANGUAGE TemplateHaskell #-} | | x = reifyDecl () | | If I compile this (with or without -fth), I get the error message “Not in | scope: `reifyDecl'”. What’s wrong here? | | Best wishes, | Wolfgang | _______________________________________________ | template-haskell mailing list | [email protected] | http://www.haskell.org/mailman/listinfo/template-haskell _______________________________________________ template-haskell mailing list [email protected] http://www.haskell.org/mailman/listinfo/template-haskell