type-level-natural-number-operations-1.0: Basic operations on type-level natural numbers.

TypeLevel.NaturalNumber.Operations

Synopsis

Documentation

type family Plus m n Source

The Plus type family provides a function that adds two type-level natural numbers. This function is implemented by induction on the first argument --- a fact that one should be aware of when using it in function signatures.

type family Minus m n Source

The Plus type family provides a function that subtracts two type-level natural numbers. This function is implemented by induction on both arguments, with the base case being when the second argument is Zero.