BSD-3-Clause licensed by Edward A. Kmett
Maintained by Edward A. Kmett
This version can be pinned in stack with:compensated-0.7.3@sha256:6c26f26cb0cc3d08b81dfc30024178f32fc286f4bbd311b73fe3940b0596a4ab,2696

Module documentation for 0.7.3


Hackage Build Status

This package provides a form of compensated arithmetic that lets you perform many operations on chains of doubles at higher precision.

In particular addition, multiplication, etc. on a Compensated Double is done with twice as many bits of significand as on a raw Double.

This construction is designed so that it can be iterated.

This was forked from the analytics repository after repeated requests.

Work still needs to be done to properly support most Floating operations, but everything below that level of the numeric hierarchy should work.

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.7.3 [2019.09.13]

  • Allow building with safecopy-0.10.


  • Add a library dependency on the doctests test suite


  • 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.


  • Support for newer bifunctors, cereal, deepseq, generic-deriving, semigroupoid and vector dependencies.`


  • Updated for lens 4.
  • Bug fix in (/=)


  • Marked this package Trustworthy.


  • Added NFData and Serial instances


  • Major version bump due to large semantics change in log-domain.

  • Wider generic-deriving version bounds for GHC HEAD compatibility.


  • Added a Hashable instance.

  • Wider binary version bounds.


  • Fixed a bug in the Setup.lhs postHaddock hook.
  • Reformatted haddocks