#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:  new         
    Priority:  normal  |   Component:  GHCi        
     Version:  7.0.1   |    Keywords:              
    Testcase:          |   Blockedby:              
          Os:  Linux   |    Blocking:              
Architecture:  x86     |     Failure:  None/Unknown
-----------------------+----------------------------------------------------
 reify does not work on data structures defined in files without Language
 pragma of Template Haskell and without -fth or -XTemplateHaskell command
 line flags

 Main.hs: File with the splice expression
 Fields.hs: File with the Template Haskell code that lists all the fields
 in particular datastructures recursively.
 DataStructure.hs: File with the datastructure being reified in TH.hs

 When all the files have the TemplateHaskell Language pragma, everything
 works
 When the command line flag -fth or -XTemplateHaskell are used, everything
 works
 When the DataStructure.hs does not have the TemplateHaskell Language
 pragma, then when the data-structure is being reified in TH.hs, it
 generates blank lists for all the fields of TyConI (DataD ...

-- 
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/4946>
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

Reply via email to