Cabal-1.14.0: A framework for packaging Haskell softwareContentsIndex
Distribution.Simple.Hpc
Portabilityportable
Maintainercabal-devel@haskell.org
Description
This module provides functions for locating various HPC-related paths and a function for adding the necessary options to a PackageDescription to build test suites with HPC enabled.
Synopsis
enableCoverage :: Bool -> String -> PackageDescription -> PackageDescription
htmlDir :: FilePath -> FilePath -> FilePath
tixDir :: FilePath -> FilePath -> FilePath
tixFilePath :: FilePath -> FilePath -> FilePath
markupPackage :: Verbosity -> LocalBuildInfo -> FilePath -> String -> [TestSuite] -> IO ()
markupTest :: Verbosity -> LocalBuildInfo -> FilePath -> String -> TestSuite -> IO ()
Documentation
enableCoverage
:: BoolEnable coverage?
-> String"dist/" prefix
-> PackageDescription
-> PackageDescription

Conditionally enable Haskell Program Coverage by adding the necessary GHC options to a PackageDescription.

TODO: do this differently in the build stage by constructing local build info, not by modifying the original PackageDescription.

htmlDir
:: FilePath"dist/" prefix
-> FilePathComponent name
-> FilePathPath to test suite's HTML markup directory
tixDir
:: FilePath"dist/" prefix
-> FilePathComponent name
-> FilePathDirectory containing test suite's .tix files
tixFilePath
:: FilePath"dist/" prefix
-> FilePathComponent name
-> FilePathPath to test suite's .tix file
Path to the .tix file containing a test suite's sum statistics.
markupPackage
:: Verbosity
-> LocalBuildInfo
-> FilePath"dist/" prefix
-> StringLibrary name
-> [TestSuite]
-> IO ()
Generate the HTML markup for all of a package's test suites.
markupTest
:: Verbosity
-> LocalBuildInfo
-> FilePath"dist/" prefix
-> StringLibrary name
-> TestSuite
-> IO ()
Generate the HTML markup for a test suite.
Produced by Haddock version 2.6.1