small intro to exceptions
authorRoss Paterson <ross@soi.city.ac.uk>
Thu, 25 May 2006 11:16:04 +0000 (11:16 +0000)
committerRoss Paterson <ross@soi.city.ac.uk>
Thu, 25 May 2006 11:16:04 +0000 (11:16 +0000)
Control/Exception.hs

index ee063de..ec06bf4 100644 (file)
 -- 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 (