An assertion that fails in the Maybe monad
Moduleerrors-2.3.0Haskell98
Control.Error.Safe
This module extends the safe library's functions with corresponding
versions compatible with Either and ExceptT, and also provides a few
Maybe-compatible functions missing from safe.
I suffix the Either-compatible functions with Err and prefix the
ExceptT-compatible functions with try.
Note that this library re-exports the Maybe compatible functions from
safe in the Control.Error module, so they are not provided here.
The 'Z'-suffixed functions generalize the Maybe functions to also work
with anything that implements MonadPlus, including:
- 43 values
- Packageerrors-2.3.0
- Exports43
- LanguageHaskell98
- LicenceBSD-3-Clause
- SourceSafe.hs
Maybe-compatible functions
2 declarationsA fromRight that fails in the Maybe monad
Either-compatible functions
13 declarationsA foldl1' that fails in the Either monad
An assertion that fails in the Either monad
A fromJust that fails in the Either monad
ExceptT-compatible functions
14 declarationsA foldl1' that fails in the ExceptT monad
An assertion that fails in the ExceptT monad
A fromJust that fails in the ExceptT monad
A fromRight that fails in the ExceptT monad
MonadPlus-compatible functions
14 declarationsA foldl1' that fails using mzero
An assertion that fails using mzero
A fromJust that fails using mzero
A fromRight that fails using mzero