monad-exception-0.1: Exstensible monadic exceptions

Safe HaskellNone

Control.Monad.Exception.Class

Contents

Description

This module exports the MonadException type class.

Synopsis

The MonadException class

class Monad m => MonadException m whereSource

The MonadException type class. Minimal complete definition: throw, catch.

Methods

throw :: Exception e => e -> m aSource

Generalized version of throwIO.

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

Generalized version of catch.

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

Generalized version of bracket.