WashNGo-2.12: WASH is a family of embedded domain specific languages (EDSL) for programming Web applications in Haskell.ContentsIndex
WASH.HTML.HTMLBase
Synopsis
data BT
= STATIC
| DYNAMIC
| TOPLEVEL
data ATTR_ = ATTR_ {
attr_BT :: BT
attr_value_BT :: BT
attr_name :: String
attr_value :: String
}
data ELEMENT_
= ELEMENT_ {
elem_BT :: BT
tag :: String
attrs :: [ATTR_]
elems :: [ELEMENT_]
}
| EMPTY_ {
elem_BT :: BT
tag :: String
attrs :: [ATTR_]
}
| CDATA_ {
elem_BT :: BT
elem_cdata :: String
}
| COMMENT_ {
elem_BT :: BT
elem_comment :: String
}
| DOCTYPE_ {
elem_BT :: BT
doctype :: [String]
elems :: [ELEMENT_]
}
data CDATA_OPTIONS
= CDATA_ENCODED
| CDATA_FORMATTED
shows_attributes :: [ATTR_] -> ShowS
shows_attribute :: ATTR_ -> ShowS
shows_elements :: [ELEMENT_] -> ShowS
shows_element :: ELEMENT_ -> ShowS
commentEncode :: String -> ShowS
htmlEncode :: String -> String
htmlAttr :: String -> ShowS
Documentation
data BT
Constructors
STATIC
DYNAMIC
TOPLEVEL
data ATTR_
Constructors
ATTR_
attr_BT :: BT
attr_value_BT :: BT
attr_name :: String
attr_value :: String
show/hide Instances
data ELEMENT_
Constructors
ELEMENT_
elem_BT :: BT
tag :: String
attrs :: [ATTR_]
elems :: [ELEMENT_]
EMPTY_
elem_BT :: BT
tag :: String
attrs :: [ATTR_]
CDATA_
elem_BT :: BT
elem_cdata :: String
COMMENT_
elem_BT :: BT
elem_comment :: String
DOCTYPE_
elem_BT :: BT
doctype :: [String]
elems :: [ELEMENT_]
show/hide Instances
data CDATA_OPTIONS
Constructors
CDATA_ENCODED
CDATA_FORMATTED
show/hide Instances
shows_attributes :: [ATTR_] -> ShowS
shows_attribute :: ATTR_ -> ShowS
shows_elements :: [ELEMENT_] -> ShowS
shows_element :: ELEMENT_ -> ShowS
commentEncode :: String -> ShowS
removes illegal characters and sequences of -- from comment
htmlEncode :: String -> String
htmlAttr :: String -> ShowS
Produced by Haddock version 0.8