@@ -1446,14 +1446,14 @@ manyThen _parser _recover _f = undefined
1447{-# INLINE deintercalate #-}
1447{-# INLINE deintercalate #-}
1448deintercalate :: Monad m =>
1448deintercalate :: Monad m =>
1449− Fold m (Either x y) z
1450− -> Parser m a x
1449+ Parser m a x
1451 -> Parser m a y
1450 -> Parser m a y
1451+ -> Fold m (Either x y) z
1452 -> Parser m a z
1452 -> Parser m a z
1453−deintercalate sink contentL contentR =
1453+deintercalate contentL contentR sink =
1454 D.toParserK
1454 D.toParserK
1455 $ D.deintercalate
1455 $ D.deintercalate
1456− sink (D.fromParserK contentL) (D.fromParserK contentR)
1456+ (D.fromParserK contentL) (D.fromParserK contentR) sink
1458-- | Parse items separated by a separator parsed by the supplied parser. At
1458-- | Parse items separated by a separator parsed by the supplied parser. At
1459-- least one item must be present for the parser to succeed.
1459-- least one item must be present for the parser to succeed.
@@ -1474,7 +1474,7 @@ sepBy1 sink p sep = do
1474-- run, when it is done content parser is run again and so on. If none of the
1474-- run, when it is done content parser is run again and so on. If none of the
1475-- parsers consumes an input then parser returns a failure.
1475-- parsers consumes an input then parser returns a failure.
1477−-- >>> sepBy sink = Parser.deintercalate (Fold.lefts sink)
1477+-- >>> sepBy sink p1 p2 = Parser.deintercalate p1 p2 (Fold.lefts sink)
1478-- >>> sepBy sink content sep = Parser.sepBy1 sink content sep <|> return mempty
1478-- >>> sepBy sink content sep = Parser.sepBy1 sink content sep <|> return mempty
1480{-# INLINE sepBy #-}
1480{-# INLINE sepBy #-}