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
I switched to profiling through Cabal as you suggested, but now I have
the error:
bench\HLogo\Custom\Custom.hs:1:1:
cannot find normal object file
`dist\build\custom\custom-tmp\Framework\Keyword.o'
while linking an interpreted expression
So, I removed managing the executables directly
Hello,
i have an executable where i want to run profiling on.
I do:
ghc --make -prof -auto-all -fth Custom.hs
but it does not built and the output is:
bench\HLogo\Custom\Custom.hs:1:1:
Dynamic linking required, but this is a non-standard build (eg. prof).
You need to build the
You are using TemplateHaskell (-fth switch) which can be tricky. Please see
this documentation on profiling with TH:
http://www.haskell.org/ghc/docs/7.6.1/html/users_guide/template-haskell.html#id624714.
Other than following the documentation I would recommend using Cabal
which handles the