@@ -55,11 +55,6 @@ module Streamly.Internal.Data.Stream.Nesting
55 -- yields an element. A special case of unfoldRoundRobin.
55 -- yields an element. A special case of unfoldRoundRobin.
56 , roundRobin -- interleaveFair?/ParallelFair
56 , roundRobin -- interleaveFair?/ParallelFair
59− -- | Zip corresponding elements of two streams.
63 -- *** Merging
58 -- *** Merging
64 -- | Interleave elements from two streams based on a condition.
59 -- | Interleave elements from two streams based on a condition.
@@ -76,17 +71,10 @@ module Streamly.Internal.Data.Stream.Nesting
76 -- unfoldMany: Unfold m a b -> t m a -> t m b
71 -- unfoldMany: Unfold m a b -> t m a -> t m b
80− -- | Generate streams by mapping a stream generator on each element of an
81− -- input stream, append the resulting streams and flatten.
85 -- *** ConcatUnfold
74 -- *** ConcatUnfold
86 -- | Generate streams by using an unfold on each element of an input
75 -- | Generate streams by using an unfold on each element of an input
87 -- stream, append the resulting streams and flatten. A special case of
76 -- stream, append the resulting streams and flatten. A special case of
88 -- gintercalate.
77 -- gintercalate.
90 , ConcatUnfoldInterleaveState (..)
78 , ConcatUnfoldInterleaveState (..)
91 , unfoldInterleave
79 , unfoldInterleave
92 , unfoldRoundRobin
80 , unfoldRoundRobin
@@ -118,11 +106,8 @@ module Streamly.Internal.Data.Stream.Nesting
119 -- ** Folding
107 -- ** Folding
120 -- | Apply folds on a stream.
108 -- | Apply folds on a stream.
123 , foldSequence
109 , foldSequence
124 , foldIterateM
110 , foldIterateM
127 -- ** Parsing
112 -- ** Parsing
128 -- | Parsing is opposite to flattening. 'parseMany' is dual to concatMap or
113 -- | Parsing is opposite to flattening. 'parseMany' is dual to concatMap or
@@ -139,7 +124,6 @@ module Streamly.Internal.Data.Stream.Nesting
140 -- ** Grouping
125 -- ** Grouping
141 -- | Group segments of a stream and fold. Special case of parsing.
126 -- | Group segments of a stream and fold. Special case of parsing.
143 , groupsBy
127 , groupsBy
144 , groupsWhile
128 , groupsWhile
145 , groupsRollingBy
129 , groupsRollingBy
@@ -147,8 +131,8 @@ module Streamly.Internal.Data.Stream.Nesting
147 -- ** Splitting
131 -- ** Splitting
148 -- | A special case of parsing.
132 -- | A special case of parsing.
149 , wordsBy
133 , wordsBy
150− , splitOnSeq
134+ , splitOnSeq -- XXX splitOnSeg
151− , splitOnSuffixSeq
135+ , splitOnSuffixSeq -- XXX splitOnSegSuffix, splitOnTrailer
153 -- XXX Implement these as folds or parsers instead.
137 -- XXX Implement these as folds or parsers instead.
154 , splitOnSuffixSeqAny
138 , splitOnSuffixSeqAny
@@ -3046,6 +3030,8 @@ splitInnerBySuffix isEmpty splitter joiner (Stream step1 state1) =
3047-- Space: @O(1)@
3031-- Space: @O(1)@
3033+-- See also stripPrefix.
3049-- /Unimplemented/
3035-- /Unimplemented/
3050{-# INLINE dropPrefix #-}
3036{-# INLINE dropPrefix #-}
3051dropPrefix ::
3037dropPrefix ::
@@ -3058,6 +3044,8 @@ dropPrefix = error "Not implemented yet!"
3059-- Space: @O(n)@ where n is the length of the infix.
3045-- Space: @O(n)@ where n is the length of the infix.
3047+-- See also stripInfix.
3061-- /Unimplemented/
3049-- /Unimplemented/
3062{-# INLINE dropInfix #-}
3050{-# INLINE dropInfix #-}
3063dropInfix ::
3051dropInfix ::
@@ -3070,6 +3058,8 @@ dropInfix = error "Not implemented yet!"
3071-- Space: @O(n)@ where n is the length of the suffix.
3059-- Space: @O(n)@ where n is the length of the suffix.
3061+-- See also stripSuffix.
3073-- /Unimplemented/
3063-- /Unimplemented/
3074{-# INLINE dropSuffix #-}
3064{-# INLINE dropSuffix #-}
3075dropSuffix ::
3065dropSuffix ::