I have a program that is built up of many C++ and Haskell files.
I compile all of the Haskell with -fhpc
flag so that I may run coverage tests on it.
After compiling is finished, I run the program and several .tix
files are generated.
The problem: I attempt to run hpc markup build/Server --srcdir=.
for instance.
It will then generate some files, but fail prematurely:
Writing: file1.hs.html
Writing: file2.hs.html
Writing: file3.hs.html
hpc: can not find Main in ["./.hpc"]
The directory .hpc
exists, and it does contain a file called Main.mix
alongside other .mix
files.
I've noticed some people reporting the same issues on IRC chat logs, but nowhere have I found a solution for this. Does anyone have this experience with hpc?
Edit: How I compile I have a fairly complicated compiling scheme. I actually just wrote it down in another question.
I use a very specific package library which I specify explicitly by using --no-user-package-db
and --package-db=/usr/local/ghc-7.6.3-200814
.
That directory's listings is available here