Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Synopsis
- data Nat (n :: Nat)
- data Nat# :: Nat -> TYPE 'IntRep
- data WithNat :: (Nat -> Type) -> Type where
- data Difference :: Nat -> Nat -> Type where
- Difference :: forall a b c. Nat c -> ((c + b) :=: a) -> Difference a b
- data Fin :: Nat -> Type where
- data Fin# :: Nat -> TYPE 'IntRep
- data (<) :: Nat -> Nat -> Type
- data (<=) :: Nat -> Nat -> Type
- data (:=:) :: Nat -> Nat -> Type
Documentation
A value-level representation of a natural number n
.
data Difference :: Nat -> Nat -> Type where Source #
Proof that the first argument can be expressed as the sum of the second argument and some other natural number.
Difference :: forall a b c. Nat c -> ((c + b) :=: a) -> Difference a b |
data Fin :: Nat -> Type where Source #
A finite set of n
elements. 'Fin n = { 0 .. n - 1 }'
data Fin# :: Nat -> TYPE 'IntRep Source #
Finite numbers without the overhead of carrying around a proof.
data (<) :: Nat -> Nat -> Type infix 4 Source #
Proof that the first argument is strictly less than the second argument.