Safe Haskell | Safe |
---|---|
Language | Haskell2010 |
Re-exports most useful functionality from 'safe-exceptions'. Also
provides some functions to work with exceptions over MonadError
.
- module Control.Exception.Safe
- note :: MonadError e m => e -> Maybe a -> m a
Documentation
module Control.Exception.Safe
note :: MonadError e m => e -> Maybe a -> m a Source #
Throws error for Maybe
if Nothing
is given.
Operates over MonadError
.