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

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
familytype family Lcm (m :: Nat) (n :: Nat) :: Nat where
#

Equations

familytype family Gcd (m :: Nat) (n :: Nat) :: Nat where
#

Equations

familytype family Div (a :: Natural) (b :: Natural) :: Natural
#

Division (round down) of natural numbers. Div x 0 is undefined (i.e., it cannot be reduced).

familytype family Mod (a :: Natural) (b :: Natural) :: Natural
#

Modulus of natural numbers. Mod x 0 is undefined (i.e., it cannot be reduced).

familytype family Log2 (a :: Natural) :: Natural
#

Log base 2 (round down) of natural numbers. Log 0 is undefined (i.e., it cannot be reduced).