[Haskell-cafe] HPC and literate haskell

Robin Green greenrd at greenrd.org
Thu Jan 29 21:35:42 EST 2009


Have you tried processing the file with lhs2tex first, to unlit it? (Or
is that what you are doing? It's unclear from your email.)
-- 
Robin

On Fri, 30 Jan 2009 16:02:08 +0300
Pavel Perikov <perikov at gmail.com> wrote:

> Hi, list!
> 
> I have a file:
> 
> \begin{code}
> module Main where
> import MyModule
> 
> main=do
>     print "hello"
> \end{code}
> 
> 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), 
> (3:9-3:9,Exp
> 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?
> 
> Pavel


More information about the Haskell-Cafe mailing list