Safe Haskell | Safe |
---|---|
Language | Haskell98 |
Data.Number.Natural
Description
Lazy natural numbers.
Addition and multiplication recurses over the first argument, i.e.,
1 + n
is the way to write the constant time successor function.
Note that (+) and (*) are not commutative for lazy natural numbers when considering bottom.
Documentation
Instances
Enum Natural Source # | |
Eq Natural Source # | |
Integral Natural Source # | |
Defined in Data.Number.Natural | |
Num Natural Source # | |
Ord Natural Source # | |
Real Natural Source # | |
Defined in Data.Number.Natural Methods toRational :: Natural -> Rational # | |
Show Natural Source # | |