BSD-3-Clause licensed by Edward A. Kmett
Maintained by Edward A. Kmett
This version can be pinned in stack with:nats-1.1.2@sha256:604a8bc02bb3cb0331ab3b45eeaed54f8a78a1c34eea253688f06837f1f58c61,2749

Module documentation for 1.1.2

There are no documented modules for this package.

Used by 4 packages in nightly-2024-06-16(full list with versions):


Hackage Build Status

Haskell 98 natural numbers

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


1.1.2 [2018-02-06]

  • Don’t enable Safe on GHC 7.2.


  • Backported a more efficient Binary instance for Nat
  • Allow binary-0.8


  • Backported Lift instances.


  • Make nats a compat-package since Numeric.Natural moved to base-


  • Better readsPrec handling when you try to feed it a negative number. Not it is a failed parse rather than an error.


  • Added Hashable and Data support.

  • Will build as full-fledged Safe Haskell if you configure with -f-hashable, merely Trustworthy otherwise.

  • Allow for manual removal of the hashable dependency to support advanced sandbox users who explicitly want to avoid compiling certain dependencies they know they aren’t using.

    We will fix bugs caused by any combination of these package flags, but the API of the package should be considered the default build configuration with all of the package dependency flags enabled.


  • Added support for GHC 7.8’s bitSizeMaybe


  • Repository Initialized moving Numeric.Natural from semigroups 0.8.6