tfp-1.0: Type-level integers, booleans, lists using type families
Type.Data.Num.Unary.Proof
data Nat x Source
Constructors
data Pos x Source
natFromPos :: Pos x -> Nat x Source
addNat :: Nat x -> Nat y -> Nat (x :+: y) Source
addPosL :: Pos x -> Nat y -> Pos (x :+: y) Source
addPosR :: Nat x -> Pos y -> Pos (x :+: y) Source
mulNat :: Nat x -> Nat y -> Nat (x :*: y) Source
mulPos :: Pos x -> Pos y -> Pos (x :*: y) Source