:: Ord a => [a] -> [a] -package:lens -package:safe -package:errors -package:base-prelude -package:ghc -package:containers -is:exact -package:extra package:parsers

Take a parser that may consume input, and on failure, go back to where we started and fail as if we didn't consume input.