Tracing monadic computations and representing effects

9Citations
Citations of this article
11Readers
Mendeley users who have this article in their library.

Abstract

In functional programming, monads are supposed to encapsulate computations, effectfully producing the final result, but keeping to themselves the means of acquiring it. For various reasons, we sometimes want to reveal the internals of a computation. To make that possible, in this paper we introduce monad transformers that add the ability to automatically accumulate observations about the course of execution as an effect. We discover that if we treat the resulting trace as the actual result of the computation, we can find new functionality in existing monads, notably when working with non-terminating computations.

Cite

CITATION STYLE

APA

Piróg, M., & Gibbons, J. (2012). Tracing monadic computations and representing effects. In Electronic Proceedings in Theoretical Computer Science, EPTCS (Vol. 76, pp. 90–111). Open Publishing Association. https://doi.org/10.4204/EPTCS.76.8

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