on master help sign in
Remove refrences of Streamly.Prelude from core
5efab7dAdithya Kumar
core/src/Streamly/FileSystem/Handle.hs+5−5
@@ -17,13 +17,13 @@
17-- The 'TextEncoding', 'NewLineMode', and 'Buffering' options of the underlying
17-- The 'TextEncoding', 'NewLineMode', and 'Buffering' options of the underlying
18-- GHC 'Handle' are ignored by these APIs. Please use @Streamly.Unicode.*@
18-- GHC 'Handle' are ignored by these APIs. Please use @Streamly.Unicode.*@
19-- modules for encoding and decoding a byte stream, use stream splitting
19-- modules for encoding and decoding a byte stream, use stream splitting
20−-- operations in "Streamly.Prelude" to create a stream of lines or to split the
20+-- operations in "Streamly.Data.Stream" to create a stream of lines or to split
21−-- input stream on any other type of boundaries.
21+-- the input stream on any other type of boundaries.
22--
22--
23-- To set the read or write start position use 'hSeek' on the 'Handle', the
23-- To set the read or write start position use 'hSeek' on the 'Handle', the
24−-- 'Streamly.Prelude.before' combinator may be used to do that on a streaming
24+-- 'Streamly.Data.Stream.before' combinator may be used to do that on a
25−-- combinator. To restrict the length of read or write use the stream trimming
25+-- streaming combinator. To restrict the length of read or write use the stream
26−-- operations like 'Streamly.Prelude.take'.
26+-- trimming operations like 'Streamly.Data.Stream.take'.
27--
27--
28-- Note that a 'Handle' is inherently stateful, therefore, we cannot use these
28-- Note that a 'Handle' is inherently stateful, therefore, we cannot use these
29-- APIs from multiple threads without serialization; reading or writing in one
29-- APIs from multiple threads without serialization; reading or writing in one
core/src/Streamly/Internal/Data/Array/Stream.hs+1−1
@@ -1144,7 +1144,7 @@ runArrayFoldManyD
1144-- | Apply an 'ArrayFold' repeatedly on an array stream and emit the
1144-- | Apply an 'ArrayFold' repeatedly on an array stream and emit the
1145-- fold outputs in the output stream.
1145-- fold outputs in the output stream.
1146--
1146--
1147−-- See "Streamly.Prelude.foldMany" for more details.
1147+-- See "Streamly.Data.Stream.foldMany" for more details.
1148--
1148--
1149-- /Pre-release/
1149-- /Pre-release/
1150{-# INLINE runArrayFoldMany #-}
1150{-# INLINE runArrayFoldMany #-}
core/src/Streamly/Internal/Data/Parser.hs+1−1
@@ -1077,7 +1077,7 @@ regexPCRE = undefined
1077-- operation fails if any of the parsers fail.
1077-- operation fails if any of the parsers fail.
1078--
1078--
1079-- Note: This is a parsing dual of appending streams using
1079-- Note: This is a parsing dual of appending streams using
1080−-- 'Streamly.Prelude.serial', it splits the streams using two parsers and zips
1080+-- 'Streamly.Data.Stream.append', it splits the streams using two parsers and zips
1081-- the results.
1081-- the results.
1082--
1082--
1083-- This implementation is strict in the second argument, therefore, the
1083-- This implementation is strict in the second argument, therefore, the
core/src/Streamly/Internal/Data/Pipe.hs+2−2
@@ -7,7 +7,7 @@
7-- Portability : GHC
7-- Portability : GHC
8--
8--
9-- There are three fundamental types in streamly. They are streams
9-- There are three fundamental types in streamly. They are streams
10−-- ("Streamly.Prelude"), pipes ("Streamly.Internal.Data.Pipe") and folds ("Streamly.Data.Fold").
10+-- ("Streamly.Data.Stream"), pipes ("Streamly.Internal.Data.Pipe") and folds ("Streamly.Data.Fold").
11-- Streams are sources or producers of values, multiple sources can be merged
11-- Streams are sources or producers of values, multiple sources can be merged
12-- into a single source but a source cannot be split into multiple stream
12-- into a single source but a source cannot be split into multiple stream
13-- sources. Folds are sinks or consumers, a stream can be split and
13-- sources. Folds are sinks or consumers, a stream can be split and
@@ -255,7 +255,7 @@ import Streamly.Internal.Data.Pipe.Type
255-- import Streamly.Internal.Data.Strict
255-- import Streamly.Internal.Data.Strict
256
256
257-- import qualified Streamly.Internal.Data.Array.Type as A
257-- import qualified Streamly.Internal.Data.Array.Type as A
258−-- import qualified Streamly.Prelude as S
258+-- import qualified Streamly.Data.Stream as S
259-- import qualified Streamly.Internal.Data.Stream.StreamD as D
259-- import qualified Streamly.Internal.Data.Stream.StreamD as D
260-- import qualified Streamly.Internal.Data.Stream.StreamK as K
260-- import qualified Streamly.Internal.Data.Stream.StreamK as K
261-- import qualified Streamly.Internal.Data.Stream.Common as P
261-- import qualified Streamly.Internal.Data.Stream.Common as P
core/src/Streamly/Internal/Data/Refold/Type.hs+1−1
@@ -76,7 +76,7 @@ data Refold m c a b =
76-- If your 'Fold' returns only 'Partial' (i.e. never returns a 'Done') then you
76-- If your 'Fold' returns only 'Partial' (i.e. never returns a 'Done') then you
77-- can use @foldl'*@ constructors.
77-- can use @foldl'*@ constructors.
78--
78--
79−-- See also: @Streamly.Prelude.foldl'@
79+-- See also: @Streamly.Data.Fold.foldl'@
80--
80--
81-- /Internal/
81-- /Internal/
82--
82--
core/src/Streamly/Internal/Data/Unfold.hs+2−2
@@ -95,9 +95,9 @@
95-- optimization when merging, appending or concatenating multiple streams.
95-- optimization when merging, appending or concatenating multiple streams.
96-- Even though stream based combinator have excellent performance, they are
96-- Even though stream based combinator have excellent performance, they are
97-- much less efficient when compared to combinators using 'Unfold'. For
97-- much less efficient when compared to combinators using 'Unfold'. For
98−-- example, the 'Streamly.Prelude.concatMap' combinator which uses @a -> t m b@
98+-- example, the 'Streamly.Data.Stream.concatMap' combinator which uses @a -> t m b@
99-- (where @t@ is a stream type) to generate streams is much less efficient
99-- (where @t@ is a stream type) to generate streams is much less efficient
100−-- compared to 'Streamly.Prelude.unfoldMany'.
100+-- compared to 'Streamly.Data.Stream.unfoldMany'.
101--
101--
102-- On the other hand, transformation operations on stream types are as
102-- On the other hand, transformation operations on stream types are as
103-- efficient as transformations on 'Unfold'.
103-- efficient as transformations on 'Unfold'.
core/src/Streamly/Unicode/Stream.hs+10−11
@@ -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.
20--
20--
21-- = Storing Unicode Strings
21-- = Storing Unicode Strings
22--
22--
@@ -25,14 +25,13 @@
25-- memory.
25-- memory.
26--
26--
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.
31−--
30+--
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.
38--
37--