
#1853: hpc mix files for Main modules overwrite each other -------------------------------------+------------------------------------- Reporter: guest | Owner: AndyGill Type: bug | Status: new Priority: lowest | Milestone: 7.12.1 Component: Code Coverage | Version: 6.8.1 Resolution: | Keywords: Operating System: Linux | Architecture: x86_64 Type of failure: None/Unknown | (amd64) Blocked By: | Test Case: Related Tickets: | Blocking: | Differential Revisions: -------------------------------------+------------------------------------- Comment (by thomie): Replying to [comment:12 andygill]:
This one is tricky to fix, because of a baked in assumption. If anyone wants to help, or if I can find a willing student, I can give guidance about how to fix it.
@andygill. I am currently looking at hpc. Do you think this issue is worth fixing? Multiple programs in the same directory can be nicely handled using `-main-is`. The following doesn't overwrite any .mix files: {{{#!hs $ cat ProgramA.hs module ProgramA where main = return () $ cat ProgramB.hs module ProgramB where main = return () $ ghc -fhpc -main-is ProgramA ProgramA $ ghc -fhpc -main-is ProgramB ProgramB $ ls .hpc ProgramA.mix ProgramB.mix }}} -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/1853#comment:16 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler