~/talk

Kittens: Shapeless Typeclass Derivation for Cats

Talkat Scala World 2015 · 2015-09-20..09-22· [scala, typescript]
slides:none on file

Claims automatic derivation of Cats typeclasses (Functor, Foldable and friends) for ADTs with no handwritten instances by combining kittens with shapeless generics, relying on a small stack of helpers including export-hook and macro-compat. Implements higher‑kinded derivation by turning type-level computation into a continuation‑passing style to work around SI‑2712, collapses product and coproduct handling into one operator, and successfully derives Functor for a polymorphic Tree in a live demo (builds require rapidly changing snapshot dependencies).

AI-written summary · about

  1. 0:00Introduction
  2. 1:03Deriving typeclass instances
  3. 2:04Why Kittens and Shapeless
  4. 12:37Lawless typeclasses in Cats
  5. 16:52Implicit scope challenges
  6. 22:59Demo: Higher-kinded derivation
  7. 34:02Type-level continuation passing
  8. 42:31Unifying products and coproducts
  9. 49:57Live demo of Kittens
  10. 51:30Conclusion
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.