3 ms·
>"a monad is just a monoid in the category of endofunctors" Once I discovered the Monad thing in Haskell has pretty much nothing to do with the Monad in Catego
by dboreham 9y ago
>"a monad is just a monoid in the category of endofunctors"
Once I discovered the Monad thing in Haskell has pretty much nothing to do with the Monad in Category Theory, everything made much more sense. As a bonus I now (sort of) understand Category Theory. Much the same as Relational Databases have not very much to do with Relational Algebra.
- pleasecalllater 9y agoIndeed. And this is a great comment.
- tome 9y agoThis is a very important point although I would slightly tweak this > the Monad thing in Haskell has pretty much nothing to do with the Monad in Category Theory to "the Monad thing in Haskell is a very simple special case of the Monad in Category Theory". Thinking you have to "learn category theory" before you can use a Monad in Haskell is like thinking you have to learn this https://en.wikipedia.org/wiki/Function_space#Functional_analysis https://en.wikipedia.org/wiki/Function_space#Functional_anal... before using a function.