ghc-lib-parser-9.12.2.20250421: The GHC API, decoupled from GHC versions

Safe Haskell | Ignore
Language | GHC2021

GHC.Types.HpcInfo

Description

Haskell Program Coverage (HPC) support

Synopsis

- data HpcInfo
  - = HpcInfo {
    - hpcInfoTickCount :: Int
    - hpcInfoHash :: Int
    }
  - | NoHpcInfo {
    - hpcUsed :: AnyHpcUsage
    }
- type AnyHpcUsage = Bool
- emptyHpcInfo :: AnyHpcUsage -> HpcInfo
- isHpcUsed :: HpcInfo -> AnyHpcUsage

# Documentation

data HpcInfo Source #

Information about a modules use of Haskell Program Coverage

Constructors

HpcInfo |

Fields

- hpcInfoTickCount :: Int
- hpcInfoHash :: Int

NoHpcInfo |

Fields

- hpcUsed :: AnyHpcUsage

  Is hpc used anywhere on the module *tree*?

type AnyHpcUsage = Bool Source #

This is used to signal if one of my imports used HPC instrumentation even if there is no module-local HPC usage

emptyHpcInfo :: AnyHpcUsage -> HpcInfo Source #

isHpcUsed :: HpcInfo -> AnyHpcUsage Source #

Find out if HPC is used by this module or any of the modules it depends upon