| Copyright | (c) Ross Paterson 2021 |
|---|---|
| License | BSD-style (see the file LICENSE) |
| Maintainer | R.Paterson@city.ac.uk |
| Stability | provisional |
| Portability | portable |
| Safe Haskell | None |
| Language | Haskell2010 |
Data.YAP.Peano
Description
An example instance of the algebraic classes: lazy Peano numerals.
Documentation
Lazy Peano numerals: a unary representation of the natural numbers, which is very inefficient, but does offer lazy semantics.
Instances
| Read Peano Source # | |
| Show Peano Source # | |
| Eq Peano Source # | |
| Ord Peano Source # | |
| AdditiveMonoid Peano Source # |
|
| Euclidean Peano Source # | |
| Semiring Peano Source # | |
| StandardAssociate Peano Source # | The only unit is |
| ToInteger Peano Source # | |
Defined in Data.YAP.Peano | |
| ToRational Peano Source # | |
Defined in Data.YAP.Peano Methods toRational :: Peano -> Rational # | |