GHC.TypeLits.Extra

Type-level operations on Nat

Ord

type family Max (x :: Nat) (y :: Nat) :: Nat where ...

type family Min (x :: Nat) (y :: Nat) :: Nat where ...

Integral

type family Div (x :: Nat) (y :: Nat) :: Nat where ...

type family Mod (x :: Nat) (y :: Nat) :: Nat where ...

type DivMod n d

Variants

type DivRU n d

Logarithm

type family FLog (x :: Nat) (y :: Nat) :: Nat where ...

type family CLog (x :: Nat) (y :: Nat) :: Nat where ...

Exact logarithm

type family Log (x :: Nat) (y :: Nat) :: Nat where ...

type family GCD (x :: Nat) (y :: Nat) :: Nat where ...

type family LCM (x :: Nat) (y :: Nat) :: Nat where ...