[Haskell-cafe] Re: [Parsec] Backtracking with try does not work for me?

Stephane Bortzmeyer bortzmeyer at nic.fr
Mon Jul 31 06:00:50 EDT 2006

On Mon, Jul 31, 2006 at 10:59:14AM +0200,
 Matthias Fischmann <fis at wiwi.hu-berlin.de> wrote 
 a message of 89 lines which said:

>        try b <|> (return '-')
> The (return 'x') is needed for type consistency. 

OK, it works. Many thanks for the solution and the explanations.

More information about the Haskell-Cafe mailing list