xcb-types-0.9.0: Parses XML files used by the XCB project

Copyright(c) Antoine Latter 2008
LicenseBSD3
MaintainerAntoine Latter <aslatter@gmail.com>
Stabilityprovisional
Portabilityportable
Safe HaskellSafe
LanguageHaskell98

Data.XCB.FromXML

Description

Handls parsing the data structures from XML files.

In order to support copying events and errors across module boundaries, all modules which may have cross-module event copies and error copies must be parsed at once.

There is no provision for preserving the event copy and error copy declarations - the copies are handled during parsing.

Synopsis

Documentation

fromFiles :: [FilePath] -> IO [XHeader] Source #

Process the listed XML files. Any files which fail to parse are silently dropped. Any declaration in an XML file which fail to parse are silently dropped.

fromStrings :: [String] -> [XHeader] Source #

Process the strings as if they were XML files. Any files which fail to parse are silently dropped. Any declaration in an XML file which fail to parse are silently dropped.