~/talk

GETTING MORE MILEAGE FROM YOUR MONADS WITH MTL

Talkat Scalar Conference 2017 · 2017-04-07..04-08· [scala]
slides:none on file

Shows how MTL lets one write incomeTax once and run it as Task, Either, Option or lifted transformers like EitherT/OptionT by coding to typeclasses such as MonadError and Applicative; demonstrates State/MonadState to stop threading spaceship state and recruiter logic, and builds small tax and spaceship apps that mostly work. Reveals a concrete Scala problem: MonadError/MonadState trait design causes ambiguous implicits with stacked constraints and gives a practical workaround (copying a slimmer MonadError) that compiles and runs.

AI-written summary · about

  1. 0:00Intro
  2. 1:00What is MTL
  3. 2:27Storyline
  4. 4:22Startup
  5. 5:18Handling errors
  6. 7:58Which method to use
  7. 10:24Not an error
  8. 13:03Option vs Try
  9. 13:50Error Handling
  10. 14:30Example
  11. 15:06Environment Variable
  12. 17:25Option T
  13. 18:22Application
  14. 21:34State
  15. 22:45Apply method
  16. 25:28Status report
  17. 28:12Monad error
  18. 29:40Compile with error
~/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.