
14 Oct
2011
14 Oct
'11
9:30 a.m.
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