Ticket #2991 (new bug)
.mix files generation broken with -fhpc and --make flags with lhs modules
| Reported by: | ppavel | Owned by: | andy@… |
|---|---|---|---|
| Priority: | lowest | Milestone: | 7.6.1 |
| Component: | Code Coverage | Version: | 6.10.1 |
| Keywords: | hpc make lhs | Cc: | andygill@… |
| Operating System: | Unknown/Multiple | Architecture: | Unknown/Multiple |
| Type of failure: | Difficulty: | Unknown | |
| Test Case: | Blocked By: | ||
| Blocking: | Related Tickets: |
Description
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
Change History
Note: See
TracTickets for help on using
tickets.
