Portability | Haskell 98 |
---|---|
Stability | experimental |
Maintainer | Niklas Broberg, niklas.broberg@gmail.com |
Safe Haskell | None |
Datatypes and type classes comprising the basic model behind the scenes of Haskell Server Pages tags.
- data XML
- data XMLMetaData = XMLMetaData {
- doctype :: (Bool, Text)
- contentType :: Text
- preferredRenderer :: XML -> Builder
- type Namespace = Maybe Text
- type NSName = (Namespace, Text)
- type Attributes = [Attribute]
- type Children = [XML]
- pcdata :: Text -> XML
- cdata :: Text -> XML
- newtype Attribute = MkAttr (NSName, AttrValue)
- data AttrValue
- attrVal :: Text -> AttrValue
- pAttrVal :: Text -> AttrValue
- renderXML :: XML -> Text
- isElement :: XML -> Bool
- isCDATA :: XML -> Bool
- fromStringLit :: String -> Text
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: setMetaData
and withMetaData
XMLMetaData | |
|
type Attributes = [Attribute]Source
The Attribute type
Functions
fromStringLit :: String -> TextSource