Safe Haskell | Safe-Inferred |
---|---|
Language | GHC2021 |
Generate HPC (Haskell Program Coverage) reports
Synopsis
- data HpcReportOpts = HpcReportOpts {
- hroptsInputs :: [Text]
- hroptsAll :: Bool
- hroptsDestDir :: Maybe String
- hroptsOpenBrowser :: Bool
- hpcReportCmd :: HpcReportOpts -> RIO Runner ()
- deleteHpcReports :: HasEnvConfig env => RIO env ()
- updateTixFile :: HasEnvConfig env => PackageName -> Path Abs File -> String -> RIO env ()
- generateHpcReport :: HasEnvConfig env => Path Abs Dir -> Package -> [Text] -> RIO env ()
- generateHpcReportForTargets :: HasEnvConfig env => HpcReportOpts -> [Text] -> [Text] -> RIO env ()
- generateHpcUnifiedReport :: HasEnvConfig env => RIO env ()
- generateHpcMarkupIndex :: HasEnvConfig env => RIO env ()
Documentation
data HpcReportOpts Source #
Type representing command line options for the stack hpc report
command.
HpcReportOpts | |
|
Instances
Show HpcReportOpts Source # | |
Defined in Stack.Coverage showsPrec :: Int -> HpcReportOpts -> ShowS # show :: HpcReportOpts -> String # showList :: [HpcReportOpts] -> ShowS # |
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.
generateHpcReportForTargets :: HasEnvConfig env => HpcReportOpts -> [Text] -> [Text] -> RIO env () Source #
generateHpcUnifiedReport :: HasEnvConfig env => RIO env () Source #
generateHpcMarkupIndex :: HasEnvConfig env => RIO env () Source #