| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
Ouroboros.Consensus.Util.EarlyExit
Contents
Synopsis
- data WithEarlyExit m a
- withEarlyExit :: WithEarlyExit m a -> m (Maybe a)
- withEarlyExit_ :: Functor m => WithEarlyExit m () -> m ()
- exitEarly :: Applicative m => WithEarlyExit m a
- lift :: (MonadTrans t, Monad m) => m a -> t m a
Documentation
data WithEarlyExit m a Source #
Instances
withEarlyExit :: WithEarlyExit m a -> m (Maybe a) Source #
withEarlyExit_ :: Functor m => WithEarlyExit m () -> m () Source #
exitEarly :: Applicative m => WithEarlyExit m a Source #
Re-exports
lift :: (MonadTrans t, Monad m) => m a -> t m a #
Lift a computation from the argument monad to the constructed monad.