Upgrade to Pro — share decks privately, control downloads, hide ads and more …

How to write like Cats

August 28, 2019

How to write like Cats


August 28, 2019

More Decks by Shannon

Other Decks in Technology


  1. What we won’t be talking about What we will be

    talking about • Category theory • Monads, Monoids, Functors etc. • Effect types • Polymorphism • Type classes • Implicits
  2. Type Classes • Can add functionality to types you don’t

    ‘own’. • Can change functionality in different scopes. • Higher level of abstraction, composability and applicability. • Enables library like Cats, allows others to do your work for you!
  3. Links to follow • Typelevel Cats: https://typelevel.org/cats/ • Typelevel blog:

    https://typelevel.org/cats/typeclasses.html • Talks: ◦ Petra Bierleutgeb, Polymorphism in Scala: https://www.youtube.com/watch?v=-SA1Ui283Qc ◦ Rob Norris, ScalaX keynote: https://skillsmatter.com/skillscasts/11626-keynote- pushing-types-and-gazing-at-the-stars