Note Monads 

Forum: Com Sci 221, U Chicago, Autumn 2001, Old Classwork
Re: Note Monads (Matthew Stover)
Re: Question What is a monad? (Roni Choudhury)
Date: 2001, Oct 03
From: Matthew Stover mstover

A monad is kinda the same as it is in category theory or Algebra if you're familiar with that. There is a nice intro here. I've never used them myself, I've just read about them and talked about them a bit with a friend....it seems pretty interesting and is supposedly powerful for functional programming. Mathematically, a monad is a triple of a functor M:S->S, and natural transformations a:id(S)->M b:M^2->M such that some special properties are held. I think they're listed in that Haskell documentation. I believe the CS application is essentially to have the triple store a type representing things `in` the monad, a function making things not in the monad into things in the monad, and a function ruling the operations of the monad. Like I said, I don't know much....it seems interesting though.

Matthew


Messages

to: "Monads"