[Template-haskell] reifyDecl and reifyType not working

Simon Peyton-Jones simonpj at microsoft.com
Mon Sep 10 03:59:45 EDT 2007


'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: template-haskell-bounces at haskell.org [mailto:template-haskell-bounces at haskell.org] On Behalf Of
| Wolfgang Jeltsch
| Sent: 08 September 2007 23:27
| To: template-haskell at haskell.org
| 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
| template-haskell at haskell.org
| http://www.haskell.org/mailman/listinfo/template-haskell


More information about the template-haskell mailing list