@@ -14,9 +14,9 @@
1414-- A byte stream of Unicode text read from an IO device or from an
1515-- 'Streamly.Data.Array.Array' in memory can be decoded into a 'Char' stream
1616-- using the decoding routines in this module. A 'String' (@[Char]@) can be
17−-- converted into a 'Char' stream using 'Streamly.Prelude.fromList'. An @Array
18−-- Char@ can be 'Streamly.Prelude.unfold'ed into a stream using the array
19−-- 'Streamly.Data.Array.read' unfold.
17+-- converted into a 'Char' stream using 'Streamly.Data.Stream.fromList'. An
18+-- @Array Char@ can be 'Streamly.Data.Stream.unfold'ed into a stream using the
19+-- array 'Streamly.Data.Array.read' unfold.
2020--
2121-- = Storing Unicode Strings
2222--
@@ -25,14 +25,13 @@
2525-- memory.
2626--
2727-- 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
30−-- than pinned arrays for short and short lived strings.
31−--
32−-- For longer or long lived streams you can 'Streamly.Prelude.fold' the 'Char'
33−-- stream as @Array Char@ using the array 'Streamly.Data.Array.write' fold.
34−-- The 'Array' type provides a more compact representation and pinned memory
35−-- reducing GC overhead. If space efficiency is a concern you can use
28+-- 'String' using 'Streamly.Data.Fold.toList' fold. The 'String' type can be
29+-- more efficient than pinned arrays for short and short lived strings.
30+--
31+-- For longer or long lived streams you can 'Streamly.Data.Stream.fold' the
32+-- 'Char' stream as @Array Char@ using the array 'Streamly.Data.Array.write'
33+-- fold. The 'Array' type provides a more compact representation and pinned
34+-- memory reducing GC overhead. If space efficiency is a concern you can use
3635-- 'encodeUtf8'' on the 'Char' stream before writing it to an 'Array' providing
3736-- an even more compact representation.
3837--