https://github.com/purescript-contrib/purescript-parsing/blob/223f66bb673d48d9f6a820eaa8bb20bdf6fc1462/src/Text/Parsing/Parser/Combinators.purs#L210-L214 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 See also https://github.com/purescript-contrib/purescript-string-parsers/issues/73
Activity
jamesdbrock commentedon Feb 13, 2022
https://markkarpov.com/tutorial/megaparsec.html#notfollowedby-and-lookahead