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

2013-04-07 Thread Johannes Waldmann
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

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

2013-04-06 Thread Nikolaos Bezirgiannis
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

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

2013-04-05 Thread Nikolaos Bezirgiannis
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

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

2013-04-05 Thread Krzysztof Skrzętnicki
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