From: Ross Paterson Date: Thu, 25 May 2006 11:16:04 +0000 (+0000) Subject: small intro to exceptions X-Git-Url: http://git.megacz.com/?a=commitdiff_plain;h=91c5f1f02bedc9a0cd6c0555c5e57c28eca75130;p=haskell-directory.git small intro to exceptions --- diff --git a/Control/Exception.hs b/Control/Exception.hs index ee063de..ec06bf4 100644 --- a/Control/Exception.hs +++ b/Control/Exception.hs @@ -11,6 +11,18 @@ -- This module provides support for raising and catching both built-in -- and user-defined exceptions. -- +-- In addition to exceptions thrown by 'IO' operations, exceptions may +-- be thrown by pure code (imprecise exceptions) or by external events +-- (asynchronous exceptions), but may only be caught in the 'IO' monad. +-- For more details, see: +-- +-- * /A semantics for imprecise exceptions/, by Simon Peyton Jones, +-- Alastair Reid, Tony Hoare, Simon Marlow, Fergus Henderson, +-- in /PLDI'99/. +-- +-- * /Asynchronous exceptions in Haskell/, by Simon Marlow, Simon Peyton +-- Jones, Andy Moran and John Reppy, in /PLDI'01/. +-- ----------------------------------------------------------------------------- module Control.Exception (