xml-types 0.1 → 0.1.1
raw patch · 2 files changed
+18/−1 lines, 2 files
Files
- Data/XML/Types.hs +17/−0
- xml-types.cabal +1/−1
Data/XML/Types.hs view
@@ -42,6 +42,9 @@ , ExternalID (..) , InternalSubset + -- ** Incremental processing+ , Event (..)+ -- * Predicates , isElement , isInstruction@@ -145,6 +148,20 @@ data InternalSubset = InternalSubset -- TODO+ deriving (Show, Eq)++-- | Some XML processing tools are incremental, and work in terms of events+-- rather than node trees. Defining the event type here, even though it won't+-- be useful to most users, allows these packages to interoperate more easily.+data Event+ = EventBeginDocument+ | EventEndDocument+ | EventInstruction Instruction+ | EventDoctype Doctype+ | EventBeginElement Name [Attribute]+ | EventEndElement Name+ | EventContent Content+ | EventComment Text deriving (Show, Eq) isElement :: Node -> [Element]
xml-types.cabal view
@@ -1,5 +1,5 @@ name: xml-types-version: 0.1+version: 0.1.1 synopsis: Basic types for representing XML license: MIT license-file: license.txt