Module

Data.Typelevel.Num.Sets

#Nat

class Nat n  where

Members

Instances

#toInt'

toInt' :: forall n. Nat n => Proxy n -> Int

Sugar for toInt, providing a more intuitive type

#Pos

class (Nat n) <= Pos n 

Instances

#subLastDec

subLastDec :: forall x d. Nat (x :* d) => Nat x => x :* d -> Int

#div10Dec

div10Dec :: forall x d. Nat (x :* d) => x :* d -> x

#reifyInt

reifyInt :: forall r. Int -> (forall n. Nat n => n -> r) -> r

#reifyIntP

reifyIntP :: forall r. Int -> (forall n. Pos n => n -> r) -> r

Modules