@@ -92,7 +92,7 @@ module Streamly.Internal.Data.Parser.ParserD
9292
9393 -- Matching strings
9494 , listEqBy
95− , eqBy
95+ , streamEqBy
9696 -- , prefixOf -- match any prefix of a given string
9797 -- , suffixOf -- match any suffix of a given string
9898 -- , infixOf -- match any substring of a given string
@@ -1469,7 +1469,7 @@ groupByRollingEither
14691469-- XXX custom combinators for matching list, array and stream?
14701470-- XXX rename to listBy?
14711471--
1472−-- | See 'Streamly.Internal.Data.Parser.eqBy'.
1472+-- | See 'Streamly.Internal.Data.Parser.streamEqBy'.
14731473--
14741474-- /Pre-release/
14751475--
@@ -1503,9 +1503,9 @@ listEqBy cmp str = Parser step initial extract
15031503 ++ show (length xs) ++ " elements"
15041504
15051505-- | Like 'listEqBy' but uses a stream instead of a list
1506−{-# INLINE eqBy #-}
1507−eqBy :: Monad m => (a -> a -> Bool) -> D.Stream m a -> Parser a m ()
1508−eqBy cmp (D.Stream sstep state) = Parser step initial extract
1506+{-# INLINE streamEqBy #-}
1507+streamEqBy :: Monad m => (a -> a -> Bool) -> D.Stream m a -> Parser a m ()
1508+streamEqBy cmp (D.Stream sstep state) = Parser step initial extract
15091509
15101510 where
15111511
@@ -1526,7 +1526,7 @@ eqBy cmp (D.Stream sstep state) = Parser step initial extract
15261526 D.Yield x1 s -> Continue 0 (Just' x1, s)
15271527 D.Stop -> Done 0 ()
15281528 D.Skip s -> Continue 1 (Nothing', s)
1529− else return $ Error "eqBy: mismtach occurred"
1529+ else return $ Error "streamEqBy: mismtach occurred"
15301530 step (Nothing', st) a = do
15311531 r <- sstep defState st
15321532 return
@@ -1534,11 +1534,11 @@ eqBy cmp (D.Stream sstep state) = Parser step initial extract
15341534 D.Yield x s -> do
15351535 if x `cmp` a
15361536 then Continue 0 (Nothing', s)
1537− else Error "eqBy: mismatch occurred"
1537+ else Error "streamEqBy: mismatch occurred"
15381538 D.Stop -> Done 1 ()
15391539 D.Skip s -> Continue 1 (Nothing', s)
15401540
1541− extract _ = return $ Error "eqBy: end of input"
1541+ extract _ = return $ Error "streamEqBy: end of input"
15421542
15431543-------------------------------------------------------------------------------
15441544-- Transformations on input