operators
class Add (A : Type)Addition: a + b.
Subtract
Section titled “Subtract”class Subtract (A : Type)Subtraction: a - b.
Multiply
Section titled “Multiply”class Multiply (A : Type)Multiplication: a * b.
Divide
Section titled “Divide”class Divide (A : Type)Division: a / b.
Modulo
Section titled “Modulo”class Modulo (A : Type)Remainder: a % b.
Negate
Section titled “Negate”class Negate (A : Type)Negation: -a.
natAdd
Section titled “natAdd”instance natAdd : Add NatAddition of naturals.
natMultiply
Section titled “natMultiply”instance natMultiply : Multiply NatMultiplication of naturals.
natSubtract
Section titled “natSubtract”instance natSubtract : Subtract NatSubtraction of naturals, stopping at zero.
natDivide
Section titled “natDivide”instance natDivide : Divide NatDivision of naturals.
natModulo
Section titled “natModulo”instance natModulo : Modulo NatRemainder of naturals.
intAdd
Section titled “intAdd”instance intAdd : Add IntAddition of integers.
intMultiply
Section titled “intMultiply”instance intMultiply : Multiply IntMultiplication of integers.
intSubtract
Section titled “intSubtract”instance intSubtract : Subtract IntSubtraction of integers.
intNegate
Section titled “intNegate”instance intNegate : Negate IntNegation of integers.
listAdd
Section titled “listAdd”instance listAdd {A : Type} : Add (List A)Lists added end to end: xs + ys is xs followed by ys.