HORIZON HASKELLDocslts/ghc-9.10.x248f8f02026-10-05Search names, modules, packages, or :: a typeCtrl K

GHC 9.10.3 · lts/ghc-9.10.x · 248f8f0 · 2026-10-05

Modulefinite-typelits-0.2.0.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