The Shape of Shapeless (Part 1)
summary
Claims how Shapeless gives compile‑time generic programming: concrete use of HList and type recursion to turn case classes into tuples, an explicit recipe for building a generic typeclass (trait + terminal and recursive implicits), and reliance on implicit derivation rather than runtime reflection or sprawling macros. Slides and repo supply exercises and working code that auto‑generates instances via implicit search; examples include a “speak” transformer and JSON‑style one‑liners like Circe derive and the techniques demonstrably compile and run.
AI-written summary · about
chapters (8)
- 0:00Start
- 0:55Github Repo
- 3:36Type Level Programming
- 4:26Compile Time Generic Programming
- 12:50Generic Programming
- 22:33Boilerplate Reduction
- 25:41Tuples
- 51:06Implicit Resolution Rules
related talks
36mShapeless all the things !!
54mRoll Your Own Shapeless
46mAutomatic type class instance derivation with shapeless
57mKittens: Shapeless Typeclass Derivation for Cats
31mNothing Generic About It
48mA gentle introduction to type level programming in Scala
01h 57mTypes as Program Specifications: A Intro to Type-Level Programming in Haskell
39mDependent Types in Haskell
