| 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 | Haskell2010 |
Test.ChasingBottoms.Nat
Description
A simple implementation of natural numbers on top of Integers.
Note that since Integers 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.
Instances
| Enum Nat Source # | |
| Eq Nat Source # | |
| Integral Nat Source # | |
| Num Nat Source # | |
| Ord Nat Source # | |
| Real Nat Source # | |
Defined in Test.ChasingBottoms.Nat Methods toRational :: Nat -> Rational | |
| Show Nat Source # | |
| Arbitrary Nat Source # | |
| CoArbitrary Nat Source # | |
Defined in Test.ChasingBottoms.Nat Methods coarbitrary :: Nat -> Gen b -> Gen b | |