Handling algebraic effects

124Citations
Citations of this article
41Readers
Mendeley users who have this article in their library.

Abstract

Algebraic effects are computational effects that can be represented by an equa-tional theory whose operations produce the effects at hand. The free model of this theory induces the expected computational monad for the corresponding effect. Algebraic effects include exceptions, state, nondeterminism, interactive input/output, and time, and their combinations. Exception handling, however, has so far received no algebraic treatment. We present such a treatment, in which each handler yields a model of the theory for exceptions, and each handling construct yields the homomorphism induced by the universal property of the free model. We further generalise exception handlers to arbitrary algebraic effects. The resulting programming construct includes many previously unrelated examples from both theory and practice, including relabelling and restriction in Milner's CCS, timeout, rollback, and stream redirection. © G. D. Plotkin and M. Pretnar.

Cite

CITATION STYLE

APA

Plotkin, G. D., & Pretnar, M. (2013). Handling algebraic effects. Logical Methods in Computer Science, 9(4). https://doi.org/10.2168/LMCS-9(4:23)2013

Register to see more suggestions

Mendeley helps you to discover research relevant for your work.

Already have an account?

Save time finding and organizing research with Mendeley

Sign up for free