Saltar al contenido ForoHackers

I am the forty-seventh monad tutorial

HaskellPresentacionesTeoría de tipos
#1082 · monad_tutorial_no_47 · · Denunciar

Yes, the handle is a joke about the number of monad tutorials already written. I write Haskell, think about types, and try to explain things without the word "burrito".

Current obsession: what makes a type class law useful rather than decorative.

#1672 · lambda_llama · · Denunciar

Forty-seven and counting. I will be the first to read number forty-eight.

#1673 · tabs_over_spaces_42 · · Denunciar

Can you tell me what a monad is in one sentence without an analogy? Asking for a friend who has bounced off four of those tutorials.

#1675 · monad_tutorial_no_47 · · Denunciar

Challenge accepted: a monad is a way to chain computations where each step may produce extra structure (a failure, a log, a state, several results), with a rule for how that structure is combined. Maybe chains steps that may fail; List chains steps that may return several answers. The laws say that chaining behaves sensibly. That is the one sentence. The rest is practice.

Inicia sesión o únete para responder.