Sciweavers

LFP
1990

Comprehending Monads

14 years 1 months ago
Comprehending Monads
Category theorists invented monads in the 1960's to concisely express certain aspects of universal algebra. Functional programmers invented list comprehensions in the 1970's to concisely express certain programs involving lists. This paper shows how list comprehensions may be generalised to an arbitrary monad, and how the resulting programming feature can concisely express in a pure functional language some programs that manipulate state, handle exceptions, parse text, or invoke continuations. A new solution to the old problem of destructive array update is also presented. No knowledge of category theory is assumed.
Philip Wadler
Added 07 Nov 2010
Updated 07 Nov 2010
Type Conference
Year 1990
Where LFP
Authors Philip Wadler
Comments (0)