Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Compatibility definitions for working with term and type level natural numbers across multiple GHC versions.
Prior to GHC 9.2:
- Term level natural numbers:
Natural :: Type
- Type level natural numbers:
n :: Nat
As of GHC 9.2:
- Term level natural numbers:
Natural :: Type
- Type level natural numbers:
n :: Natural
To avoid issues, we export a NaturalK
kind that will refer to the correct
definition for your platform.
Documentation
Natural number
Invariant: numbers <= 0xffffffffffffffff use the NS
constructor