Safe Haskell | Safe-Inferred |
---|---|
Language | GHC2021 |
Synopsis
- data YieldT a m r
- runYieldT :: forall a b m r. Monad m => Aggregation m a b -> YieldT a m r -> m (b, r)
- hoistYieldT :: forall m n a r. Monad m => (forall x. m x -> n x) -> YieldT a m r -> YieldT a n r
Documentation
Monad transformer that adds dynamically interpretable MonadYield
support
Instances
MonadReader r m => MonadReader r (YieldT a m) Source # | |
MonadState s m => MonadState s (YieldT a m) Source # | |
Functor m => MonadYield a (YieldT a m) Source # | |
Defined in Control.Monad.Trans.Yield | |
MonadTrans (YieldT a) Source # | |
Defined in Control.Monad.Trans.Yield | |
MonadIO m => MonadIO (YieldT a m) Source # | |
Defined in Control.Monad.Trans.Yield | |
Applicative (YieldT a m) Source # | |
Defined in Control.Monad.Trans.Yield | |
Functor (YieldT a m) Source # | |
Monad (YieldT a m) Source # | |
:: forall a b m r. Monad m | |
=> Aggregation m a b | What to do with the values emitted from the stream |
-> YieldT a m r | |
-> m (b, r) | The result of aggregating of stream values, and the result of the |
Runs a YieldT
computation in the base monad