[Template-haskell] declaration splicing
Lemmih
lemmih at gmail.com
Sun Mar 13 11:54:11 EST 2005
On Sun, 13 Mar 2005 23:31:28 +0800 (GMT-8), WANG Meng
<wangmeng at comp.nus.edu.sg> 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
More information about the template-haskell
mailing list