Less is More with MonadReader
summary
Claims that MTL is often overused and shows how to replicate MTL-style constraints without pulling in MTL by using small, domain-specific typeclasses and optics. Demonstrates use of classy lenses, a minimal Reader-ish stack and MonadReader constraint alternatives, plus generalized newtype deriving to get instances. Provides a concrete code sketch that composes DB and metrics capabilities, reportedly works in practice though the example is not fully type-checked in the transcript.
AI-written summary · about
chapters (3)
related talks
45mFree Your Monads and the Rest Will Follow
56mBack to Basics: Functional Programming and Monads in C++
39mA few tips on modelling things in Scala
27mUsing Monads for Elegant Error Handling
16mScale By The Bay 2018 Unconference: Gabriel Volpe
33mPurifying Typescript
33mThe First Few Sips
24mLet the Scala compiler work for you
