Numeric.NumType.DK.Integers

Type-Level Integers

data TypeInt

Type-level Arithmetic

type family Pred (i :: TypeInt) :: TypeInt where ...

type family Succ (i :: TypeInt) :: TypeInt where ...

type family Negate (i :: TypeInt) :: TypeInt where ...

type family Abs (i :: TypeInt) :: TypeInt where ...

type family Signum (i :: TypeInt) :: TypeInt where ...

type family (i :: TypeInt) + (i' :: TypeInt) :: TypeInt where ...

type family (i :: TypeInt) - (i' :: TypeInt) :: TypeInt where ...

type family (i :: TypeInt) * (i' :: TypeInt) :: TypeInt where ...

type family (i :: TypeInt) / (i' :: TypeInt) :: TypeInt where ...

type family (i :: TypeInt) ^ (i' :: TypeInt) :: TypeInt where ...

Arithmetic on Proxies

pred

succ

negate

abs

signum

(+)

(-)

(*)

(/)

(^)

Convenience Synonyms for Proxies

zero

pos1

pos2

pos3

pos4

pos5

pos6

pos7

pos8

pos9

neg1

neg2

neg3

neg4

neg5

neg6

neg7

neg8

neg9

Conversion from Types to Terms

class KnownTypeInt i