u/ensimein r/scala • Recommends
new typeclass derivation library for Scala 2 and 3 (shapely)
#shapely#typeclass-derivation#scala-2
4K subscribers • 13 videos on Hallway
Intermediate. Assumes working knowledge.
1.8K views4 years ago1 recommendation
Programming languagesSoftware designScalaLanguage design and type systems
Sam Halliday explains how to write and derive typeclasses in Scala 2 and 3 using the Shapely library.
Learn what a typeclass is, and why you'd want to derive one. Then learn how to write a typeclass and give your users the ability to make use of it for all their domain objects using a new library that I wish I wrote 10 years ago. Works with both Scala 2 and Scala 3, results in super fast compilations, and doesn't require any type-level (aka "generic programming") knowledge. 2022.scala.love twitter.com/scala_loveWhat people say. Recommended as an introduction to the Shapely library for typeclass derivation in Scala.
u/ensimein r/scala • Recommends