@@ -14,9 +14,9 @@
14-- A byte stream of Unicode text read from an IO device or from an
14-- A byte stream of Unicode text read from an IO device or from an
15-- 'Streamly.Data.Array.Array' in memory can be decoded into a 'Char' stream
15-- 'Streamly.Data.Array.Array' in memory can be decoded into a 'Char' stream
16-- using the decoding routines in this module. A 'String' (@[Char]@) can be
16-- using the decoding routines in this module. A 'String' (@[Char]@) can be
17−-- converted into a 'Char' stream using 'Streamly.Prelude.fromList'. An @Array
17+-- converted into a 'Char' stream using 'Streamly.Data.Stream.fromList'. An
18−-- Char@ can be 'Streamly.Prelude.unfold'ed into a stream using the array
18+-- @Array Char@ can be 'Streamly.Data.Stream.unfold'ed into a stream using the
19−-- 'Streamly.Data.Array.read' unfold.
19+-- array 'Streamly.Data.Array.read' unfold.
21-- = Storing Unicode Strings
21-- = Storing Unicode Strings
@@ -25,14 +25,13 @@
27-- If you have to store a 'Char' stream in memory you can convert it into a
27-- If you have to store a 'Char' stream in memory you can convert it into a
28−-- 'String' using 'Streamly.Prelude.toList' or using the
29−-- 'Streamly.Data.Fold.toList' fold. The 'String' type can be more efficient
28+-- 'String' using 'Streamly.Data.Fold.toList' fold. The 'String' type can be
30−-- than pinned arrays for short and short lived strings.
29+-- more efficient than pinned arrays for short and short lived strings.
32−-- For longer or long lived streams you can 'Streamly.Prelude.fold' the 'Char'
31+-- For longer or long lived streams you can 'Streamly.Data.Stream.fold' the
33−-- stream as @Array Char@ using the array 'Streamly.Data.Array.write' fold.
32+-- 'Char' stream as @Array Char@ using the array 'Streamly.Data.Array.write'
34−-- The 'Array' type provides a more compact representation and pinned memory
33+-- fold. The 'Array' type provides a more compact representation and pinned
35−-- reducing GC overhead. If space efficiency is a concern you can use
34+-- memory reducing GC overhead. If space efficiency is a concern you can use
36-- 'encodeUtf8'' on the 'Char' stream before writing it to an 'Array' providing
35-- 'encodeUtf8'' on the 'Char' stream before writing it to an 'Array' providing
37-- an even more compact representation.
36-- an even more compact representation.