on master help sign in
Note the diff between takeEndBy fold and parser
7e48a52Harendra Kumar
core/src/Streamly/Internal/Data/Parser.hs+3−1
@@ -684,7 +684,9 @@ takeFramedByGeneric esc begin end f =
684--
684--
685-- >>> takeEndBy = Parser.takeEndByEsc (const False)
685-- >>> takeEndBy = Parser.takeEndByEsc (const False)
686--
686--
687−-- See also "Streamly.Data.Fold.takeEndBy".
687+-- See also "Streamly.Data.Fold.takeEndBy". Unlike the fold, the collecting
688+-- parser in the takeEndBy parser can decide whether to fail or not if the
689+-- stream does not end with separator.
688--
690--
689-- /Pre-release/
691-- /Pre-release/
690--
692--