Computer Science · Artificial Intelligence
Structuring Functional Programs By Using Monads
See on the mapAbstract
The notion of monads originates from the category theory. It became popular in the programming languages community after Moggi proposed a way to use monads to structure denotational semantics. Wadler and others showed how this can be effectively used as a methodology for building interpreters. Monads are capable of capturing individual language features in a modular way. This paper evaluates two modular approaches for building monadic interpreters - Steele's pseudomonads and Liang, Hudak & Jones's monad transformers. We also consider the the problem of feature interaction in the monad transformers setting. 1 Monads: Introduction and Motivation Is there a practical use for category theory? Certainly - the programming language theory is a good example. Many categorical concepts led to important discoveries about programming languages and vice-versa, many ideas from the category theory were motivated by the programming languages research. Monads probably fit in both groups. Category t...