notzero

A data type for representing numeric values, except zero. https://github.com/NICTA/notzero

Latest on Hackage:0.0.11

This package is not currently in any snapshots. If you're interested in using it, we recommend adding it to Stackage Nightly. Doing so will make builds more reliable, and allow stackage.org to host generated Haddocks.

BSD3 licensed and maintained by Tony Morris <ʇǝu˙sıɹɹoɯʇ@ןןǝʞsɐɥ> <dibblego>

A data type for representing numeric values, except zero. This might be useful in working with process exit codes.

Changes

0.0.11

* Update dependencies.

0.0.9

* Require GHC >= 7.8
* Add `notZeroElse1`

0.0.8

* Change use of `fmap` to `liftM` for older GHC versions.

0.0.7

* Fix invariant break in `notZeroElse`.

0.0.6

* Fix bug in `notZeroElse`.

0.0.5

* Changed `notZero1` to just be the value 1.

0.0.4

* Add `NotZero` functions to construct with default.

0.0.3

* Monoid instances on `NotZeroOr` and `AccNotZeroOr`.

0.0.2

* Semigroup instances on `NotZeroOr` and `AccNotZeroOr`.

0.0.1

* Initial version
comments powered byDisqus