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 = Value Bool Text
- 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.
Show XML | |
(Functor m, Monad m) => XMLGenerator (HSPT XML m) | |
(Functor m, Monad m) => XMLGen (HSPT XML m) | |
(Functor m, Monad m) => AppendChild (HSPT XML m) XML | |
(Functor m, Monad m) => SetAttr (HSPT XML m) XML | |
(Monad m, Functor m) => EmbedAsAttr (HSPT XML m) Attribute | |
(Functor m, Monad m) => EmbedAsChild (HSPT XML m) () | |
(Functor m, Monad m) => EmbedAsChild (HSPT XML m) Char | |
(Functor m, Monad m) => EmbedAsChild (HSPT XML m) Text | |
(Functor m, Monad m) => EmbedAsChild (HSPT XML m) String | |
(Functor m, Monad m) => EmbedAsChild (HSPT XML m) XML | |
(Functor m, Monad m) => EmbedAsChild (HSPT XML m) [XML] | |
(Functor m, Monad m) => EmbedAsAttr (HSPT XML m) (Attr Text Int) | |
(Functor m, Monad m) => EmbedAsAttr (HSPT XML m) (Attr Text Bool) | |
(Monad m, Functor m) => EmbedAsAttr (HSPT XML m) (Attr Text Char) | |
(Functor m, Monad m) => EmbedAsAttr (HSPT XML m) (Attr Text Text) |
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