on master help sign in
Add lifting inner monad section

Expose liftInner, runStateT, runReaderT

commit549d7fd4928e7a1165843297e905eb0c07484ec3 authorHarendra Kumar <harendra@composewell.com> dateFri 2 Apr 2021, 18:51 (6 years ago) parent043f134
3 files changed+10−1
Changelog.md+1 src/Streamly/Prelude.hs+8 test/Streamly/Test/Prelude/Concurrent.hs+1−1
Changelog.md+1
@@ -37,6 +37,7 @@
3737 are added, these routines fail when they encounter any invalid characters.
3838* Several new functions added to `Streamly.Data.Fold`
3939* Several Unfold routines and combinators added to `Streamly.Data.Unfold`.
40+* Added delay, liftInner, runStateT, runReaderT to Streamly.Prelude
4041
4142### Bug Fixes
4243
src/Streamly/Prelude.hs+8
@@ -857,6 +857,14 @@ module Streamly.Prelude
857857 , finally
858858 , handle
859859
860+ -- * Lifting Inner Monad
861+ -- | See also: "Streamly.Internal.Data.Stream.IsStream.Lift" for
862+ -- @Pre-release@ functions.
863+
864+ , liftInner
865+ , runReaderT
866+ , runStateT
867+
860868 -- * Stream Types
861869 -- | Stream types that end with a @T@ (e.g. 'SerialT') are monad
862870 -- transformers.
test/Streamly/Test/Prelude/Concurrent.hs+1−1
@@ -31,7 +31,7 @@ import Test.QuickCheck
3131 (Property, withMaxSuccess)
3232import Test.QuickCheck.Monadic (monadicIO, run)
3333
34−import Streamly.Prelude hiding (fold, replicate, replicateM, reverse)
34+import Streamly.Prelude hiding (fold, replicate, replicateM, reverse, runStateT)
3535import qualified Streamly.Prelude as S
3636
3737import Streamly.Test.Common