Re: declaration splicing
Lemmih <[email protected]> Sun, 13 Mar 2005 17:54:11 +0100
| Newsgroups | gmane.comp.lang.haskell.template |
|---|---|
| Message-ID | <[email protected]> |
On Sun, 13 Mar 2005 23:31:28 +0800 (GMT-8), WANG Meng <[email protected]> wrote: > Hi All, > > I am trying to use template haskell to splice top level declarations. > However, GHC complains > "<interactive>:1: Variable not in scope: `splice'" >From http://www.haskell.org/ghc/docs/6.4/html/users_guide/template-haskell.html: 'Note that the syntax for a declaration splice uses "$" not "splice" as in the paper. Also the type of the enclosed expression must be Q [Dec], not [Q Dec] as in the paper.' -- Friendly, Lemmih