hscurses-1.2: NCurses bindings for HaskellSource codeContentsIndex
HSCurses.MonadException
Documentation
class Monad m => MonadExc m whereSource
Methods
catchM :: m a -> (Exception -> m a) -> m aSource
blockM :: m a -> m aSource
unblockM :: m a -> m aSource
show/hide Instances
class (MonadIO m, MonadExc m) => MonadExcIO m Source
show/hide Instances
catchJustMSource
:: MonadExc m
=> Exception -> Maybe bPredicate to select exceptions
-> m aComputation to run
-> b -> m aHandler
-> m a
handleM :: MonadExc m => (Exception -> m a) -> m a -> m aSource
handleJustM :: MonadExc m => (Exception -> Maybe b) -> (b -> m a) -> m a -> m aSource
tryM :: MonadExc m => m a -> m (Either Exception a)Source
tryJustM :: MonadExc m => (Exception -> Maybe b) -> m a -> m (Either b a)Source
catchDynM :: (MonadExc m, Typeable exc) => m a -> (exc -> m a) -> m aSource
bracketMSource
:: MonadExc m
=> m acomputation to run first ("acquire resource")
-> a -> m bcomputation to run last ("release resource")
-> a -> m ccomputation to run in-between
-> m c
bracketM_ :: MonadExc m => m a -> m b -> m c -> m cSource
finallySource
::
=> IO acomputation to run first
-> IO bcomputation to run afterward (even if an exception was raised)
-> IO a
modifyState :: MonadExc m => (s -> m (a, s)) -> StateT s m aSource
Produced by Haddock version 2.1.0