First a warning: Category Theory Screws You Up!.

**Monads**

The first theme has to be monads of course. But don't forget: monads don't do anything. They're simply an interface to something that you must already have implemented some other way. So don't believe all that hype about how monads are what allow Haskell to use side effects and I/O.

- If you just want to use
`IO`and don't care about monads: The IO Monad for People who Simply Don't Care - This gets more hits than anything else on my blog: You Could Have Invented Monads! (And Maybe You Already Have.)
- The Trivial Monad
- Homeland Security Threat Level Monad
- Monads, Kleisli Arrows, Comonads and other Rambling Thoughts
- The idea that monads give a way to describe substitutions in a tree forms the basis for this and the next two posts: Variable substitution gives a...
- Monads are Trees with Grafting
- Where do monads come from?
- From Monoids to Monads
- Some thoughts on reasoning and monads
- The Mother of all Monads
- Beyond Monads

**Fold and Unfold**

I think this is one of the great applications of Category Theory to Computer Science. Structural recursion can be characterised really nicely in terms of F-algebras. That's cool. But even cooler is that when you dualise the definitions you get a great way to look at non-terminating computations on things like streams.

**Commutative Monads and Vector Spaces**

Trying to order these is tricky. I'm not sure I define the term commutative monad until the talk.

- I realised a while back that the operation to build a vector space from a basis is a monad. In fact, like many well known algebraic structures, we get a commutative monad. Monads for vector spaces, probability and quantum mechanics pt. I
- Monads, Vector Spaces and Quantum Mechanics pt. II
- Trace Diagrams with Monads
- A talk this time: Commutative Monads, Diagrams and Knots
- And what happens when you try to use a non-commutative monad when a commutative monad is expected: Why isn't ListT a monad?

**Comonads**

I'm not sure the killer application for comonads has been found yet. But I do think they're good for things like dataflow and cellular automata fit the comonad model very well:

- Evaluating cellular automata is comonadic
- Comonadic Arrays
- Comonads and reading from the future
- The Monads Hidden Behind Every Zipper
- Categories of polynomials and comonadic plumbing

**Category Theory**

And these are generally categorical articles

- You Could Have Defined Natural Transformations
- Reverse Engineering Machines with the Yoneda Lemma
- A Yonedic Addendum
- Applying the Yoneda lemma to memoize functions that at first seem unmemoizable: Memoizing Polymorphic Functions with High School Algebra and Quantifiers
- Products, Limits and Parametric Polymorphism
- Dinatural Transformations and Coends
- The goal here was not to understand what Category Theory applies to Haskell, but how Haskell code can be interpreted in other categories: "What Category do Haskell Types and Functions Live In?"
- A first step towards 2-category theory: The Interchange Law

## 4 comments:

IMHO there are at least two posts missing from this collection: Rewriting Monadic Expressions with Template Haskell and Programming with impossible functions, or how to get along without monads.

IMHO there are at least two posts missing from this collection: Rewriting Monadic Expressions with Template Haskell and Programming with impossible functions, or how to get along without monads.

I left those out as they're drifting away from the category theoretical aspects. But I am about to add another link...

Great stuff, Dan! On behalf of all the people who have been nagging.. err, I mean asking you on Haskell CafĂ© to compile your Monad tutorials I wanna say thanks :)

Post a Comment