~/talk

Using Monad Transformers without understanding them

links:none on file
slides:none on file

Explains how to drop manual boxing and use ExceptT, ReaderT, and StateT to add errors, read-only config, and mutable state to existing monads, with runnable PureScript examples in a repo. Shows concrete bind/run functions, provides ask/get/put/throwError/catchError helpers, and demonstrates stack-order difference: ExceptT stacked over StateT drops state on error while StateT over ExceptT preserves it. Covers Tagless Final as an encoding and includes code to run each transformer variant.

AI-written summary · about

  1. 0:00Introduction to monads
  2. 1:06What problems do monads solve
  3. 5:01Limitations of basic monads
  4. 6:17Understanding transformers
  5. 8:46The problem of manual nesting
  6. 12:40ExceptT transformer
  7. 14:54ReaderT transformer
  8. 16:52StateT transformer
  9. 19:02Using transformers effectively
  10. 20:46Stack order and monads
  11. 23:11Conclusion and resources
~/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.