cvs commit: fptools/libraries/HaXml/src/Text/ParserCombinators
Poly.hs PolyState.hs TextParser.hs
Malcolm Wallace
Malcolm.Wallace at cs.york.ac.uk
Sun Nov 20 08:23:54 EST 2005
malcolm 2005/11/20 05:23:54 PST
Modified files:
libraries/HaXml/src/Text/ParserCombinators Poly.hs
TextParser.hs
Added files:
libraries/HaXml/src/Text/ParserCombinators PolyState.hs
Log:
Separate out a set of parser combinators with a running state
(PolyState) from those without any state (Poly). The two sets are
nearly identical - the names are the same, but their types are simpler.
Add new combinator to both sets: oneOf'. It is like oneOf, but if all
the alternatives fail, it collects all the error messages and presents
them together, rather than throwing them away in favour of a single
general message.
There are also new combinators in the TextParser module, primarily to
improve error messages, dealing with multiple Haskell-style
constructors.
Revision Changes Path
1.2 +84 -80 fptools/libraries/HaXml/src/Text/ParserCombinators/Poly.hs
1.2 +59 -43 fptools/libraries/HaXml/src/Text/ParserCombinators/TextParser.hs
More information about the Cvs-libraries
mailing list