~/talk

Monad transformers are good, actually

Talkat ZuriHac 2023 · 2023-06-10..06-12· [functional-programming]
links:none on file
slides:none on file

Shows that stacking concrete transformers (MaybeT, StateT, ReaderT, WriterT, ExceptT) simplifies real code: readInt/readThreeInts becomes trivial by wrapping with runMaybeT and binding plain Ints, parsers map to StateT over list and can be auto-derived via deriving via, and base-monad actions are embedded using lift. Compares transformers vs MTL (auto-lifting classes), warns not to layer ExceptT/StateT/WriterT over IO for performance, notes listT in transformers was historically wrong and points to correct streaming implementations.

AI-written summary · about

  1. 0:00Introduction
  2. 1:03Monad transformers misunderstood
  3. 1:45Motivating MaybeT
  4. 11:17Monad transformer basics
  5. 20:31Common monad transformers
  6. 38:13Transformers vs MTL
  7. 54:12Misconceptions on transformers
  8. 1:05:16Q&A
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.