HORIZON HASKELLDocslts/ghc-10.0.x8174fa42026-10-11Search names, modules, packages, or :: a typeCtrl K

GHC 10.0.0.20260917 · lts/ghc-10.0.x · 8174fa4 · 2026-10-11

ModuleCabal-3.18.1.0Haskell2010

Distribution.Simple.Program.Hpc

This module provides an library interface to the hpc program.

  • 2 values
  • PackageCabal-3.18.1.0
  • Exports2
  • LanguageHaskell2010
  • LicenceBSD-3-Clause
  • SourceHpc.hs
valuemarkup
  1. :: Maybe (SymbolicPath CWD ('Dir Pkg))
  2. -> ConfiguredProgram
  3. -> Version
  4. -> Verbosity
  5. -> SymbolicPath Pkg 'File

    Path to .tix file

  6. -> [SymbolicPath Pkg ('Dir Mix)]

    Paths to .mix file directories

  7. -> SymbolicPath Pkg ('Dir Artifacts)

    Path where html output should be located

  8. -> [ModuleName]

    List of modules to include in the report

  9. -> IO ()
#

Invoke hpc with the given parameters.

Prior to HPC version 0.7 (packaged with GHC 7.8), hpc did not handle multiple .mix paths correctly, so we print a warning, and only pass it the first path in the list. This means that e.g. test suites that import their library as a dependency can still work, but those that include the library modules directly (in other-modules) don't.