HORIZON HASKELLDocslts/ghc-9.14.x6d5fdfd2026-10-12Search packagesCtrl K
Theme: |

GHC 9.14.1 · lts/ghc-9.14.x · 6d5fdfd · 2026-10-12

ModuleChasingBottoms-1.3.1.17Haskell2010

Test.ChasingBottoms.Nat

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.

Synopsis
newtypenewtype Nat

Natural numbers.

No Data instance is provided, because the implementation should be abstract.

Instances9Enum, Eq, Integral, Num, Ord, Real, …
  • Enum NatDefined in ChasingBottoms-1.3.1.17 · Test.ChasingBottoms.Nat
  • Eq NatDefined in ChasingBottoms-1.3.1.17 · Test.ChasingBottoms.Nat
  • Integral NatDefined in ChasingBottoms-1.3.1.17 · Test.ChasingBottoms.Nat
  • Num NatDefined in ChasingBottoms-1.3.1.17 · Test.ChasingBottoms.Nat
  • Ord NatDefined in ChasingBottoms-1.3.1.17 · Test.ChasingBottoms.Nat
  • Real NatDefined in ChasingBottoms-1.3.1.17 · Test.ChasingBottoms.Nat
  • Show NatDefined in ChasingBottoms-1.3.1.17 · Test.ChasingBottoms.Nat
  • Arbitrary NatDefined in ChasingBottoms-1.3.1.17 · Test.ChasingBottoms.Nat
  • CoArbitrary NatDefined in ChasingBottoms-1.3.1.17 · Test.ChasingBottoms.Nat