on master help sign in
Fix example code in Prelude
4b75877Harendra Kumar
src/Streamly/Prelude.hs+2−2
@@ -486,8 +486,8 @@ fromListM = fromStreamD . D.fromListM
486-- @'Prelude.foldr' 'consM' 'K.nil'@.
486-- @'Prelude.foldr' 'consM' 'K.nil'@.
487--
487--
488-- @
488-- @
489−-- runStream $ serially $ S.fromFoldableM $ replicate 10 (threadDelay 1000000 >> print 1)
489+-- runStream $ serially $ S.fromFoldableM $ replicateM 10 (threadDelay 1000000 >> print 1)
490−-- runStream $ asyncly $ S.fromFoldableM $ replicate 10 (threadDelay 1000000 >> print 1)
490+-- runStream $ asyncly $ S.fromFoldableM $ replicateM 10 (threadDelay 1000000 >> print 1)
491-- @
491-- @
492--
492--
493-- /Concurrent (do not use with 'parallely' on infinite containers)/
493-- /Concurrent (do not use with 'parallely' on infinite containers)/