Data.XCB.FromXML

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

Copyright | (c) Antoine Latter 2008
License | BSD3
Maintainer | Antoine Latter <aslatter@gmail.com>
Stability | provisional
Portability | portable
Safe Haskell | Safe
Language | Haskell98

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

- fromFiles :: [FilePath] -> IO [XHeader]
- fromStrings :: [String] -> [XHeader]

# Documentation

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

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] #

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.