HORIZON HASKELLDocslts/ghc-10.0.xd29e1592026-10-12Search names, modules, packages, or :: a typeCtrl K

GHC 10.0.0.20260917 · lts/ghc-10.0.x · d29e159 · 2026-10-12

Modulefinite-typelits-0.2.1.0Haskell2010

Data.Finite.Internal

  • 1 type
  • 2 values
typetype Finite = Finite Integer
#

Finite number type. The type Finite n is inhabited by exactly n values in the range [0, n) including 0 but excluding n. Invariants:

Property
getFinite x < natVal x
Property
getFinite x >= 0