Shapeless in the real world: An introduction to generic programming
Shapeless is a powerful Scala library used behind many others, such as Circe or Doobie. This talk will show you how shapeless works, using it to solve a real problem.
Who am I? ● Software Engineer, Searcher of perfect modularization, Lover of Functional Languages ● The cool ones Scala, Clojure, Elixir ● The "vintage" ones Java, C#, Python, Ruby @vonjuliano juliano-alves.com
// domain.scala case class OrgaoRequest(codigo: Option[String], descricao: Option[String], pagina: Int = 1) case class OrgaoSiafi(codigo: String, codigoDescricaoFormatado: String, descricao: String) case class OrgaoSiape(codigo: String, codigoDescricaoFormatado: String, descricao: String)
More about shapeless ● https://juliano-alves.com/2020/04/06/shapeless-a-real-world-use-case/ The post which inspired this talk ● https://underscore.io/books/shapeless-guide/ The Type Astronaut's guide to shapeless