Approximate equality for floating point numbers with HUnit

LTS Haskell 9.18:
Stackage Nightly 2017-12-16:
Latest on Hackage:
BSD3 licensed and maintained by Richard Eisenberg

Module documentation for


Build Status

This Haskell package provides operators to test approximate equality among numerical values, compatible with HUnit. It uses implicit variables to make for a clean interface, where approximate comparison looks like a binary operator.


HUnit-approx changelog

  • Drop support for GHCs lower than 7.2.


  • Use HasCallStack to provide better locations for errors.

  • Remove -main-is for compatibility with cabal 2.0.


  • HUnit is Safe only in GHC 7.10 and above; this modifies Safety settings accordingly.


  • Initial release: assertApproxEquals, and assertion and test combinators.
Depends on 3 packages:
Used by 1 package:
comments powered byDisqus