2 Mar
2011
2 Mar
'11
12:51 p.m.
Actually this is stranger than I thought - from testing it seems like
Attoparsec's (<|>) is different to Parsec's. From what I'm seeing
Attoparsec appears to do a full back track for (<|>) regardless of
whether the string lexer is wrapped in try, whereas Parsec needs try
to backtrack.
On 2 March 2011 16:24, Stephen Tetley
*try* means backtrack on failure, and try the next parser. So if you want ill formed strings to throw an error if they aren't properly enclosed in double quotes don't use try.