HUnit: A unit testing framework for Haskell

[ bsd3, library, testing ] [ Propose Tags ]

HUnit is a unit testing framework for Haskell, inspired by the JUnit tool for Java, see:

[Skip to Readme]
Versions [faq] 1.1,,,,,,,,,,,,,,,,,,,
Dependencies base (>=4 && <4.9), deepseq (>=1.1) [details]
License BSD-3-Clause
Author Dean Herington
Maintainer Simon Hengel <>
Revised Revision 2 made by SimonHengel at Sat Feb 10 08:28:58 UTC 2018
Category Testing
Home page
Source repo head: git clone
Uploaded by qoelet at Fri Aug 21 08:48:43 UTC 2015
Distributions Arch:, Debian:, Fedora:, FreeBSD:, LTSHaskell:, NixOS:, Stackage:, openSUSE:
Downloads 196435 total (701 in the last 30 days)
Rating 2.25 (votes: 2) [estimated by rule of succession]
Your Rating
  • λ
  • λ
  • λ
Status Hackage Matrix CI
Docs available [build log]
Last success reported on 2015-08-21 [all 1 reports]




Note: This package has metadata revisions in the cabal description newer than included in the tarball. To unpack the package including the revisions, use 'cabal get'.

Maintainer's Corner

For package maintainers and hackage trustees

Readme for HUnit-

[back to package description]


HUnit is a unit testing framework for Haskell, inspired by the JUnit tool for Java. HUnit is free software; see its "License" file for details. HUnit is available at

HUnit 1.1.1 consists of a number of files. Besides Haskell source files in Test/HUnit (whose names end in ".hs" or ".lhs"), these files include:

  *       -- this file
  * doc/Guide.html  -- user's guide, in HTML format
  * LICENSE         -- license for use of HUnit

See the user's guide for more information.


  • removed support for old compilers

  • add source locations for failing assertions (GHC >= 7.10.2 only)