stack-3.7.1: The Haskell Tool Stack
LicenseBSD-3-Clause
Safe HaskellNone
LanguageGHC2021

Stack.Coverage

Description

Generate HPC (Haskell Program Coverage) reports.

Synopsis

Documentation

hpcReportCmd :: HpcReportOpts -> RIO Runner () Source #

Function underlying the stack hpc report command.

deleteHpcReports :: HasEnvConfig env => RIO env () Source #

Invoked at the beginning of running with "--coverage"

updateTixFile :: HasEnvConfig env => PackageName -> Path Abs File -> String -> RIO env () Source #

Move a tix file into a sub-directory of the hpc report directory. Deletes the old one if one is present.

generateHpcReport :: HasEnvConfig env => Path Abs Dir -> Package -> [Text] -> RIO env () Source #

Generates the HTML coverage report and shows a textual coverage summary for a package.

generateHpcUnifiedReport :: HasEnvConfig env => RIO env () Source #

Generates the HTML unified coverage report.

generateHpcMarkupIndex :: HasEnvConfig env => RIO env () Source #

Generates the HTML index report.