Module
Control.Error.Util
- Package
- purescript-errors
- Repository
- passy/purescript-errors
Use these functions to convert between Maybe
, Either
, MaybeT
, and
ExceptT
.
#hoistMaybe Source
hoistMaybe :: forall m b. Monad m => Maybe b -> MaybeT m b
Lift a Maybe
to the MaybeT
monad
#fromMaybe' Source
fromMaybe' :: forall a. Maybe a -> a -> a
An infix form of fromMaybe
with arguments flipped.
#exceptNoteA Source
exceptNoteA :: forall m e a. Apply m => m (Maybe a) -> e -> ExceptT e m a
Convert an applicative Maybe
value into the ExceptT
monad
#exceptNoteM Source
exceptNoteM :: forall m e a. Applicative m => Maybe a -> e -> ExceptT e m a
Convert a Maybe
value into the ExceptT
monad
- Modules
- Control.
Error. Util - Data.
EitherR