[Haskell-cafe] Need help with learning Parsec

Christian Maeder Christian.Maeder at dfki.de
Thu Jul 19 15:14:28 CEST 2012


Am 19.07.2012 14:53, schrieb C K Kashyap:
> innerXML = do
>           x <- (try xml <|> gettext)
>           return x

Omit "try" (and return).
xml always starts with "<" whereas gettext never does.

C.





More information about the Haskell-Cafe mailing list