haskeline-0.2: A command-line interface for user input, written in Haskell.

System.Console.Haskeline.MonadException

Description

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

Documentation

class MonadIO m => MonadException m whereSource

Methods

catch :: m a -> (Exception -> m a) -> m aSource

block :: m a -> m aSource

unblock :: m a -> m aSource

handle :: MonadException m => (Exception -> m a) -> m a -> m aSource

finally :: MonadException m => m a -> m b -> m aSource

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