Hostname: page-component-77f85d65b8-jkvpf Total loading time: 0 Render date: 2026-03-29T20:16:26.123Z Has data issue: false hasContentIssue false

A monadic framework for delimited continuations

Published online by Cambridge University Press:  01 November 2007

R. KENT Dyvbig
Affiliation:
Indiana University, IN, USA
SIMON PEYTON JONES
Affiliation:
Microsoft Research, Cambridge, USA
AMR SABRY
Affiliation:
Indiana University, IN, USA
Rights & Permissions [Opens in a new window]

Abstract

Core share and HTML view are not available for this content. However, as you have access to this content, a full PDF is available via the 'Save PDF' action button.

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.

Information

Type
Article
Copyright
Copyright © Cambridge University Press 2007
Submit a response

Discussions

No Discussions have been published for this article.