on master help sign in
Fix doctest in "sequence" operation
12c90b1Harendra Kumar
src/Streamly/Internal/Data/Stream/IsStream/Transform.hs+7−4
@@ -282,6 +282,9 @@ import Prelude hiding
282-- >>> import Streamly.Internal.Data.Stream.IsStream as Stream
282-- >>> import Streamly.Internal.Data.Stream.IsStream as Stream
283-- >>> import qualified Streamly.Data.Fold as Fold
283-- >>> import qualified Streamly.Data.Fold as Fold
284-- >>> import qualified Streamly.Internal.Data.Fold as Fold
284-- >>> import qualified Streamly.Internal.Data.Fold as Fold
285+-- >>> import System.IO (stdout, hSetBuffering, BufferMode(LineBuffering))
286+--
287+-- >>> hSetBuffering stdout LineBuffering
285
288
286------------------------------------------------------------------------------
289------------------------------------------------------------------------------
287-- Piping
290-- Piping
@@ -415,19 +418,19 @@ mapMSerial = Serial.mapM
415-- abc
418-- abc
416--
419--
417-- >>> :{
420-- >>> :{
418−-- drain $ Stream.replicateM 10 (return $ threadDelay 1000000 >> print 1)
421+-- drain $ Stream.replicateM 3 (return $ threadDelay 1000000 >> print 1)
419-- & (fromSerial . Stream.sequence)
422-- & (fromSerial . Stream.sequence)
420-- :}
423-- :}
421-- 1
424-- 1
422−-- ...
425+-- 1
423-- 1
426-- 1
424--
427--
425-- >>> :{
428-- >>> :{
426−-- drain $ Stream.replicateM 10 (return $ threadDelay 1000000 >> print 1)
429+-- drain $ Stream.replicateM 3 (return $ threadDelay 1000000 >> print 1)
427-- & (fromAsync . Stream.sequence)
430-- & (fromAsync . Stream.sequence)
428-- :}
431-- :}
429-- 1
432-- 1
430−-- ...
433+-- 1
431-- 1
434-- 1
432--
435--
433-- @
436-- @