streamly-0.8.0: Dataflow programming and declarative concurrency
Copyright(c) 2018 Composewell Technologies
LicenseBSD-3-Clause
Maintainerstreamly@composewell.com
Stabilityexperimental
PortabilityGHC
Safe HaskellNone
LanguageHaskell2010

Streamly.Internal.Data.Stream.StreamD.Lift

Description

Transform the underlying monad of a stream.

Synopsis

Generalize Inner Monad

hoist :: Monad n => (forall x. m x -> n x) -> Stream m a -> Stream n a Source #

Transform Inner Monad

liftInner :: (Monad m, MonadTrans t, Monad (t m)) => Stream m a -> Stream (t m) a Source #

runReaderT :: Monad m => m s -> Stream (ReaderT s m) a -> Stream m a Source #

evalStateT :: Monad m => m s -> Stream (StateT s m) a -> Stream m a Source #

runStateT :: Monad m => m s -> Stream (StateT s m) a -> Stream m (s, a) Source #