on master help sign in
Fix example code in Prelude
commit4b75877900c1d3358c73533829845dac57a7b185 authorHarendra Kumar <harendra.kumar@gmail.com> dateWed 7 Nov 2018, 05:23 (8 years ago) parent4df1a93
1 file changed+2−2
src/Streamly/Prelude.hs+2−2
src/Streamly/Prelude.hs+2−2
@@ -486,8 +486,8 @@ fromListM = fromStreamD . D.fromListM
486486-- @'Prelude.foldr' 'consM' 'K.nil'@.
487487--
488488-- @
489−-- runStream $ serially $ S.fromFoldableM $ replicate 10 (threadDelay 1000000 >> print 1)
490−-- runStream $ asyncly $ S.fromFoldableM $ replicate 10 (threadDelay 1000000 >> print 1)
489+-- runStream $ serially $ S.fromFoldableM $ replicateM 10 (threadDelay 1000000 >> print 1)
490+-- runStream $ asyncly $ S.fromFoldableM $ replicateM 10 (threadDelay 1000000 >> print 1)
491491-- @
492492--
493493-- /Concurrent (do not use with 'parallely' on infinite containers)/