Personal tools

Category theory

From HaskellWiki

(Difference between revisions)
Jump to: navigation, search
(Foundations: : two links how category theory concepts are present in Haskell programming)

Revision as of 20:32, 11 June 2006

Category theory can be helpful in understanding Haskell's type system. There is a "Haskell category", of which the objects are Haskell types and the morphisms from types
are Haskell functions of type
a -> b
. Various other Haskell structures can be used make it a Cartesian closed category.


1 Foundations

Michael Barr and Charles Wells: Toposes, Triples and Theories. The online free available book is both an introductory and a detailed description of category theory. By the way, it is also a category theoretical descripton of the concept of monad (the book uses another name instead of monad: triple).

HaWiki's CategoryTheory is also a good theoretical introduction, and besides that, it explains how concepts of category theory are important in Haskell programming.

A Gentle Introduction to Category Theory - the calculational approach written by Maarten M Fokkinga.

2 Categorical programming
