(>>) : List a -> List a -> List a Joins lists.
Using the `>>` operator allows the use of the `do` syntax.
Totality: total
Visibility: public export
Fixity Declaration: infixl operator, level 1(>>) : Either String (List a) -> Either String (List a) -> Either String (List a) Joins Either.
Using the `>>` operator allows the use of the `do` syntax.
Totality: total
Visibility: public export
Fixity Declaration: infixl operator, level 1data EscapedText : Type- Totality: total
Visibility: export
Constructor: Escaped : String -> EscapedText
Hints:
Eq EscapedText Show EscapedText
escape : String -> EscapedText Escape a `String` for use a attribute's value.
The following characters are escaped: '"', '\'', '&' and '<'.
This function is the only way to construct a `EscapedValue` as the
`EscapedValue` constructor is kept private.
Totality: total
Visibility: exportdata EscapedScript : Type A dynamic script such as a Javascript.
Totality: total
Visibility: export
Constructor: MkScript : String -> EscapedScript
Hints:
Eq EscapedScript Show EscapedScript
escapeScript : String -> EscapedScript Escapes the content of a script.
This follows the recommendations set in the [HTML specification][1].
[1]: https://html.spec.whatwg.org/multipage/scripting.html#restrictions-for-contents-of-script-elements
Totality: total
Visibility: exportdata EscapedCss : Type CSS.
Totality: total
Visibility: export
Constructor: MkCss : String -> EscapedCss
Hints:
Eq EscapedCss Show EscapedCss
escapeCss : String -> EscapedCss Escapes CSS content.
Totality: total
Visibility: exportdata Element : Type A HTML element.
Totality: total
Visibility: public export
Constructors:
NormalElement : Name -> List Attribute -> List Element -> Element A normal element with attributes and children elements.
VoidElement : Name -> List Attribute -> Element An element without any children elements.
PlainText : EscapedText -> Element Plain text content.
Script : EscapedScript -> Element Script content.
Css : EscapedCss -> Element Css content.
HtmlCode : String -> Element Unescaped HTML code.
Hints:
Eq Element FromString Element FromString (List Element) Show Element
name : Element -> Name Returns an element's name.
Totality: total
Visibility: public exportnames : List Element -> List Name Returns names of an elements' list.
Totality: total
Visibility: public exportattributes : Element -> List Attribute Returns the list of attributes of an element.
Totality: total
Visibility: public exportmetadata : List String List of the metadata elements.
Such elements are accepted as children of the `head` element.
Totality: total
Visibility: public exportembeddedContent : List String Embedded content elements.
The list is as per [the one of MDN][1].
[1]: https://developer.mozilla.org/docs/Web/HTML/Guides/Content_categories#embedded_content
Totality: total
Visibility: public exportflowContent : List String Flow content elements including plain text.
The list is as per [the one of MDN][1].
[1]: https://developer.mozilla.org/docs/Web/HTML/Guides/Content_categories#flow_content
Totality: total
Visibility: public exportinteractiveContent : List String Interactive content elements.
The list is as per [the one of MDN][1].
[1]: https://developer.mozilla.org/docs/Web/HTML/Guides/Content_categories#interactive_content
Totality: total
Visibility: public exportphrasingContent : List String Phrasing content elements including plain text.
Elements valid only in certain conditions are also included.
The list is as per [the one of MDN][1].
[1]: https://developer.mozilla.org/docs/Web/HTML/Guides/Content_categories#phrasing_content
Totality: total
Visibility: public exportheadingContent : List String Heading content.
**h1** to **h6** or **hgroup** elements.
Totality: total
Visibility: public exportsectioningContent : List String Sectioning content.
**article**, **aside**, **nav** or **section** elements.
Totality: total
Visibility: public exportlistContent : List String Content accepted by lists type elements (**ul** or **ol**).
Totality: total
Visibility: public exportdata Doctype : Type A doctype preamble.
Note: currently only the HTML 5 one is available, but this could potentially
be extended.
Totality: total
Visibility: public export
Constructor: Html5 : Doctype
record Html : Type A HTML document.
Totality: total
Visibility: public export
Constructor: MkHtml : Doctype -> Element -> Html
Projections:
.doctype : Html -> Doctype Doctype preamble.
.htmlElement : Html -> Element Root HTML element.
.doctype : Html -> Doctype Doctype preamble.
Totality: total
Visibility: public exportdoctype : Html -> Doctype Doctype preamble.
Totality: total
Visibility: public export.htmlElement : Html -> Element Root HTML element.
Totality: total
Visibility: public exporthtmlElement : Html -> Element Root HTML element.
Totality: total
Visibility: public export