Safe Haskell | Safe |
---|---|
Language | Haskell98 |
We do not define a tag data type here, since this is too much bound to the particular use (e.g. list or tree structure). However we define a tag name and some special names.
- newtype Name ident = Name {
- unname :: ident
- doctype :: Tag name => Name name
- doctypeName :: Tag name => Name name
- doctypeString :: String
- cdata :: Tag name => Name name
- cdataName :: Tag name => Name name
- cdataString :: String
- xmlName :: Tag name => Name name
- xmlString :: String
- maybeXMLEncoding :: (Tag name, Attribute name) => Name name -> T name string -> Maybe string