Asynchronous exceptions in haskell

Citation
S. Marlow et al., Asynchronous exceptions in haskell, ACM SIGPL N, 36(5), 2001, pp. 274-285
Citations number
21
Categorie Soggetti
Computer Science & Engineering
Journal title
ACM SIGPLAN NOTICES
ISSN journal
15232867 → ACNP
Volume
36
Issue
5
Year of publication
2001
Pages
274 - 285
Database
ISI
SICI code
1523-2867(200105)36:5<274:AEIH>2.0.ZU;2-N
Abstract
Asynchronous exceptions, such as timeouts, are important for-robust, modula r programs, but are extremely difficult to program with - so much so that m ost programming languages either heavily restrict them or ban them altogeth er. We extend our earlier work, in which we added synchronous exceptions to Haskell, to support asynchronous exceptions too. Our design introduces sco ped combinators for blocking and unblocking asynchronous interrupts, along with a somewhat surprising semantics for operations that can suspend. Uniqu ely, we also give a formal semantics for our system.