Lesson 2: More common functors

  • Let’s Review
  • The IO Functor and Text
  • Product types
  • The tuple type
  • Tuple maps
    • An Exercise
    • A short digression
  • Pair vs tuple
    • Another exercise
  • Three-tuple
  • Coming up

In the last lesson, we looked at the motivation for the Functor typeclass and some common instances, with Maybe, Either, and lists. Maybe and Either take a different number of type arguments, but they are both structured as sum types. We begin this lesson with some more examples and then we will look at some common product types and their Functor instances.

Sign up for access to the full page, plus the complete archive and all the latest content.