



Synopsis 



Documentation 

module Control.Exception 








A monad that can catch exceptions. A minimal definition
requires a definition of gcatch.
Implementations on top of IO should implement gblock and gunblock to
eventually call the primitives block and
unblock respectively. These are used for
implementations that support asynchronous exceptions. The default
implementations of gbracket and gfinally use gblock and gunblock
thus rarely require overriding.
  Methods   Generalised version of catch, allowing an arbitrary
exception handling monad instead of just IO.
   Generalised version of block, allowing an arbitrary
exception handling monad instead of just IO.
   Generalised version of unblock, allowing an
arbitrary exception handling monad instead of just IO.
  gbracket :: m a > (a > m b) > (a > m c) > m c  Source 
 Generalised version of bracket, allowing an arbitrary
exception handling monad instead of just IO.
  gfinally :: m a > m b > m a  Source 
 Generalised version of finally, allowing an arbitrary
exception handling monad instead of just IO.

  Instances  





Generalised version of handle, allowing an arbitrary
exception handling monad instead of just IO.



Always executes the first argument. If this throws an exception the
second argument is executed and the exception is raised again.


Produced by Haddock version 2.6.0 