Skip to content

Instantly share code, notes, and snippets.

@davegurnell
Created February 16, 2017 10:27
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save davegurnell/001b302e25d1c9efea62bcd6f679987b to your computer and use it in GitHub Desktop.
Save davegurnell/001b302e25d1c9efea62bcd6f679987b to your computer and use it in GitHub Desktop.

Workshop: Getting Started with Shapeless

This workshop will introduce shapeless, a library for generic programming in Scala. We will discover how to use shapeless to automatically create instances of type classes ("JSON encoder", "Equals", "Show", and so on) for any algebraic data type (case class or sealed trait) using a very small kernel of library code.

The workshop is aimed at established Scala developers who haven't yet got to grips with shapeless. It will use material from Dave's open source ebook "The Type Astronaut's Guide to Shapeless", which you can download for free from the Underscore web site or from Github. The book is not required reading for the workshop, but it is a useful resource if you want to get into this fascinating and powerful style of Scala programming.

You will need: a laptop, a copy of Scala, and a clone of the exercises repo. Setup instructions are in the README on Github. Please grab these before the workshop if you can, to avoid unexpected last minute technical problems.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment