On 31 October 2010 16:15, Nils Schweinsberg <m...@n-sch.de> wrote:

> This is exactly what gives me headaches. It's hard to tell where you need
> try/lookAhead and where you don't need them. And I don't really feel
> comfortable wrapping everything into try blocks...


I always thought this was an obvious decision: when combining 2 parsers `a`
 and `b` (i.e. a <|> b), if parser `a` fails without consuming any input do
not wrap it in a try, otherwise do.

Am I missing something?

Ozgur
_______________________________________________
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe

Reply via email to