HORIZON HASKELLDocslts/ghc-9.10.xc74966e2026-09-27Search names, modules, packages, or :: a typeCtrl K

GHC 9.10.3 · lts/ghc-9.10.x · c74966e · 2026-09-27

Modulexhtml-3000.2.2.1Haskell2010

Text.XHtml.Transitional

Produces XHTML 1.0 Transitional.

  • 4 types
  • 3 classes
  • 220 values
  • Packagexhtml-3000.2.2.1
  • Exports227
  • LanguageHaskell2010
  • LicenceBSD-3-Clause
  • SourceTransitional.hs

Data types

2 declarations
newtypenewtype Html
#
Instances7Show, Semigroup, Monoid, ADDATTRS, CHANGEATTRS, HTML, …
  • Show HtmlDefined in xhtml-3000.2.2.1 · Text.XHtml.Internals
  • Semigroup HtmlDefined in xhtml-3000.2.2.1 · Text.XHtml.Internals
  • Monoid HtmlDefined in xhtml-3000.2.2.1 · Text.XHtml.Internals
  • ADDATTRS HtmlDefined in xhtml-3000.2.2.1 · Text.XHtml.Internals
  • CHANGEATTRS HtmlDefined in xhtml-3000.2.2.1 · Text.XHtml.Internals
  • HTML HtmlDefined in xhtml-3000.2.2.1 · Text.XHtml.Internals
  • HTMLTABLE HtmlDefined in xhtml-3000.2.2.1 · Text.XHtml.Table
datadata HtmlAttr
#

Attributes with name and value.

Instances1Show
  • Show HtmlAttrDefined in xhtml-3000.2.2.1 · Text.XHtml.Internals

Classes

3 declarations
classclass HTML a where
#

HTML is the class of things that can be validly put inside an HTML tag. So this can be one or more Html elements, or a String, for example.

Methods

Instances7HTML, …
  • HTML CharDefined in xhtml-3000.2.2.1 · Text.XHtml.Internals
  • HTML HtmlTreeDefined in xhtml-3000.2.2.1 · Text.XHtml.Debug
  • HTML HotLinkDefined in xhtml-3000.2.2.1 · Text.XHtml.Extras
  • HTML HtmlDefined in xhtml-3000.2.2.1 · Text.XHtml.Internals
  • HTML HtmlTableDefined in xhtml-3000.2.2.1 · Text.XHtml.Table
  • HTML a => HTML (Maybe a)Defined in xhtml-3000.2.2.1 · Text.XHtml.Internals
  • HTML a => HTML [a]Defined in xhtml-3000.2.2.1 · Text.XHtml.Internals

Primitives and basic combinators

13 declarations
value(<<)
  1. :: HTML a
  2. => (Html -> b)

    Parent

  3. -> a

    Child

  4. -> b
#

Put something inside an HTML element.

value(+++) :: (HTML a, HTML b) => a -> b -> Html
#

Create a piece of HTML which is the concatenation of two things which can be made into HTML.

valuetag
  1. :: String

    Element name

  2. -> Html

    Element contents

  3. -> Html
#

Constructs an element with a custom name.

valueitag :: String -> Html
#

Constructs an element with a custom name, and without any children.

valueprimHtml :: String -> Html
#

This is not processed for special chars. use stringToHtml or lineToHtml instead, for user strings, because they understand special chars, like <.

Rendering

209 declarations
valueshowHtml :: HTML html => html -> String
#

Output the HTML without adding newlines or spaces within the markup. This should be the most time and space efficient way to render HTML, though the output is quite unreadable.

valuerenderHtml :: HTML html => html -> String
#

Outputs indented HTML. Because space matters in HTML, the output is quite messy.

valueprettyHtml :: HTML html => html -> String
#

Outputs indented HTML, with indentation inside elements. This can change the meaning of the HTML document, and is mostly useful for debugging the HTML output. The implementation is inefficient, and you are normally better off using showHtml or renderHtml.

valueshowHtmlFragment :: HTML html => html -> String
#

Render a piece of HTML without adding a DOCTYPE declaration or root element. Does not add any extra whitespace.

valuerenderHtmlFragment :: HTML html => html -> String
#

Render a piece of indented HTML without adding a DOCTYPE declaration or root element. Only adds whitespace where it does not change the meaning of the document.

valueprettyHtmlFragment :: HTML html => html -> String
#

Render a piece of indented HTML without adding a DOCTYPE declaration or a root element. The indentation is done inside elements. This can change the meaning of the HTML document, and is mostly useful for debugging the HTML output. The implementation is inefficient, and you are normally better off using showHtmlFragment or renderHtmlFragment.

valuestrike :: Html -> Html
#

Deprecated. This element is deprecated in XHTML 1.0

valuethemenu :: Html -> Html
#

Deprecated. This element is deprecated in XHTML 1.0

valueisindex :: Html
#

Deprecated. This element is deprecated in XHTML 1.0

valuefont :: Html -> Html
#

Deprecated. This element is deprecated in XHTML 1.0

valuedir :: Html -> Html
#

Deprecated. This element is deprecated in XHTML 1.0

valuecenter :: Html -> Html
#

Deprecated. This element is deprecated in XHTML 1.0

valuebasefont :: Html
#

Deprecated. This element is deprecated in XHTML 1.0

valueapplet :: Html -> Html
#

Deprecated. This element is deprecated in XHTML 1.0

valueaqua :: String
#

Deprecated. The use of color attibutes is deprecated in XHTML 1.0

valueblack :: String
#

Deprecated. The use of color attibutes is deprecated in XHTML 1.0

valueblue :: String
#

Deprecated. The use of color attibutes is deprecated in XHTML 1.0

valuefuchsia :: String
#

Deprecated. The use of color attibutes is deprecated in XHTML 1.0

valuegray :: String
#

Deprecated. The use of color attibutes is deprecated in XHTML 1.0

valuegreen :: String
#

Deprecated. The use of color attibutes is deprecated in XHTML 1.0

valuelime :: String
#

Deprecated. The use of color attibutes is deprecated in XHTML 1.0

valuemaroon :: String
#

Deprecated. The use of color attibutes is deprecated in XHTML 1.0

valuenavy :: String
#

Deprecated. The use of color attibutes is deprecated in XHTML 1.0

valueolive :: String
#

Deprecated. The use of color attibutes is deprecated in XHTML 1.0

valuepurple :: String
#

Deprecated. The use of color attibutes is deprecated in XHTML 1.0

valuered :: String
#

Deprecated. The use of color attibutes is deprecated in XHTML 1.0

valuesilver :: String
#

Deprecated. The use of color attibutes is deprecated in XHTML 1.0

valueteal :: String
#

Deprecated. The use of color attibutes is deprecated in XHTML 1.0

valueyellow :: String
#

Deprecated. The use of color attibutes is deprecated in XHTML 1.0

valuewhite :: String
#

Deprecated. The use of color attibutes is deprecated in XHTML 1.0

valuestart :: Int -> HtmlAttr
#

Deprecated. This attribute is deprecated in XHTML 1.0

valuenowrap :: HtmlAttr
#

Deprecated. This attribute is deprecated in XHTML 1.0

valuenoshade :: HtmlAttr
#

Deprecated. This attribute is deprecated in XHTML 1.0

valuecompact :: HtmlAttr
#

Deprecated. This attribute is deprecated in XHTML 1.0

valuemenu :: String -> [Html] -> Html
#

Deprecated. menu generates strange XHTML, and is not flexible enough. Roll your own that suits your needs.

valuelinesToHtml :: [String] -> Html
#

This converts a string, but keeps spaces as non-line-breakable, and adds line breaks between each of the strings in the input list.