[Haskell-beginners] Parsec chapter in realworldhaskell (ch.16)
Obscaenvs
obscaenvs at gmail.com
Fri Oct 14 11:30:46 CEST 2011
In http://book.realworldhaskell.org/read/using-parsec.html , under the
heading "Extended example: Full CSV Parser", there is in the function
quotedChar an occurrence of the operator <|> with a try after it (i.e.
to the right) . Now, in this chapter it says a little before that "|try|
only has an effect if it is on the left of a |<|>|.". So in this
particular case, try has no effect, or?
The offending code: <code>quotedChar = noneOf "\"" <|> try (string
"\"\"" >> return '"')</code>
Help much appreciated, if not absolutely vital :)
/Fredrik
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.haskell.org/pipermail/beginners/attachments/20111014/f63b6ede/attachment.htm>
More information about the Beginners
mailing list