Code Coverage Library for Haskell

Version on this page:
LTS Haskell 22.29:
Stackage Nightly 2024-07-17:
Latest on Hackage:

See all snapshots hpc appears in

BSD-3-Clause licensed by Andy Gill
Maintained by [email protected]
This version can be pinned in stack with:hpc-,1113

Module documentation for

This package provides the code coverage library for Haskell.

See https://www.haskell.org/haskellwiki/Haskell_program_coverage for more information.


Changelog for hpc package August 2023

  • The function readMix no longer uses lazyIO to read .mix files, which is consistent with the behaviour of the readTix function.
  • The import of the modules from this package is no longer considered safe, since we use functions from the System.Directory module from the directory package which is no longer considered safe beginning from version 1.3.8.
  • Replace uses of String by FilePath in functions readTix, writeTix, getTixFileName, readMix and mixCreate.
  • Remove support for version of GHC below 8.6 September 2021

  • Addition of NFData instances for Tix and TixModule October 2019

  • Addition of readFileUtf8 and writeFileUtf8 functions.
  • Ensure .tix files read and written in UTF-8, regadless of the system locale. May 2016

  • Bundled with GHC 8.0.1

  • Improved error messages (#10529) Mar 2015

  • Bundled with GHC 7.10.1

  • Allow same Mix file in different dirs (#9619) Mar 2014

  • Bundled with GHC 7.8.1

  • Update to Cabal 1.10 format

  • Drop support for GHC prior to version 7.2.2

  • Minor improvements to Haddock docs