Copyright | (c) Nils Anders Danielsson 2004-2020 |
---|---|
License | See the file LICENCE. |
Maintainer | http://www.cse.chalmers.se/~nad/ |
Stability | experimental |
Portability | non-portable (GHC-specific) |
Safe Haskell | None |
Language | Haskell98 |
Test.ChasingBottoms.Nat
Description
A simple implementation of natural numbers on top of Integer
s.
Note that since Integer
s are used there is no infinite natural
number; in other words, succ
is strict.
Documentation
Natural numbers.
No Data
instance is provided, because the implementation should
be abstract.