Fwd: [Haskell-cafe] HPC and literate haskell

2009-01-30 Thread Pavel Perikov
No I do not process it using lhs2tex. I just compile literate haskell code. The necessity of preprocessing kills the entire idea of having literate source. I just feed lhs files to ghc and everything works fine except code coverage. On 30.01.2009, at 5:35, Robin Green wrote: Have you tr

Re: [Haskell-cafe] HPC and literate haskell

2009-01-30 Thread Robin Green
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 wrote: > Hi, list! > > I have a file: > > \begin{code} > module Main where > import MyModule > > main=d

[Haskell-cafe] HPC and literate haskell

2009-01-30 Thread Pavel Perikov
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 "./MyMod