| haskeline-0.6.1.5: A command-line interface for user input, written in Haskell. | Source code | Contents | Index

System.Console.Haskeline.MonadException

Description
This module redefines some of the functions in Control.Exception.Extensible to work for more general monads than only `IO`.
Documentation

class MonadIO m => MonadException m where | Source

Methods

catch :: Exception e => m a -> (e -> m a) -> m a | Source

block :: m a -> m a | Source

unblock :: m a -> m a | Source

Instances

MonadException IO
MonadException m => MonadException (Draw m)
MonadException m => MonadException (DumbTerm m)
MonadException m => MonadException (InputT m)
MonadException m => MonadException (StateT s m)
MonadException m => MonadException (ReaderT r m)

handle :: (MonadException m, Exception e) => (e -> m a) -> m a -> m a | Source

finally :: MonadException m => m a -> m b -> m a | Source

throwIO :: (MonadIO m, Exception e) => e -> m a | Source

throwTo :: (MonadIO m, Exception e) => ThreadId -> e -> m () | Source

bracket :: MonadException m => m a -> (a -> m b) -> (a -> m c) -> m c | Source

throwDynIO :: (Exception exception, MonadIO m) => exception -> m a | Source

handleDyn :: (Exception exception, MonadException m) => (exception -> m a) -> m a -> m a | Source

Exception (toException, fromException)
SomeException (SomeException)
IOException (IOError, ioe_handle, ioe_type, ioe_location, ioe_description, ioe_filename)
Produced by Haddock version 2.4.2