on master help sign in
Add lifting inner monad section
549d7fdHarendra Kumar
Changelog.md+1
@@ -37,6 +37,7 @@
37 are added, these routines fail when they encounter any invalid characters.
37 are added, these routines fail when they encounter any invalid characters.
38* Several new functions added to `Streamly.Data.Fold`
38* Several new functions added to `Streamly.Data.Fold`
39* Several Unfold routines and combinators added to `Streamly.Data.Unfold`.
39* Several Unfold routines and combinators added to `Streamly.Data.Unfold`.
40+* Added delay, liftInner, runStateT, runReaderT to Streamly.Prelude
40
41
41### Bug Fixes
42### Bug Fixes
42
43
src/Streamly/Prelude.hs+8
@@ -857,6 +857,14 @@ module Streamly.Prelude
857 , finally
857 , finally
858 , handle
858 , handle
859
859
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+
860 -- * Stream Types
868 -- * Stream Types
861 -- | Stream types that end with a @T@ (e.g. 'SerialT') are monad
869 -- | Stream types that end with a @T@ (e.g. 'SerialT') are monad
862 -- transformers.
870 -- transformers.
test/Streamly/Test/Prelude/Concurrent.hs+1−1
@@ -31,7 +31,7 @@ import Test.QuickCheck
31 (Property, withMaxSuccess)
31 (Property, withMaxSuccess)
32import Test.QuickCheck.Monadic (monadicIO, run)
32import Test.QuickCheck.Monadic (monadicIO, run)
33
33
34−import Streamly.Prelude hiding (fold, replicate, replicateM, reverse)
34+import Streamly.Prelude hiding (fold, replicate, replicateM, reverse, runStateT)
35import qualified Streamly.Prelude as S
35import qualified Streamly.Prelude as S
36
36
37import Streamly.Test.Common
37import Streamly.Test.Common