Applicative programming with effects

Conor Mcbride, Ross Paterson

Research output: Contribution to journalArticle

239 Citations (Scopus)

Abstract

In this article, we introduce Applicative functors – an abstract characterisation of an applicative style of effectful programming, weaker than Monads and hence more widespread. Indeed, it is the ubiquity of this programming pattern that drew us to the abstraction. We retrace our steps in this article, introducing the applicative pattern by diverse examples, then abstracting it to define the Applicative type class and introducing a bracket notation that interprets the normal application syntax in the idiom of an Applicative functor. Furthermore, we develop the properties of applicative functors and the generic operations they support. We close by identifying the categorical structure of applicative functors and examining their relationship both with Monads and with Arrow.
Original languageEnglish
Pages (from-to)1-13
Number of pages13
JournalJournal of Functional Programming
Volume18
Issue number1
Early online date16 May 2007
DOIs
Publication statusPublished - 2008

Cite this