|
Text.XML.HaXml.DtdToHaskell.TypeDef |
|
|
|
|
Description |
Defines an internal representation of Haskell data/newtype definitions
that correspond to the XML DTD types, and provides pretty-printers to
convert these types into the Doc type of Text.PrettyPrint.HughesPJ.
|
|
Synopsis |
|
|
|
|
Internal representation of types
|
|
|
Constructors | | Instances | |
|
|
|
|
|
|
|
Constructors | | Instances | |
|
|
Pretty-print a TypeDef
|
|
|
|
|
Pretty print Haskell name.
|
|
|
Pretty print XML name.
|
|
|
Pretty print Haskell attributes name.
|
|
Name mangling
|
|
|
Need to keep both the XML and Haskell versions of a name.
| Constructors | Name | | xName :: String | original XML name
| hName :: String | mangled Haskell name
|
|
| Instances | |
|
|
|
Make a type name valid in both XML and Haskell.
|
|
|
Append an underscore to the Haskell version of the name.
|
|
|
Prefix an attribute enumeration type name with its containing element
name.
|
|
name_ac :: String -> String -> String -> Name | Source |
|
Prefix an attribute enumeration constructor with its element-tag name,
and its enumeration type name.
|
|
|
Prefix a field name with its enclosing element name.
|
|
mangle :: String -> String | Source |
|
Convert an XML name to a Haskell conid.
|
|
manglef :: String -> String | Source |
|
Convert an XML name to a Haskell varid.
|
|
Produced by Haddock version 0.8 |