Monads
Synopsis
Monads are a famous feature of the map
-like function for any type we
want. Finally, we’ll cover monads themselves.
One feature about monads is that they inspire programmers to write blog posts and tutorials about them. For the most part, they tell you more about the state of mind that particular programmer had when monads finally “clicked” than about monads themselves. The article below, You could have invented monads, is a refreshing change, and I recommend you read it, even before watching my video.
Links
Videos
Handouts
Further Reading
- The Typeclassopedia Yes, this was linked from the Typeclass lecture.
- You could have invented monads This blog post walks through how monads may have been "discovered" by a normal programmer.
- Monads for Functional Programming This paper talks about writing an interpreter and adding abilities simply by changing which monad we give to it.
- Functors, Applicatives, and Monads in Pictures