
#10502: Bad interaction of sandboxes and coverage -------------------------------------+------------------------------------- Reporter: qnikst | Owner: Type: bug | Status: closed Priority: normal | Milestone: Component: Code Coverage | Version: 7.10.1 Resolution: invalid | Keywords: Operating System: Unknown/Multiple | Architecture: Type of failure: None/Unknown | Unknown/Multiple Blocked By: | Test Case: Related Tickets: | Blocking: | Differential Revisions: -------------------------------------+------------------------------------- Changes (by rwbarton): * status: new => closed * resolution: => invalid Comment: This is a Cabal issue, not a GHC issue. Cabal does not really support installing packages built with `--enable-coverage`. The installation will succeed, and the libraries themselves work, but Cabal does not install the `.mix` files anywhere, so running hpc on a program that uses the libraries will fail, as you found. You can just omit `--enable-coverage` from the `install --dependencies- only` command to get a coverage report that includes the modules from the library you are testing (here network-transport-tcp). If you really want to get a report of how the network-transport-tcp tests cover the modules in its dependencies, then you need support for this to be added to Cabal. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/10502#comment:1 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler