Safe and very efficient arithmetic operations on fixed decimal point numbers

Version on this page:
LTS Haskell 15.1:
Stackage Nightly 2020-02-23:
Latest on Hackage:

See all snapshots safe-decimal appears in

BSD-3-Clause licensed by Alexey Kuleshevich
Maintained by

Module documentation for

This version can be pinned in stack with:safe-decimal-,1520


An implementation of a decimal point data type, that is backed by any custom integral type. It is safe, because all runtime exceptions and integer overflows are prevented on arithmetic operations, namely things like integer overflows, underflows, division by zero etc. are checked for during the runtime.


Changelog for decimal64

Unreleased changes