From 91c5f1f02bedc9a0cd6c0555c5e57c28eca75130 Mon Sep 17 00:00:00 2001 From: Ross Paterson Date: Thu, 25 May 2006 11:16:04 +0000 Subject: [PATCH] small intro to exceptions --- Control/Exception.hs | 12 ++++++++++++ 1 file changed, 12 insertions(+) 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 ( -- 1.7.10.4