Portability | Haskell 98 |
---|---|
Stability | experimental |
Maintainer | Niklas Broberg, nibro@cs.chalmers.se |
Datatypes and type classes comprising the basic model behind the scenes of Haskell Server Pages tags.
- data XML
- data XMLMetaData = XMLMetaData {
- doctype :: (Bool, String)
- contentType :: String
- preferredRenderer :: XML -> String
- type Domain = Maybe String
- type Name = (Domain, String)
- type Attributes = [Attribute]
- type Children = [XML]
- pcdata :: String -> XML
- cdata :: String -> XML
- newtype Attribute = MkAttr (Name, AttrValue)
- data AttrValue = Value Bool String
- attrVal :: String -> AttrValue
- pAttrVal :: String -> AttrValue
- renderXML :: XML -> String
- isElement :: XML -> Bool
- isCDATA :: XML -> Bool
The XML
datatype
The XML datatype representation. Is either an Element or CDATA.
data XMLMetaData Source
The XMLMetaData datatype
Specify the DOCTYPE, content-type, and preferred render for XML data.
See also: HSP.Monad.setMetaData
and HSP.Monad.withMetaData
XMLMetaData | |
|
type Attributes = [Attribute]Source
The Attribute type
Represents an attribue value.