Safe Haskell | None |
---|---|
Language | Haskell2010 |
- module Control.Effects
- data Early a
- earlyReturn :: forall a b m. MonadEffect (Early a) m => a -> m b
- handleEarly :: Monad m => ExceptT a m a -> m a
Documentation
module Control.Effects
earlyReturn :: forall a b m. MonadEffect (Early a) m => a -> m b Source #
Allows you to return early from a function. Make sure you handleEarly
to get the actual
result out
handleEarly :: Monad m => ExceptT a m a -> m a Source #
Get the result from a computation. Either the early returned one, or the regular result.