Distribution.Simple.Program.Hpc

Cabal-3.16.0.0: A framework for packaging Haskell software

Copyright | Thomas Tuegel 2011
Maintainer | cabal-devel@haskell.org
Portability | portable
Safe Haskell | None
Language | Haskell2010

Distribution.Simple.Program.Hpc

Description

This module provides an library interface to the `hpc` program.

Synopsis

- markup :: Maybe (SymbolicPath CWD ('Dir Pkg)) -> ConfiguredProgram -> Version -> Verbosity -> SymbolicPath Pkg 'File -> [SymbolicPath Pkg ('Dir Mix)] -> SymbolicPath Pkg ('Dir Artifacts) -> [ModuleName] -> IO ()
- union :: Maybe (SymbolicPath CWD ('Dir Pkg)) -> ConfiguredProgram -> Verbosity -> [SymbolicPath Pkg 'File] -> SymbolicPath Pkg 'File -> [ModuleName] -> IO ()

# Documentation

markup Source #

Arguments

:: Maybe (SymbolicPath CWD ('Dir Pkg)) |
-> ConfiguredProgram |
-> Version |
-> Verbosity |
-> SymbolicPath Pkg 'File | Path to .tix file
-> [SymbolicPath Pkg ('Dir Mix)] | Paths to .mix file directories
-> SymbolicPath Pkg ('Dir Artifacts) | Path where html output should be located
-> [ModuleName] | List of modules to include in the report
-> 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.

union Source #

Arguments

:: Maybe (SymbolicPath CWD ('Dir Pkg)) |
-> ConfiguredProgram |
-> Verbosity |
-> [SymbolicPath Pkg 'File] | Paths to .tix files
-> SymbolicPath Pkg 'File | Path to resultant .tix file
-> [ModuleName] | List of modules to exclude from union
-> IO () |