Skip to content
A class of monads which can fail with an error
Haskell
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
Control/Monad
README
Setup.lhs
control-monad-failure-mtl.cabal.pp
control-monad-failure.cabal.pp

README

DESCRIPTION:

This package provides a class for monads which can fail with an error

>   class Monad m => MonadFailure e m where
>       failure :: e -> m a


There is further information in the Haskell wiki:

http://www.haskell.org/haskellwiki/Failure

INSTALL:

There are two versions of this library, one packaging instances for the
monads defined in the transformers library, and another one with instances
for the monad transformer library (mtl).

You can install each of them with Cabal by first removing the .pp suffix
from its associated cabal descriptor and then running the command "cabal install".
The cabal descriptor files are:

transformers  -  control-monad-failure.cabal.pp
mtl           -  control-monad-failure-mtl.cabal.pp


CONTRIBUTING:

The sources are available in a git repository at:

http://github.com/pepeiborra/control-monad-failure

Patches are welcome.
You can’t perform that action at this time.