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.11), deepseq [details]
License BSD-3-Clause
Author Dean Herington
Maintainer Simon Hengel <>
Revised Revision 1 made by SimonHengel at Sat Feb 10 08:29:00 UTC 2018
Category Testing
Home page
Source repo head: git clone
Uploaded by SimonHengel at Mon Jan 11 09:04:21 UTC 2016
Distributions Arch:, Debian:, Fedora:, FreeBSD:, LTSHaskell:, NixOS:, Stackage:, openSUSE:
Downloads 197513 total (704 in the last 30 days)
Rating 2.25 (votes: 2) [estimated by Bayesian average]
Your Rating
  • λ
  • λ
  • λ
Status Hackage Matrix CI
Docs available [build log]
Last success reported on 2016-01-11 [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.


  • add minimal support for GHC 8.0

  • removed support for old compilers

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