on master help sign in
Move interleaved repetition ops together
commit9989e87c1d1b1cc9def6c794d6f844fde8970cd6 authorHarendra Kumar <harendra@composewell.com> dateMon 27 Feb 2023, 17:49 (4 years ago) parent965ccd4
1 file changed+24−24
core/src/Streamly/Internal/Data/Parser/ParserD.hs+24−24
core/src/Streamly/Internal/Data/Parser/ParserD.hs+24−24
@@ -174,7 +174,30 @@ module Streamly.Internal.Data.Parser.ParserD
174174 -- , teeTill -- like manyTill but parallel
175175 -}
176176
177− -- ** Sequential Interleaving
177+ -- ** Sequential Alternative
178+ , alt
179+
180+ {-
181+ -- ** Parallel Alternatives
182+ , shortest
183+ , longest
184+ -- , fastest
185+ -}
186+
187+ -- * N-ary Combinators
188+ -- ** Sequential Collection
189+ , sequence
190+ , concatMap
191+
192+ -- ** Sequential Repetition
193+ , count
194+ , countBetween
195+ -- , countBetweenTill
196+ , manyP
197+ , many
198+ , some
199+
200+ -- ** Interleaved Repetition
178201 -- Use two folds, run a primary parser, its rejected values go to the
179202 -- secondary parser.
180203 , deintercalate
@@ -202,29 +225,6 @@ module Streamly.Internal.Data.Parser.ParserD
202225 , sepBy
203226 , sepByAll
204227
205− -- ** Sequential Alternative
206− , alt
207−
208− {-
209− -- ** Parallel Alternatives
210− , shortest
211− , longest
212− -- , fastest
213− -}
214−
215− -- * N-ary Combinators
216− -- ** Sequential Collection
217− , sequence
218− , concatMap
219−
220− -- ** Sequential Repetition
221− , count
222− , countBetween
223− -- , countBetweenTill
224−
225− , manyP
226− , many
227− , some
228228 , manyTillP
229229 , manyTill
230230 , manyThen