lookAhead consume on failure?
Opened this issue · 1 comments
jamesdbrock commented
purescript-parsing/src/Text/Parsing/Parser/Combinators.purs
Lines 210 to 214 in 223f66b
This seems different from the way that Parsec and Megaparsec work? They consume input in case of failure.
https://hackage.haskell.org/package/megaparsec-9.2.0/docs/Text-Megaparsec.html#v:lookAhead
https://hackage.haskell.org/package/parsec-3.1.15.0/docs/Text-Parsec.html#v:lookAhead