News for hackers. Stuff that matters.
Re:Monads in pictures by grn on Tuesday August 21, 2012 @08:50AM (#4412428)
That's right. That's how functors work in category theory.

I've seen a nice article explaining how Haskell types form a category. The objects of the category are types, an arrow a -> b is a function taking argument of type a and returning type b. A Haskell functor is then an endofunctor in this category (i.e. a functor from the category of types to itself). Unfortunately I cannot find the article anymore.

Re:Monads in pictures by gtani on Tuesday August 21, 2012 @02:19PM (#4413968)
Re:Monads in pictures by grn on Tuesday August 21, 2012 @04:08PM (#4414521)
Thanks for the links! However I am thinking about a different article. If I remember correctly I found it somewhere in the Haskell Wiki. Wikibooks have also a similar article on the subject: http://en.wikibooks.org/wiki/Haskell/Category_theory