Monad Stacks or: How I Learned to Stop Worrying and Love the Free Monad
summary
Shows techniques for cleaning up nested Scala code (lots of maps, flatMaps and pattern matching) by using Monad Transformers, effects libraries, and Free monads. Demonstrates how these approaches can turn “spaghetti” functional code into clearer code that reads almost like imperative style, with examples grounded in the Scala/Typelevel ecosystem (cats, Play, Akka).
AI-written summary · about
chapters (6)
- 0:00Monad stacks intro
- 7:04Digital wallets example
- 15:26Transformations and interpreters
- 21:09Production benefits
- 25:04Testing and maintenance
- 27:15Q&A
related talks
42mMonads you already use without knowing it
36mAn introduction to monadic structures and functional programming
31mThe Eff monad, one monad to rule them all
35mThe Functor, Applicative, Monad talk
41mWhy the free Monad isn't free
01h 14mBeyond Free Monads
39mDemystifying Monads with Java
47mMonad transformers down to earth
