[Haskell-cafe] Error when building executable with profiling enabled

Johannes Waldmann waldmann at imn.htwk-leipzig.de
Sun Apr 7 15:17:01 CEST 2013


Krzysztof Skrzętnicki <gtener <at> gmail.com> writes:

> see this documentation on profiling with TH:
http://www.haskell.org/ghc/docs/7.6.1/html/users_guide/template-haskell.html#id624714


"GHC cannot load the profiled object code 
and use it when executing the splices."

That means I do not get profiling information 
for the code that gets spliced in? 
Or for the code that is producing the splice?

What's the work-around for the first case?
(short of -ddump-splices, which seems somewhat problematic,
according to   http://hackage.haskell.org/trac/ghc/ticket/5016 )

- J.W.





More information about the Haskell-Cafe mailing list