A parser that returns a list of possibilities
Inspired by Hutton and Meijer's library, using list to represent possible parsers.
Something like this:
type alias Parser a =
String -> Result ParserFailure (List (a, String))
But Ok []
is an impossible state
should we instead use non-empty lists?