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

intro-shapeless.pdf

Avatar for Arnau Abella Arnau Abella
December 08, 2018
78

 intro-shapeless.pdf

Avatar for Arnau Abella

Arnau Abella

December 08, 2018
Tweet

Transcript

  1. Scrap Your Boilerplate u “Scrap Your Boilerplate: A Practical Design

    Pattern for Generic Programming” (R. Lämmel, S.P. Jones) u A design pattern for writing programs that traverse rich mutually-recursive data structures u Write boilerplate once and for all u Requires rank-2-polymorphism
  2. Shapeless (https://github.com/milessabin/shapeless) u Shapeless is a type class and dependent

    type based generic programming library for Scala. u Originated by Miles Sabin on implementing: u Scrap your boilerplate u Libraries using shapeless: u Akka streams, Doobie, Specs2, Http4s and more.