@@ -192,7 +192,7 @@ import Control.Monad.Trans.Class (MonadTrans (lift))
192192-- represents a single IO action whereas the 'Serial' monad represents a series
193193-- of IO actions. The only change you need to make to go from 'IO' to 'Serial'
194194-- is to use 'drain' to run the monad and to prefix the IO actions with
195−-- either 'yieldM' or 'liftIO'. If you use liftIO you can switch from 'Serial'
195+-- either 'fromEffect' or 'liftIO'. If you use liftIO you can switch from 'Serial'
196196-- to IO monad by simply removing the 'drain' function; no other changes
197197-- are needed unless you have used some stream specific composition or
198198-- combinators.
@@ -364,7 +364,7 @@ import Control.Monad.Trans.Class (MonadTrans (lift))
364364-- @
365365--
366366-- To create a singleton stream from a pure value use 'fromPure' or 'pure' and to
367−-- create a singleton stream from a monadic action use 'yieldM'. Note that in
367+-- create a singleton stream from a monadic action use 'fromEffect'. Note that in
368368-- case of Zip applicative streams "pure" repeats the value to generate an
369369-- infinite stream.
370370--
@@ -373,7 +373,7 @@ import Control.Monad.Trans.Class (MonadTrans (lift))
373373-- [1]
374374-- > S.'toList' $ S.'fromPure' 1
375375-- [1]
376−-- > S.'toList' $ S.'yieldM' 'getLine'
376+-- > S.'toList' $ S.'fromEffect' 'getLine'
377377-- hello
378378-- ["hello"]
379379-- @
@@ -529,7 +529,7 @@ import Control.Monad.Trans.Class (MonadTrans (lift))
529529-- seconds. After the delay it prints the number of seconds it slept.
530530--
531531-- @
532−-- delay n = S.'yieldM' $ do
532+-- delay n = S.'fromEffect' $ do
533533-- threadDelay (n * 1000000)
534534-- tid \<- myThreadId
535535-- putStrLn (show tid ++ ": Delay " ++ show n)
@@ -760,7 +760,7 @@ import Control.Monad.Trans.Class (MonadTrans (lift))
760760--
761761-- @
762762-- main = S.'drain' . S.'fromAsync' $ traced (sqrt 9) '<>' traced (sqrt 16) '<>' traced (sqrt 25)
763−-- where traced m = S.'yieldM' (myThreadId >>= print) >> return m
763+-- where traced m = S.'fromEffect' (myThreadId >>= print) >> return m
764764-- @
765765-- @
766766-- ThreadId 40
@@ -882,7 +882,7 @@ import Control.Monad.Trans.Class (MonadTrans (lift))
882882-- google = get "https://www.google.com/search?q=haskell"
883883-- bing = get "https://www.bing.com/search?q=haskell"
884884-- duckduckgo = get "https://www.duckduckgo.com/?q=haskell"
885−-- get s = S.'yieldM' (httpNoBody (parseRequest_ s) >> putStrLn (show s))
885+-- get s = S.'fromEffect' (httpNoBody (parseRequest_ s) >> putStrLn (show s))
886886-- @
887887--
888888-- The polymorphic version of the binary operation '<>' of the 'Parallel' type
@@ -941,7 +941,7 @@ import Control.Monad.Trans.Class (MonadTrans (lift))
941941-- S.'drain' $ S.'concatFoldableWith' S.'async' (map delay [1..10])
942942-- S.'drain' $ S.'concatMapFoldableWith' S.'async' delay [1..10]
943943-- S.'drain' $ S.'concatForFoldableWith' S.'async' [1..10] delay
944−-- where delay n = S.'yieldM' $ threadDelay (n * 1000000) >> print n
944+-- where delay n = S.'fromEffect' $ threadDelay (n * 1000000) >> print n
945945-- @
946946
947947-- $nesting
@@ -1011,7 +1011,7 @@ import Control.Monad.Trans.Class (MonadTrans (lift))
10111011--
10121012-- import Control.Monad (forever)
10131013--
1014−-- main = S.'drain' $ forever $ S.'yieldM' getLine >>= S.'yieldM' . putStrLn
1014+-- main = S.'drain' $ forever $ S.'fromEffect' getLine >>= S.'fromEffect' . putStrLn
10151015-- @
10161016--
10171017-- When multiple streams are composed using this style they nest in a DFS
@@ -1025,7 +1025,7 @@ import Control.Monad.Trans.Class (MonadTrans (lift))
10251025-- main = S.'drain' $ do
10261026-- x <- S.'fromFoldable' [1,2]
10271027-- y <- S.'fromFoldable' [3,4]
1028−-- S.'yieldM' $ putStrLn $ show (x, y)
1028+-- S.'fromEffect' $ putStrLn $ show (x, y)
10291029-- @
10301030-- @
10311031-- (1,3)
@@ -1119,7 +1119,7 @@ import Control.Monad.Trans.Class (MonadTrans (lift))
11191119-- main = S.'drain' . S.'fromAsync' $ do
11201120-- x <- S.'fromFoldable' [1,2]
11211121-- y <- S.'fromFoldable' [3,4]
1122−-- S.'yieldM' $ putStrLn $ show (x, y)
1122+-- S.'fromEffect' $ putStrLn $ show (x, y)
11231123-- @
11241124-- @
11251125-- (1,3)
@@ -1143,7 +1143,7 @@ import Control.Monad.Trans.Class (MonadTrans (lift))
11431143-- main = S.'drain' . S.'fromWSerial' $ do
11441144-- x <- S.'fromFoldable' [1,2]
11451145-- y <- S.'fromFoldable' [3,4]
1146−-- S.yieldM $ putStrLn $ show (x, y)
1146+-- S.fromEffect $ putStrLn $ show (x, y)
11471147-- @
11481148-- @
11491149-- (1,3)
@@ -1170,7 +1170,7 @@ import Control.Monad.Trans.Class (MonadTrans (lift))
11701170-- main = S.'drain' . S.'fromWAsync' $ do
11711171-- x <- S.'fromFoldable' [1,2]
11721172-- y <- S.'fromFoldable' [3,4]
1173−-- S.'yieldM' $ putStrLn $ show (x, y)
1173+-- S.'fromEffect' $ putStrLn $ show (x, y)
11741174-- @
11751175-- @
11761176-- (1,3)
@@ -1217,7 +1217,7 @@ import Control.Monad.Trans.Class (MonadTrans (lift))
12171217-- sz <- sizes
12181218-- cl <- colors
12191219-- sh <- shapes
1220−-- S.'yieldM' $ putStrLn $ show (sz, cl, sh)
1220+-- S.'fromEffect' $ putStrLn $ show (sz, cl, sh)
12211221--
12221222-- where
12231223--