Typeclass Notes

Typeclasses you may encounter in everyday programming.
  • Num: Addition, multiplication, a way to convert from an integer. Also absolute value and negation.
  • Real: Part of the real number line. Ordered numbers. toRational. Does not imply decimals!
  • Enum: Next and previous (succ-essor and pred-ecessor).
  • Integral: Integer division.
  • Fractional: “Decimal” division.
  • Floating: transcendental functions (exponentials, trig, pi, e).
  • RealFrac: truncate and round.
  • RealFloat: efficient floating point.
Last modified August 18, 2023: 2022-2023 End State (7352e87)