HORIZON HASKELLDocslts/ghc-10.0.x04404a62026-10-19Search packagesCtrl K
Theme: |

GHC 10.0.0.20260917 · lts/ghc-10.0.x · 04404a6 · 2026-10-19

Moduleconstraints-0.14.4

Data.Constraint.Nat

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

Equations

familytype family Lcm (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 Log2 (a :: Natural) :: Natural

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