Safe Haskell | Safe |
---|---|
Language | Haskell2010 |
Simple type-level Peano naturals.
Synopsis
- type family (n :: Nat) == (m :: Nat) :: Bool where ...
- type family FromLit (n :: Nat) :: Nat where ...
- type family ToLit (n :: Nat) :: Nat where ...
- type family Compare (n :: Nat) (m :: Nat) :: Ordering where ...
- type family (n :: Nat) <= (m :: Nat) :: Bool where ...
- type family (n :: Nat) < (m :: Nat) :: Bool where ...
- type family Min (n :: Nat) (m :: Nat) :: Nat where ...
- type family Max (n :: Nat) (m :: Nat) :: Nat where ...
- type family (n :: Nat) + (m :: Nat) :: Nat where ...
- type family (n :: Nat) * (m :: Nat) :: Nat where ...
- type family (n :: Nat) - (m :: Nat) :: Nat where ...
- type family (n :: Nat) % (m :: Nat) :: Nat where ...
- type family (n :: Nat) / (m :: Nat) :: Nat where ...
Documentation
type family Compare (n :: Nat) (m :: Nat) :: Ordering where ... Source #
Comparison of type-level naturals.
type family Min (n :: Nat) (m :: Nat) :: Nat where ... Source #
The minimum of two type-level naturals.
type family Max (n :: Nat) (m :: Nat) :: Nat where ... Source #
The maximum of two type-level naturals.
type family (n :: Nat) + (m :: Nat) :: Nat where ... infixl 6 Source #
Addition of type-level naturals.
type family (n :: Nat) * (m :: Nat) :: Nat where ... infixl 7 Source #
Multiplication of type-level naturals.
type family (n :: Nat) - (m :: Nat) :: Nat where ... infixl 6 Source #
Subtraction of type-level naturals.