HORIZON HASKELLDocslts/ghc-9.10.xc74966e2026-09-27Search names, modules, packages, or :: a typeCtrl K

GHC 9.10.3 · lts/ghc-9.10.x · c74966e · 2026-09-27

ModuleCabal-3.12.1.0Haskell2010

Distribution.Simple.Program.Hpc

This module provides an library interface to the hpc program.

  • 2 values
  • PackageCabal-3.12.1.0
  • Exports2
  • LanguageHaskell2010
  • LicenceBSD-3-Clause
  • SourceHpc.hs
valuemarkup
  1. :: ConfiguredProgram
  2. -> Version
  3. -> Verbosity
  4. -> FilePath

    Path to .tix file

  5. -> [FilePath]

    Paths to .mix file directories

  6. -> FilePath

    Path where html output should be located

  7. -> [ModuleName]

    List of modules to include in the report

  8. -> 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.