This module provides infix versions of various functions from the
Combine module.
Variant of Combine.map that ignores the Parser's result.
Variant of Combine.mapError that replaces the Parser's error
with a List of a single string.
parse (string "a" <?> "gimme an 'a'") "b" ==
(Fail ["gimme an 'a'"], { input = "b", position = 0 })Synonym for Combine.andMap.
Join two parsers, ignoring the result of the one on the left.
unprefix : Parser String
unprefix = string ">" *> while ((==) ' ') *> while ((/=) ' ')
parse unprefix "> a" == (Done "a", { input = "", position = 3 })Join two parsers, ignoring the result of the one on the right.
unsuffix : Parser String
unsuffix = regex "[a-z]" <* regex "[!?]"
parse unsuffix "a!" == (Done "a", { input = "", position = 2 })Synonym for or.
Synonym for
Combine.map.