Home
Scholarly Works
A monadic framework for delimited continuations
Journal article

A monadic framework for delimited continuations

Abstract

Abstract Delimited continuations are more expressive than traditional abortive continuations and they apparently require a framework beyond traditional continuation-passing style (CPS). We show that this is not the case: standard CPS is sufficient to explain the common control operators for delimited continuations. We demonstrate this fact and present an implementation as a Scheme library. We then investigate a typed account of delimited continuations that makes explicit where control effects can occur. This results in a monadic framework for typed and encapsulated delimited continuations, which we design and implement as a Haskell library.

Authors

Dyvbig RK; JONES SP; SABRY A

Journal

Journal of Functional Programming, Vol. 17, No. 6, pp. 687–730

Publisher

Cambridge University Press (CUP)

Publication Date

November 1, 2007

DOI

10.1017/s0956796807006259

ISSN

0956-7968

Contact the Experts team