#4946: reify does not work on data structures defined in files without Language
pragma of Template Haskell and without -fth or -XTemplateHaskell command
line flags
---------------------------+------------------------------------------------
Reporter: guest | Owner:
Type: bug | Status: closed
Priority: normal | Milestone: 7.4.1
Component: GHCi | Version: 7.0.1
Resolution: invalid | Keywords:
Testcase: | Blockedby:
Difficulty: | Os: Linux
Blocking: | Architecture: x86
Failure: None/Unknown |
---------------------------+------------------------------------------------
Changes (by simonpj):
* status: new => closed
* resolution: => invalid
Comment:
Yes, you need to compile `DataStructures.hs` either with `-fno-omit-
interface-pragmas` (or with `-O` which implies that), or with
`-XTemplateHaskell`. I've added a note to
[http://haskell.org/haskellwiki/Template_Haskell#What_can_reify_see.3F the
TH wiki] to mention this. Do improve it.
Trying this out did show up a buglet to do with record fields, which I'm
fixing too.
Simon
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/4946#comment:4>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
_______________________________________________
Glasgow-haskell-bugs mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs