Moduleconstraints-0.14.2Haskell2010
Data.Constraint.Nat
Utilities for working with KnownNat constraints.
This module is only available on GHC 8.0 or later.
- 1 type
- 92 values
- Packageconstraints-0.14.2
- Exports100
- LanguageHaskell2010
- LicenceBSD-2-Clause
- SourceNat.hs
Equations
Lcm m m = m
Equations
Gcd m m = m
Division (round down) of natural numbers.
Div x 0 is undefined (i.e., it cannot be reduced).
Modulus of natural numbers.
Mod x 0 is undefined (i.e., it cannot be reduced).
Log base 2 (round down) of natural numbers.
Log 0 is undefined (i.e., it cannot be reduced).