Copyright | Copyright (c) 2009-2015, David Sorokin <david.sorokin@gmail.com> |
---|---|
License | BSD3 |
Maintainer | David Sorokin <david.sorokin@gmail.com> |
Stability | experimental |
Safe Haskell | Safe |
Language | Haskell2010 |
Tested with: GHC 7.10.1
It defines a type class of monads with exception handling capabilities.
- class Monad m => MonadException m where
- catchComp :: Exception e => m a -> (e -> m a) -> m a
- finallyComp :: m a -> m b -> m a
- throwComp :: Exception e => e -> m a
Documentation
class Monad m => MonadException m where Source
A computation within which we can throw an exception.