One of the biggest challenges that library authors face is preserving type-safety while eliminating boilerplate that their users have to deal with.
In this talk, Jaro Regec will take a look at a few tricks that ZIO SQL uses - ZIO Schema's reified optics, Implicits, Macros and Phantom Types - which allow the library to offer 100% type-safe DSL while keeping boilerplate to minimum.