cvs commit: fptools/libraries/HaXml/src/Text/XML/HaXml XmlContent.hs
Malcolm Wallace
Malcolm.Wallace at cs.york.ac.uk
Sat Nov 19 06:19:43 EST 2005
malcolm 2005/11/19 03:19:43 PST
Modified files:
libraries/HaXml/src/Text/XML/HaXml XmlContent.hs
Log:
Add combinators elementWith, inElementWith, etc. They allow more
flexible matching of the given possible tagnames. For example,
element tags = elementWith (==) tags
but when matching e.g. an Either constructor, the tag will be called
something like Left-string, or Right-bool, so we need
elementWith (flip isPrefixOf) ["Left","Right"]
rather than straightforward tag-equality.
Revision Changes Path
1.3 +28 -12 fptools/libraries/HaXml/src/Text/XML/HaXml/XmlContent.hs
More information about the Cvs-libraries
mailing list