@@ -30,7 +30,8 @@ import Prelude hiding (String, lines, words, unlines, unwords)
31-- >>> :set -XOverloadedStrings
31-- >>> :set -XOverloadedStrings
32-- >>> import Prelude hiding (String, lines, words, unlines, unwords)
32-- >>> import Prelude hiding (String, lines, words, unlines, unwords)
33−-- >>> import qualified Streamly.Prelude as Stream
33+-- >>> import qualified Streamly.Data.Stream as Stream
34+-- >>> import qualified Streamly.Data.Fold as Fold
34-- >>> import qualified Streamly.Internal.Unicode.Array.Char as Unicode
35-- >>> import qualified Streamly.Internal.Unicode.Array.Char as Unicode
36-- | Break a string up into a stream of strings at newline characters.
37-- | Break a string up into a stream of strings at newline characters.
@@ -38,7 +39,7 @@ import Prelude hiding (String, lines, words, unlines, unwords)
39-- > lines = S.lines A.write
40-- > lines = S.lines A.write
41−-- >>> Stream.toList $ Unicode.lines $ Stream.fromList "lines\nthis\nstring\n\n\n"
42+-- >>> Stream.fold Fold.toList $ Unicode.lines $ Stream.fromList "lines\nthis\nstring\n\n\n"
42-- ["lines","this","string","",""]
43-- ["lines","this","string","",""]
44{-# INLINE lines #-}
45{-# INLINE lines #-}
@@ -50,7 +51,7 @@ lines = S.lines A.write
51-- > words = S.words A.write
52-- > words = S.words A.write
53−-- >>> Stream.toList $ Unicode.words $ Stream.fromList "A newline\nis considered white space?"
54+-- >>> Stream.fold Fold.toList $ Unicode.words $ Stream.fromList "A newline\nis considered white space?"
54-- ["A","newline","is","considered","white","space?"]
55-- ["A","newline","is","considered","white","space?"]
56{-# INLINE words #-}
57{-# INLINE words #-}
@@ -62,7 +63,7 @@ words = S.words A.write
63-- 'unlines' is an inverse operation to 'lines'.
64-- 'unlines' is an inverse operation to 'lines'.
65−-- >>> Stream.toList $ Unicode.unlines $ Stream.fromList ["lines", "this", "string"]
66+-- >>> Stream.fold Fold.toList $ Unicode.unlines $ Stream.fromList ["lines", "this", "string"]
66-- "lines\nthis\nstring\n"
67-- "lines\nthis\nstring\n"
68-- > unlines = S.unlines A.read
69-- > unlines = S.unlines A.read
@@ -79,7 +80,7 @@ unlines = S.unlines A.reader
80-- 'unwords' is an inverse operation to 'words'.
81-- 'unwords' is an inverse operation to 'words'.
82−-- >>> Stream.toList $ Unicode.unwords $ Stream.fromList ["unwords", "this", "string"]
83+-- >>> Stream.fold Fold.toList $ Unicode.unwords $ Stream.fromList ["unwords", "this", "string"]
83-- "unwords this string"
84-- "unwords this string"
85-- > unwords = S.unwords A.read
86-- > unwords = S.unwords A.read