#2991: .mix files generation broken with -fhpc and --make flags with lhs modules
-----------------------------+----------------------------------------------
Reporter:  ppavel            |          Owner:                  
    Type:  bug               |         Status:  new             
Priority:  normal            |      Component:  Compiler        
 Version:  6.10.1            |       Severity:  normal          
Keywords:  hpc make lhs      |       Testcase:                  
      Os:  Unknown/Multiple  |   Architecture:  Unknown/Multiple
-----------------------------+----------------------------------------------
 assume the project consisting of two files: !Main.lhs and !MyModule.hs.
 Main.lhs imports !MyModule via standard import. Build the project with

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

 The generated .mix file contains relevant information and hpc markup
 correctly shows the coverage for !MyModule.

 Now rename !MyModule.hs to !MyModule.lhs and enclose the code there in
 \begin{code} / \end{code}. Build again. The compilation still succeeds and
 the executable works fine. But !MyModule.mix now seems wrong and no hpc
 coverage information is available for !MyModule

-- 
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/2991>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
_______________________________________________
Glasgow-haskell-bugs mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs

Reply via email to