[Haskell-cafe] HPC and literate haskell

Pavel Perikov perikov at gmail.com
Fri Jan 30 08:02:08 EST 2009

Hi, list!

I have a file:

module Main where
import MyModule

    print "hello"

MyModule is in MyModule.lhs

when building with

ghc -o main -fhpc --make Main.lhs

I get perfectly working code, but MyModule.mix lacks any usable  
coverage information:

Mix "./MyModule.lhs" 1233320065 1385570408 1 []

After renaming MyModule.lhs to MyModule.hs and unlitting it everything  
works fine:

Mix "./MyModule.hs" 1233320249 3220649115 1 [(3:8-3:8,ExpBox False), 
Box False),(3:7-3:10,ExpBox False),(3:1-3:10,TopLevelBox ["func2"])]

I'm using ghc 6.10.1 on Mac OSX.

Does anyone have this problem? are any workarounds available?


More information about the Haskell-Cafe mailing list