purescript-contrib/purescript-string-parsers

foldl in choice

Closed this issue · 1 comments

Is there a reason why the choice combinator favours foldl over foldr? It means, I think, that if you want to resolve any ambiguities in a grammar between options you must list them in reverse order. (It's just not what I was expecting.)

Oops. I don't think this is a problem any longer - I was confused because I was translating an Elm project where the combinator library didn't implement try and so presumably backtracked by default.