[GHC] #651: Template Haskell doesn't work with profiling

GHC trac at galois.com
Thu Jan 12 05:16:39 EST 2006


#651: Template Haskell doesn't work with profiling
-------------------------+--------------------------------------------------
    Reporter:  simonmar  |        Owner:         
        Type:  bug       |       Status:  new    
    Priority:  normal    |    Milestone:         
   Component:  Compiler  |      Version:  6.4.1  
    Severity:  normal    |     Keywords:         
          Os:  Unknown   |   Difficulty:  Unknown
Architecture:  Unknown   |  
-------------------------+--------------------------------------------------
We've known about this for a long time, but I can't find a ticket for it,
 so I'm opening one.

 TH needs to load object code for the program in order to evaluate splices
 during compilation.  However, the interpreter doesn't work with profiled
 object code, so the result is that you can't compile a template-haskell
 program for profiling, which is pretty annoying.

 Is it possible to compile the program twice, once without profiling, and
 again with profiling, and use appropriate flags to tell GHC which .o files
 to load when evaluating the TH splices?  I don't think so right now, but
 it's possible I'm wrong.  If not, we should be able to devise a suitable
 flag that would let you do this.

-- 
Ticket URL: <http://cvs.haskell.org/trac/ghc/ticket/651>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler


More information about the Glasgow-haskell-bugs mailing list