tfp-1.0.0.2: Type-level integers, booleans, lists using type families

Safe HaskellSafe
LanguageHaskell2010

Type.Data.Num.Unary.Proof

Documentation

data Nat x Source

Constructors

Natural x => Nat 

data Pos x Source

Constructors

Positive x => Pos 

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