HPC and Template Haskell don't mix
When compiling code that uses Template Haskell with HPC, ghc fails part way with
ghc: _objs/Common/ArrayTH.hpc_o: unknown symbol `_hs_hpc_module'
I guess this is expected for the same reasons that HPC is known not to mix with GHCi. However, I would have expected the same workaround as for profiling to work, namely building the normal objects first and then building with -fhpc -osuf hpc_o, and it doesn't.
Trac metadata
Trac field | Value |
---|---|
Version | 6.8.1 |
Type | Bug |
TypeOfFailure | OtherFailure |
Priority | normal |
Resolution | Unresolved |
Component | Compiler |
Test case | |
Differential revisions | |
BlockedBy | |
Related | |
Blocking | |
CC | ganesh.sittampalam@credit-suisse.com |
Operating system | Unknown |
Architecture | Unknown |