BSD-3-Clause licensed by Edward A. Kmett
Maintained by Edward A. Kmett
This version can be pinned in stack with:approximate-0.3.5@sha256:12f78c8eafbd07e6c1e0f51d8c2835dfec9784fde703feb7d105ba6caa0dc183,2227


Hackage Build Status

This package provides approximate numbers and discrete values with lower bounds on their probability of correctness.

Contact Information

Contributions and bug reports are welcome!

Please feel free to contact me through github or on the #haskell IRC channel on

-Edward Kmett


0.3.5 [2021.11.16]

  • Add Eq1 instances for Approximate and Mass.
  • Allow building with hashable-1.4.*.
  • Drop support for pre-8.0 versions of GHC.

0.3.4 [2021.02.21]

  • Fix the build with safecopy-0.10.4 or later.

0.3.3 [2021.02.17]

  • Allow building with lens-5.*.
  • The build-type has been changed from Custom to Simple. To achieve this, the doctests test suite has been removed in favor of using cabal-docspec to run the doctests.

0.3.2 [2019.09.13]

  • Allow building with safecopy-0.10.


  • Add a library dependency on the doctests test suite


  • Replace use of Hashable1 from hashable-extras in favor of Hashable from hashable- As a result, the hashable-extras dependency has been removed.
  • Revamp Setup.hs to use cabal-doctest. This makes it build with Cabal-2.0, and makes the doctests work with cabal new-build and sandboxes.

  • Added support for safecopy 0.9 and cereal 0.5

  • Compiles warning-free on GHC 7.10

  • Bumped cereal bounds


  • Removed the data-default dependency
  • Increased range of supported versions of generic-deriving.


  • Ported Data.Approximate.Numerics from analytics


  • Ported Data.Approximate.Type and Data.Approximate.Mass from analytics