{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE TypeApplications #-}

{- | Html5 formatting.

 The API is similar to < https://hackage.haskell.org/package/blaze-html >.
-}
module Data.Fmt.Html (
    -- * Html
    Html,
    Attr,
    toHtml,
    comment,
    Element (..),
    (!?),
   
    numbers,
    -- * Elements
    docType,
    docTypeHtml,
    a,
    abbr,
    address,
    area,
    article,
    aside,
    audio,
    b,
    base,
    bdo,
    blockquote,
    body,
    br,
    button,
    canvas,
    caption,
    cite,
    code,
    col,
    colgroup,
    command,
    datalist,
    dd,
    del,
    details,
    dfn,
    div,
    dl,
    dt,
    em,
    embed,
    fieldset,
    figcaption,
    figure,
    footer,
    form,
    h1,
    h2,
    h3,
    h4,
    h5,
    h6,
    head,
    header,
    hgroup,
    hr,
    html,
    i,
    iframe,
    img,
    input,
    ins,
    kbd,
    keygen,
    label,
    legend,
    li,
    link,
    main,
    map,
    mark,
    menu,
    menuitem,
    meta,
    meter,
    nav,
    noscript,
    object,
    ol,
    optgroup,
    option,
    output,
    p,
    param,
    pre,
    progress,
    q,
    rp,
    rt,
    ruby,
    samp,
    script,
    section,
    select,
    small,
    source,
    span,
    strong,
    style,
    sub,
    summary,
    sup,
    table,
    tbody,
    td,
    textarea,
    tfoot,
    th,
    thead,
    time,
    title,
    tr,
    track,
    u,
    ul,
    var,
    video,
    wbr,
    contact
) where

import Data.Fmt
import Prelude hiding (div, head, map, span)

import Data.Fmt.Attr (href)


contact :: Html LogStr
contact :: Html LogStr
contact = Html LogStr -> Html LogStr
forall a. Html a -> Html a
p Html LogStr
"You can reach me at" Html LogStr -> Html LogStr -> Html LogStr
forall m b c a. Semigroup m => Fmt m b c -> Fmt m a b -> Fmt m a c
% Html LogStr -> Html LogStr
forall a. Html a -> Html a
ul (Html LogStr -> Html LogStr)
-> (Html LogStr -> Html LogStr) -> Html LogStr -> Html LogStr
forall b c a. (b -> c) -> (a -> b) -> a -> c
. Html LogStr -> Html LogStr
forall s m a. IsString s => Fmt LogStr s m -> Fmt m a a
spr (Html LogStr -> Html LogStr)
-> (Html LogStr -> Html LogStr) -> Html LogStr -> Html LogStr
forall b c a. (b -> c) -> (a -> b) -> a -> c
. Html LogStr -> Html LogStr
forall a. Html a -> Html a
li (Html LogStr -> Html LogStr) -> Html LogStr -> Html LogStr
forall a b. (a -> b) -> a -> b
$ do
    LogStr
c1 <- Html LogStr -> Html LogStr
forall a. Html a -> Html a
a (Html LogStr -> Html LogStr) -> Attr -> Html LogStr -> Html LogStr
forall html. Element html => html -> Attr -> html
! forall s. ToLogStr s => s -> Attr
href @String String
"https://example.com" (Html LogStr -> Html LogStr) -> Html LogStr -> Html LogStr
forall a b. (a -> b) -> a -> b
$ Html LogStr
"Website"
    LogStr
c2 <- Html LogStr -> Html LogStr
forall a. Html a -> Html a
a (Html LogStr -> Html LogStr) -> Attr -> Html LogStr -> Html LogStr
forall html. Element html => html -> Attr -> html
! forall s. ToLogStr s => s -> Attr
href @String String
"mailto:cmk@example.com" (Html LogStr -> Html LogStr) -> Html LogStr -> Html LogStr
forall a b. (a -> b) -> a -> b
$ Html LogStr
"Email"
    LogStr -> Html LogStr
forall a. a -> Fmt LogStr LogStr a
forall (f :: * -> *) a. Applicative f => a -> f a
pure (LogStr -> Html LogStr) -> LogStr -> Html LogStr
forall a b. (a -> b) -> a -> b
$ LogStr
c1 LogStr -> LogStr -> LogStr
forall a. Semigroup a => a -> a -> a
<> LogStr
c2

-- "<p>You can reach me at</p><ul><li><a href=\"https://example.com\">Website</a></li><li><a href=\"mailto:cmk@example.com\">Email</a></li></ul>"

-- | Run a monadic expression.
--
-- This executes the formatting commands contained in the expression and 
-- returns the result as a variable.
run :: Fmt m m n -> Fmt n a a
run :: forall m n a. Fmt m m n -> Fmt n a a
run = n -> Fmt n a a
forall m a. m -> Fmt m a a
fmt (n -> Fmt n a a) -> (Fmt m m n -> n) -> Fmt m m n -> Fmt n a a
forall b c a. (b -> c) -> (a -> b) -> a -> c
. Fmt m m n -> n
forall m a. Fmt m m a -> a
runFmt

-- > runLogFmt $ numbers 2
-- "<html><p>A list of numbers:</p><html><ul><li>1</li><li>2</li></ul></html><p>The end.</p></html>"
numbers :: Int -> Html LogStr
numbers :: Int -> Html LogStr
numbers Int
n = Html LogStr -> Html LogStr
forall a. Html a -> Html a
html (Html LogStr -> Html LogStr) -> Html LogStr -> Html LogStr
forall a b. (a -> b) -> a -> b
$ do
    LogStr
l <- Html LogStr -> Html LogStr
forall a. Html a -> Html a
ul (Html LogStr -> Html LogStr)
-> ([Html LogStr] -> Html LogStr) -> [Html LogStr] -> Html LogStr
forall b c a. (b -> c) -> (a -> b) -> a -> c
. [Html LogStr] -> Html LogStr
forall m (f :: * -> *) a.
(Monoid m, Foldable f) =>
f (Fmt m a a) -> Fmt m a a
cat ([Html LogStr] -> Html LogStr) -> [Html LogStr] -> Html LogStr
forall a b. (a -> b) -> a -> b
$ Html LogStr -> Html LogStr
forall a. Html a -> Html a
li (Html LogStr -> Html LogStr)
-> (Int -> Html LogStr) -> Int -> Html LogStr
forall b c a. (b -> c) -> (a -> b) -> a -> c
. Int -> Html LogStr
forall s a. ToLogStr s => s -> Html a
toHtml (Int -> Html LogStr) -> [Int] -> [Html LogStr]
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
<$> [Int
1 .. Int
n]
    [Html LogStr] -> Html LogStr
forall m (f :: * -> *) a.
(Monoid m, Foldable f) =>
f (Fmt m a a) -> Fmt m a a
cat
        [ Html LogStr -> Html LogStr
forall a. Html a -> Html a
p Html LogStr
"A list of numbers:"
        , LogStr -> Html LogStr
forall m a. m -> Fmt m a a
fmt LogStr
l
        , Html LogStr -> Html LogStr
forall a. Html a -> Html a
p Html LogStr
"The end."
        ]

-- | Create a < https://en.wikipedia.org/wiki/HTML_element#Syntax tag > for an element.
element :: String -> Html a -> Html a
element :: forall a. String -> Html a -> Html a
element = Fmt LogStr a a
-> Fmt LogStr a a -> Fmt LogStr a a -> Fmt LogStr a a
forall m b2 c a b1.
Semigroup m =>
Fmt m b2 c -> Fmt m a b1 -> Fmt m b1 b2 -> Fmt m a c
enclose (Fmt LogStr a a
 -> Fmt LogStr a a -> Fmt LogStr a a -> Fmt LogStr a a)
-> (String -> Fmt LogStr a a)
-> String
-> Fmt LogStr a a
-> Fmt LogStr a a
-> Fmt LogStr a a
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
<$> (Fmt LogStr a a
-> Fmt LogStr a a -> Fmt LogStr a a -> Fmt LogStr a a
forall m b2 c a b1.
Semigroup m =>
Fmt m b2 c -> Fmt m a b1 -> Fmt m b1 b2 -> Fmt m a c
enclose Fmt LogStr a a
"<" Fmt LogStr a a
">" (Fmt LogStr a a -> Fmt LogStr a a)
-> (String -> Fmt LogStr a a) -> String -> Fmt LogStr a a
forall b c a. (b -> c) -> (a -> b) -> a -> c
. String -> Fmt LogStr a a
forall s a. ToLogStr s => s -> Html a
toHtml) (String -> Fmt LogStr a a -> Fmt LogStr a a -> Fmt LogStr a a)
-> (String -> Fmt LogStr a a)
-> String
-> Fmt LogStr a a
-> Fmt LogStr a a
forall a b. (String -> a -> b) -> (String -> a) -> String -> b
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
<*> (Fmt LogStr a a
-> Fmt LogStr a a -> Fmt LogStr a a -> Fmt LogStr a a
forall m b2 c a b1.
Semigroup m =>
Fmt m b2 c -> Fmt m a b1 -> Fmt m b1 b2 -> Fmt m a c
enclose Fmt LogStr a a
"</" Fmt LogStr a a
">" (Fmt LogStr a a -> Fmt LogStr a a)
-> (String -> Fmt LogStr a a) -> String -> Fmt LogStr a a
forall b c a. (b -> c) -> (a -> b) -> a -> c
. String -> Fmt LogStr a a
forall s a. ToLogStr s => s -> Html a
toHtml)

element_ :: String -> Html a
element_ :: forall a. String -> Html a
element_ = Fmt LogStr a a
-> Fmt LogStr a a -> Fmt LogStr a a -> Fmt LogStr a a
forall m b2 c a b1.
Semigroup m =>
Fmt m b2 c -> Fmt m a b1 -> Fmt m b1 b2 -> Fmt m a c
enclose Fmt LogStr a a
"<" Fmt LogStr a a
" />" (Fmt LogStr a a -> Fmt LogStr a a)
-> (String -> Fmt LogStr a a) -> String -> Fmt LogStr a a
forall b c a. (b -> c) -> (a -> b) -> a -> c
. String -> Fmt LogStr a a
forall s a. ToLogStr s => s -> Html a
toHtml

-- Elements

-------------------------

{- | Combinator for the document type. This should be placed at the top
 of every HTML page.

 Example:

 > docType

 Result:

 > <!DOCTYPE HTML>
-}
docType ::
    -- | The document type HTML.
    Html a
docType :: forall a. Html a
docType = Html a
"<!DOCTYPE HTML>\n"
{-# INLINE docType #-}

{- | Combinator for the @\<html>@ element. This combinator will also
 insert the correct doctype.

 Example:

 > docTypeHtml $ span $ fmt "foo"

 Result:

 > <!DOCTYPE HTML>
 > <html><span>foo</span></html>
-}
docTypeHtml ::
    -- | Inner HTML.
    Html a ->
    -- | Resulting HTML.
    Html a
docTypeHtml :: forall a. Html a -> Html a
docTypeHtml Html a
inner = Html a
forall a. Html a
docType Html a -> Html a -> Html a
forall m b c a. Semigroup m => Fmt m b c -> Fmt m a b -> Fmt m a c
% Html a -> Html a
forall a. Html a -> Html a
html Html a
inner
{-# INLINE docTypeHtml #-}

{- | Combinator for the @\<a>@ element.

 Example:

 > a $ span $ fmt "foo"

 Result:

 > <a><span>foo</span></a>
-}
a ::
    -- | Inner HTML.
    Html a ->
    -- | Resulting HTML.
    Html a
a :: forall a. Html a -> Html a
a = String -> Html a -> Html a
forall a. String -> Html a -> Html a
element String
"a"
{-# INLINE a #-}

{- | Combinator for the @\<abbr>@ element.

 Example:

 > abbr $ span $ fmt "foo"

 Result:

 > <abbr><span>foo</span></abbr>
-}
abbr ::
    -- | Inner HTML.
    Html a ->
    -- | Resulting HTML.
    Html a
abbr :: forall a. Html a -> Html a
abbr = String -> Html a -> Html a
forall a. String -> Html a -> Html a
element String
"abbr"
{-# INLINE abbr #-}

{- | Combinator for the @\<address>@ element.

 Example:

 > address $ span $ fmt "foo"

 Result:

 > <address><span>foo</span></address>
-}
address ::
    -- | Inner HTML.
    Html a ->
    -- | Resulting HTML.
    Html a
address :: forall a. Html a -> Html a
address = String -> Html a -> Html a
forall a. String -> Html a -> Html a
element String
"address"
{-# INLINE address #-}

{- | Combinator for the @\<area />@ element.

 Example:

 > area

 Result:

 > <area />
-}
area ::
    -- | Resulting HTML.
    Html a
area :: forall a. Html a
area = String -> Html a
forall a. String -> Html a
element_ String
"area"
{-# INLINE area #-}

{- | Combinator for the @\<article>@ element.

 Example:

 > article $ span $ fmt "foo"

 Result:

 > <article><span>foo</span></article>
-}
article ::
    -- | Inner HTML.
    Html a ->
    -- | Resulting HTML.
    Html a
article :: forall a. Html a -> Html a
article = String -> Html a -> Html a
forall a. String -> Html a -> Html a
element String
"article"
{-# INLINE article #-}

{- | Combinator for the @\<aside>@ element.

 Example:

 > aside $ span $ fmt "foo"

 Result:

 > <aside><span>foo</span></aside>
-}
aside ::
    -- | Inner HTML.
    Html a ->
    -- | Resulting HTML.
    Html a
aside :: forall a. Html a -> Html a
aside = String -> Html a -> Html a
forall a. String -> Html a -> Html a
element String
"aside"
{-# INLINE aside #-}

{- | Combinator for the @\<audio>@ element.

 Example:

 > audio $ span $ fmt "foo"

 Result:

 > <audio><span>foo</span></audio>
-}
audio ::
    -- | Inner HTML.
    Html a ->
    -- | Resulting HTML.
    Html a
audio :: forall a. Html a -> Html a
audio = String -> Html a -> Html a
forall a. String -> Html a -> Html a
element String
"audio"
{-# INLINE audio #-}

{- | Combinator for the @\<b>@ element.

 Example:

 > b $ span $ fmt "foo"

 Result:

 > <b><span>foo</span></b>
-}
b ::
    -- | Inner HTML.
    Html a ->
    -- | Resulting HTML.
    Html a
b :: forall a. Html a -> Html a
b = String -> Html a -> Html a
forall a. String -> Html a -> Html a
element String
"b"
{-# INLINE b #-}

{- | Combinator for the @\<base />@ element.

 Example:

 > base

 Result:

 > <base />
-}
base ::
    -- | Resulting HTML.
    Html a
base :: forall a. Html a
base = String -> Html a
forall a. String -> Html a
element_ String
"base"
{-# INLINE base #-}

{- | Combinator for the @\<bdo>@ element.

 Example:

 > bdo $ span $ fmt "foo"

 Result:

 > <bdo><span>foo</span></bdo>
-}
bdo ::
    -- | Inner HTML.
    Html a ->
    -- | Resulting HTML.
    Html a
bdo :: forall a. Html a -> Html a
bdo = String -> Html a -> Html a
forall a. String -> Html a -> Html a
element String
"bdo"
{-# INLINE bdo #-}

{- | Combinator for the @\<blockquote>@ element.

 Example:

 > blockquote $ span $ fmt "foo"

 Result:

 > <blockquote><span>foo</span></blockquote>
-}
blockquote ::
    -- | Inner HTML.
    Html a ->
    -- | Resulting HTML.
    Html a
blockquote :: forall a. Html a -> Html a
blockquote = String -> Html a -> Html a
forall a. String -> Html a -> Html a
element String
"blockquote"
{-# INLINE blockquote #-}

{- | Combinator for the @\<body>@ element.

 Example:

 > body $ span $ fmt "foo"

 Result:

 > <body><span>foo</span></body>
-}
body ::
    -- | Inner HTML.
    Html a ->
    -- | Resulting HTML.
    Html a
body :: forall a. Html a -> Html a
body = String -> Html a -> Html a
forall a. String -> Html a -> Html a
element String
"body"
{-# INLINE body #-}

{- | Combinator for the @\<br />@ element.

 Example:

 > br

 Result:

 > <br />
-}
br ::
    -- | Resulting HTML.
    Html a
br :: forall a. Html a
br = String -> Html a
forall a. String -> Html a
element_ String
"br"
{-# INLINE br #-}

{- | Combinator for the @\<button>@ element.

 Example:

 > button $ span $ fmt "foo"

 Result:

 > <button><span>foo</span></button>
-}
button ::
    -- | Inner HTML.
    Html a ->
    -- | Resulting HTML.
    Html a
button :: forall a. Html a -> Html a
button = String -> Html a -> Html a
forall a. String -> Html a -> Html a
element String
"button"
{-# INLINE button #-}

{- | Combinator for the @\<canvas>@ element.

 Example:

 > canvas $ span $ fmt "foo"

 Result:

 > <canvas><span>foo</span></canvas>
-}
canvas ::
    -- | Inner HTML.
    Html a ->
    -- | Resulting HTML.
    Html a
canvas :: forall a. Html a -> Html a
canvas = String -> Html a -> Html a
forall a. String -> Html a -> Html a
element String
"canvas"
{-# INLINE canvas #-}

{- | Combinator for the @\<caption>@ element.

 Example:

 > caption $ span $ fmt "foo"

 Result:

 > <caption><span>foo</span></caption>
-}
caption ::
    -- | Inner HTML.
    Html a ->
    -- | Resulting HTML.
    Html a
caption :: forall a. Html a -> Html a
caption = String -> Html a -> Html a
forall a. String -> Html a -> Html a
element String
"caption"
{-# INLINE caption #-}

{- | Combinator for the @\<cite>@ element.

 Example:

 > cite $ span $ fmt "foo"

 Result:

 > <cite><span>foo</span></cite>
-}
cite ::
    -- | Inner HTML.
    Html a ->
    -- | Resulting HTML.
    Html a
cite :: forall a. Html a -> Html a
cite = String -> Html a -> Html a
forall a. String -> Html a -> Html a
element String
"cite"
{-# INLINE cite #-}

{- | Combinator for the @\<code>@ element.

 Example:

 > code $ span $ fmt "foo"

 Result:

 > <code><span>foo</span></code>
-}
code ::
    -- | Inner HTML.
    Html a ->
    -- | Resulting HTML.
    Html a
code :: forall a. Html a -> Html a
code = String -> Html a -> Html a
forall a. String -> Html a -> Html a
element String
"code"
{-# INLINE code #-}

{- | Combinator for the @\<col />@ element.

 Example:

 > col

 Result:

 > <col />
-}
col ::
    -- | Resulting HTML.
    Html a
col :: forall a. Html a
col = String -> Html a
forall a. String -> Html a
element_ String
"col"
{-# INLINE col #-}

{- | Combinator for the @\<colgroup>@ element.

 Example:

 > colgroup $ span $ fmt "foo"

 Result:

 > <colgroup><span>foo</span></colgroup>
-}
colgroup ::
    -- | Inner HTML.
    Html a ->
    -- | Resulting HTML.
    Html a
colgroup :: forall a. Html a -> Html a
colgroup = String -> Html a -> Html a
forall a. String -> Html a -> Html a
element String
"colgroup"
{-# INLINE colgroup #-}

{- | Combinator for the @\<command>@ element.

 Example:

 > command $ span $ fmt "foo"

 Result:

 > <command><span>foo</span></command>
-}
command ::
    -- | Inner HTML.
    Html a ->
    -- | Resulting HTML.
    Html a
command :: forall a. Html a -> Html a
command = String -> Html a -> Html a
forall a. String -> Html a -> Html a
element String
"command"
{-# INLINE command #-}

{- | Combinator for the @\<datalist>@ element.

 Example:

 > datalist $ span $ fmt "foo"

 Result:

 > <datalist><span>foo</span></datalist>
-}
datalist ::
    -- | Inner HTML.
    Html a ->
    -- | Resulting HTML.
    Html a
datalist :: forall a. Html a -> Html a
datalist = String -> Html a -> Html a
forall a. String -> Html a -> Html a
element String
"datalist"
{-# INLINE datalist #-}

{- | Combinator for the @\<dd>@ element.

 Example:

 > dd $ span $ fmt "foo"

 Result:

 > <dd><span>foo</span></dd>
-}
dd ::
    -- | Inner HTML.
    Html a ->
    -- | Resulting HTML.
    Html a
dd :: forall a. Html a -> Html a
dd = String -> Html a -> Html a
forall a. String -> Html a -> Html a
element String
"dd"
{-# INLINE dd #-}

{- | Combinator for the @\<del>@ element.

 Example:

 > del $ span $ fmt "foo"

 Result:

 > <del><span>foo</span></del>
-}
del ::
    -- | Inner HTML.
    Html a ->
    -- | Resulting HTML.
    Html a
del :: forall a. Html a -> Html a
del = String -> Html a -> Html a
forall a. String -> Html a -> Html a
element String
"del"
{-# INLINE del #-}

{- | Combinator for the @\<details>@ element.

 Example:

 > details $ span $ fmt "foo"

 Result:

 > <details><span>foo</span></details>
-}
details ::
    -- | Inner HTML.
    Html a ->
    -- | Resulting HTML.
    Html a
details :: forall a. Html a -> Html a
details = String -> Html a -> Html a
forall a. String -> Html a -> Html a
element String
"details"
{-# INLINE details #-}

{- | Combinator for the @\<dfn>@ element.

 Example:

 > dfn $ span $ fmt "foo"

 Result:

 > <dfn><span>foo</span></dfn>
-}
dfn ::
    -- | Inner HTML.
    Html a ->
    -- | Resulting HTML.
    Html a
dfn :: forall a. Html a -> Html a
dfn = String -> Html a -> Html a
forall a. String -> Html a -> Html a
element String
"dfn"
{-# INLINE dfn #-}

{- | Combinator for the @\<div>@ element.

 Example:

 > div $ span $ fmt "foo"

 Result:

 > <div><span>foo</span></div>
-}
div ::
    -- | Inner HTML.
    Html a ->
    -- | Resulting HTML.
    Html a
div :: forall a. Html a -> Html a
div = String -> Html a -> Html a
forall a. String -> Html a -> Html a
element String
"div"
{-# INLINE div #-}

{- | Combinator for the @\<dl>@ element.

 Example:

 > dl $ span $ fmt "foo"

 Result:

 > <dl><span>foo</span></dl>
-}
dl ::
    -- | Inner HTML.
    Html a ->
    -- | Resulting HTML.
    Html a
dl :: forall a. Html a -> Html a
dl = String -> Html a -> Html a
forall a. String -> Html a -> Html a
element String
"dl"
{-# INLINE dl #-}

{- | Combinator for the @\<dt>@ element.

 Example:

 > dt $ span $ fmt "foo"

 Result:

 > <dt><span>foo</span></dt>
-}
dt ::
    -- | Inner HTML.
    Html a ->
    -- | Resulting HTML.
    Html a
dt :: forall a. Html a -> Html a
dt = String -> Html a -> Html a
forall a. String -> Html a -> Html a
element String
"dt"
{-# INLINE dt #-}

{- | Combinator for the @\<em>@ element.

 Example:

 > em $ span $ fmt "foo"

 Result:

 > <em><span>foo</span></em>
-}
em ::
    -- | Inner HTML.
    Html a ->
    -- | Resulting HTML.
    Html a
em :: forall a. Html a -> Html a
em = String -> Html a -> Html a
forall a. String -> Html a -> Html a
element String
"em"
{-# INLINE em #-}

{- | Combinator for the @\<embed />@ element.

 Example:

 > embed

 Result:

 > <embed />
-}
embed ::
    -- | Resulting HTML.
    Html a
embed :: forall a. Html a
embed = String -> Html a
forall a. String -> Html a
element_ String
"embed"
{-# INLINE embed #-}

{- | Combinator for the @\<fieldset>@ element.

 Example:

 > fieldset $ span $ fmt "foo"

 Result:

 > <fieldset><span>foo</span></fieldset>
-}
fieldset ::
    -- | Inner HTML.
    Html a ->
    -- | Resulting HTML.
    Html a
fieldset :: forall a. Html a -> Html a
fieldset = String -> Html a -> Html a
forall a. String -> Html a -> Html a
element String
"fieldset"
{-# INLINE fieldset #-}

{- | Combinator for the @\<figcaption>@ element.

 Example:

 > figcaption $ span $ fmt "foo"

 Result:

 > <figcaption><span>foo</span></figcaption>
-}
figcaption ::
    -- | Inner HTML.
    Html a ->
    -- | Resulting HTML.
    Html a
figcaption :: forall a. Html a -> Html a
figcaption = String -> Html a -> Html a
forall a. String -> Html a -> Html a
element String
"figcaption"
{-# INLINE figcaption #-}

{- | Combinator for the @\<figure>@ element.

 Example:

 > figure $ span $ fmt "foo"

 Result:

 > <figure><span>foo</span></figure>
-}
figure ::
    -- | Inner HTML.
    Html a ->
    -- | Resulting HTML.
    Html a
figure :: forall a. Html a -> Html a
figure = String -> Html a -> Html a
forall a. String -> Html a -> Html a
element String
"figure"
{-# INLINE figure #-}

{- | Combinator for the @\<footer>@ element.

 Example:

 > footer $ span $ fmt "foo"

 Result:

 > <footer><span>foo</span></footer>
-}
footer ::
    -- | Inner HTML.
    Html a ->
    -- | Resulting HTML.
    Html a
footer :: forall a. Html a -> Html a
footer = String -> Html a -> Html a
forall a. String -> Html a -> Html a
element String
"footer"
{-# INLINE footer #-}

{- | Combinator for the @\<form>@ element.

 Example:

 > form $ span $ fmt "foo"

 Result:

 > <form><span>foo</span></form>
-}
form ::
    -- | Inner HTML.
    Html a ->
    -- | Resulting HTML.
    Html a
form :: forall a. Html a -> Html a
form = String -> Html a -> Html a
forall a. String -> Html a -> Html a
element String
"form"
{-# INLINE form #-}

{- | Combinator for the @\<h1>@ element.

 Example:

 > h1 $ span $ fmt "foo"

 Result:

 > <h1><span>foo</span></h1>
-}
h1 ::
    -- | Inner HTML.
    Html a ->
    -- | Resulting HTML.
    Html a
h1 :: forall a. Html a -> Html a
h1 = String -> Html a -> Html a
forall a. String -> Html a -> Html a
element String
"h1"
{-# INLINE h1 #-}

{- | Combinator for the @\<h2>@ element.

 Example:

 > h2 $ span $ fmt "foo"

 Result:

 > <h2><span>foo</span></h2>
-}
h2 ::
    -- | Inner HTML.
    Html a ->
    -- | Resulting HTML.
    Html a
h2 :: forall a. Html a -> Html a
h2 = String -> Html a -> Html a
forall a. String -> Html a -> Html a
element String
"h2"
{-# INLINE h2 #-}

{- | Combinator for the @\<h3>@ element.

 Example:

 > h3 $ span $ fmt "foo"

 Result:

 > <h3><span>foo</span></h3>
-}
h3 ::
    -- | Inner HTML.
    Html a ->
    -- | Resulting HTML.
    Html a
h3 :: forall a. Html a -> Html a
h3 = String -> Html a -> Html a
forall a. String -> Html a -> Html a
element String
"h3"
{-# INLINE h3 #-}

{- | Combinator for the @\<h4>@ element.

 Example:

 > h4 $ span $ fmt "foo"

 Result:

 > <h4><span>foo</span></h4>
-}
h4 ::
    -- | Inner HTML.
    Html a ->
    -- | Resulting HTML.
    Html a
h4 :: forall a. Html a -> Html a
h4 = String -> Html a -> Html a
forall a. String -> Html a -> Html a
element String
"h4"
{-# INLINE h4 #-}

{- | Combinator for the @\<h5>@ element.

 Example:

 > h5 $ span $ fmt "foo"

 Result:

 > <h5><span>foo</span></h5>
-}
h5 ::
    -- | Inner HTML.
    Html a ->
    -- | Resulting HTML.
    Html a
h5 :: forall a. Html a -> Html a
h5 = String -> Html a -> Html a
forall a. String -> Html a -> Html a
element String
"h5"
{-# INLINE h5 #-}

{- | Combinator for the @\<h6>@ element.

 Example:

 > h6 $ span $ fmt "foo"

 Result:

 > <h6><span>foo</span></h6>
-}
h6 ::
    -- | Inner HTML.
    Html a ->
    -- | Resulting HTML.
    Html a
h6 :: forall a. Html a -> Html a
h6 = String -> Html a -> Html a
forall a. String -> Html a -> Html a
element String
"h6"
{-# INLINE h6 #-}

{- | Combinator for the @\<head>@ element.

 Example:

 > head $ span $ fmt "foo"

 Result:

 > <head><span>foo</span></head>
-}
head ::
    -- | Inner HTML.
    Html a ->
    -- | Resulting HTML.
    Html a
head :: forall a. Html a -> Html a
head = String -> Html a -> Html a
forall a. String -> Html a -> Html a
element String
"head"
{-# INLINE head #-}

{- | Combinator for the @\<header>@ element.

 Example:

 > header $ span $ fmt "foo"

 Result:

 > <header><span>foo</span></header>
-}
header ::
    -- | Inner HTML.
    Html a ->
    -- | Resulting HTML.
    Html a
header :: forall a. Html a -> Html a
header = String -> Html a -> Html a
forall a. String -> Html a -> Html a
element String
"header"
{-# INLINE header #-}

{- | Combinator for the @\<hgroup>@ element.

 Example:

 > hgroup $ span $ fmt "foo"

 Result:

 > <hgroup><span>foo</span></hgroup>
-}
hgroup ::
    -- | Inner HTML.
    Html a ->
    -- | Resulting HTML.
    Html a
hgroup :: forall a. Html a -> Html a
hgroup = String -> Html a -> Html a
forall a. String -> Html a -> Html a
element String
"hgroup"
{-# INLINE hgroup #-}

{- | Combinator for the @\<hr />@ element.

 Example:

 > hr

 Result:

 > <hr />
-}
hr ::
    -- | Resulting HTML.
    Html a
hr :: forall a. Html a
hr = String -> Html a
forall a. String -> Html a
element_ String
"hr"
{-# INLINE hr #-}

{- | Combinator for the @\<html>@ element.

 Example:

 > html $ span $ fmt "foo"

 Result:

 > <html><span>foo</span></html>
-}
html ::
    -- | Inner HTML.
    Html a ->
    -- | Resulting HTML.
    Html a
html :: forall a. Html a -> Html a
html = String -> Html a -> Html a
forall a. String -> Html a -> Html a
element String
"html"
{-# INLINE html #-}

{- | Combinator for the @\<i>@ element.

 Example:

 > i $ span $ fmt "foo"

 Result:

 > <i><span>foo</span></i>
-}
i ::
    -- | Inner HTML.
    Html a ->
    -- | Resulting HTML.
    Html a
i :: forall a. Html a -> Html a
i = String -> Html a -> Html a
forall a. String -> Html a -> Html a
element String
"i"
{-# INLINE i #-}

{- | Combinator for the @\<iframe>@ element.

 Example:

 > iframe $ span $ fmt "foo"

 Result:

 > <iframe><span>foo</span></iframe>
-}
iframe ::
    -- | Inner HTML.
    Html a ->
    -- | Resulting HTML.
    Html a
iframe :: forall a. Html a -> Html a
iframe = String -> Html a -> Html a
forall a. String -> Html a -> Html a
element String
"iframe"
{-# INLINE iframe #-}

{- | Combinator for the @\<img />@ element.

 Example:

 > img

 Result:

 > <img />
-}
img ::
    -- | Resulting HTML.
    Html a
img :: forall a. Html a
img = String -> Html a
forall a. String -> Html a
element_ String
"img"
{-# INLINE img #-}

{- | Combinator for the @\<input />@ element.

 Example:

 > input

 Result:

 > <input />
-}
input ::
    -- | Resulting HTML.
    Html a
input :: forall a. Html a
input = String -> Html a
forall a. String -> Html a
element_ String
"input"
{-# INLINE input #-}

{- | Combinator for the @\<ins>@ element.

 Example:

 > ins $ span $ fmt "foo"

 Result:

 > <ins><span>foo</span></ins>
-}
ins ::
    -- | Inner HTML.
    Html a ->
    -- | Resulting HTML.
    Html a
ins :: forall a. Html a -> Html a
ins = String -> Html a -> Html a
forall a. String -> Html a -> Html a
element String
"ins"
{-# INLINE ins #-}

{- | Combinator for the @\<kbd>@ element.

 Example:

 > kbd $ span $ fmt "foo"

 Result:

 > <kbd><span>foo</span></kbd>
-}
kbd ::
    -- | Inner HTML.
    Html a ->
    -- | Resulting HTML.
    Html a
kbd :: forall a. Html a -> Html a
kbd = String -> Html a -> Html a
forall a. String -> Html a -> Html a
element String
"kbd"
{-# INLINE kbd #-}

{- | Combinator for the @\<keygen />@ element.

 Example:

 > keygen

 Result:

 > <keygen />
-}
keygen ::
    -- | Resulting HTML.
    Html a
keygen :: forall a. Html a
keygen = String -> Html a
forall a. String -> Html a
element_ String
"keygen"
{-# INLINE keygen #-}

{- | Combinator for the @\<label>@ element.

 Example:

 > label $ span $ fmt "foo"

 Result:

 > <label><span>foo</span></label>
-}
label ::
    -- | Inner HTML.
    Html a ->
    -- | Resulting HTML.
    Html a
label :: forall a. Html a -> Html a
label = String -> Html a -> Html a
forall a. String -> Html a -> Html a
element String
"label"
{-# INLINE label #-}

{- | Combinator for the @\<legend>@ element.

 Example:

 > legend $ span $ fmt "foo"

 Result:

 > <legend><span>foo</span></legend>
-}
legend ::
    -- | Inner HTML.
    Html a ->
    -- | Resulting HTML.
    Html a
legend :: forall a. Html a -> Html a
legend = String -> Html a -> Html a
forall a. String -> Html a -> Html a
element String
"legend"
{-# INLINE legend #-}

{- | Combinator for the @\<li>@ element.

 Example:

 > li $ span $ fmt "foo"

 Result:

 > <li><span>foo</span></li>
-}
li ::
    -- | Inner HTML.
    Html a ->
    -- | Resulting HTML.
    Html a
li :: forall a. Html a -> Html a
li = String -> Html a -> Html a
forall a. String -> Html a -> Html a
element String
"li"
{-# INLINE li #-}

{- | Combinator for the @\<link />@ element.

 Example:

 > link

 Result:

 > <link />
-}
link ::
    -- | Resulting HTML.
    Html a
link :: forall a. Html a
link = String -> Html a
forall a. String -> Html a
element_ String
"link"
{-# INLINE link #-}

{- | Combinator for the @\<main>@ element.

 Example:

 > main $ span $ fmt "foo"

 Result:

 > <main><span>foo</span></main>
-}
main ::
    -- | Inner HTML.
    Html a ->
    -- | Resulting HTML.
    Html a
main :: forall a. Html a -> Html a
main = String -> Html a -> Html a
forall a. String -> Html a -> Html a
element String
"main"
{-# INLINE main #-}

{- | Combinator for the @\<map>@ element.

 Example:

 > map $ span $ fmt "foo"

 Result:

 > <map><span>foo</span></map>
-}
map ::
    -- | Inner HTML.
    Html a ->
    -- | Resulting HTML.
    Html a
map :: forall a. Html a -> Html a
map = String -> Html a -> Html a
forall a. String -> Html a -> Html a
element String
"map"
{-# INLINE map #-}

{- | Combinator for the @\<mark>@ element.

 Example:

 > mark $ span $ fmt "foo"

 Result:

 > <mark><span>foo</span></mark>
-}
mark ::
    -- | Inner HTML.
    Html a ->
    -- | Resulting HTML.
    Html a
mark :: forall a. Html a -> Html a
mark = String -> Html a -> Html a
forall a. String -> Html a -> Html a
element String
"mark"
{-# INLINE mark #-}

{- | Combinator for the @\<menu>@ element.

 Example:

 > menu $ span $ fmt "foo"

 Result:

 > <menu><span>foo</span></menu>
-}
menu ::
    -- | Inner HTML.
    Html a ->
    -- | Resulting HTML.
    Html a
menu :: forall a. Html a -> Html a
menu = String -> Html a -> Html a
forall a. String -> Html a -> Html a
element String
"menu"
{-# INLINE menu #-}

{- | Combinator for the @\<menuitem />@ element.

 Example:

 > menuitem

 Result:

 > <menuitem />
-}
menuitem ::
    -- | Resulting HTML.
    Html a
menuitem :: forall a. Html a
menuitem = String -> Html a
forall a. String -> Html a
element_ String
"menuitem"
{-# INLINE menuitem #-}

{- | Combinator for the @\<meta />@ element.

 Example:

 > meta

 Result:

 > <meta />
-}
meta ::
    -- | Resulting HTML.
    Html a
meta :: forall a. Html a
meta = String -> Html a
forall a. String -> Html a
element_ String
"meta"
{-# INLINE meta #-}

{- | Combinator for the @\<meter>@ element.

 Example:

 > meter $ span $ fmt "foo"

 Result:

 > <meter><span>foo</span></meter>
-}
meter ::
    -- | Inner HTML.
    Html a ->
    -- | Resulting HTML.
    Html a
meter :: forall a. Html a -> Html a
meter = String -> Html a -> Html a
forall a. String -> Html a -> Html a
element String
"meter"
{-# INLINE meter #-}

{- | Combinator for the @\<nav>@ element.

 Example:

 > nav $ span $ fmt "foo"

 Result:

 > <nav><span>foo</span></nav>
-}
nav ::
    -- | Inner HTML.
    Html a ->
    -- | Resulting HTML.
    Html a
nav :: forall a. Html a -> Html a
nav = String -> Html a -> Html a
forall a. String -> Html a -> Html a
element String
"nav"
{-# INLINE nav #-}

{- | Combinator for the @\<noscript>@ element.

 Example:

 > noscript $ span $ fmt "foo"

 Result:

 > <noscript><span>foo</span></noscript>
-}
noscript ::
    -- | Inner HTML.
    Html a ->
    -- | Resulting HTML.
    Html a
noscript :: forall a. Html a -> Html a
noscript = String -> Html a -> Html a
forall a. String -> Html a -> Html a
element String
"noscript"
{-# INLINE noscript #-}

{- | Combinator for the @\<object>@ element.

 Example:

 > object $ span $ fmt "foo"

 Result:

 > <object><span>foo</span></object>
-}
object ::
    -- | Inner HTML.
    Html a ->
    -- | Resulting HTML.
    Html a
object :: forall a. Html a -> Html a
object = String -> Html a -> Html a
forall a. String -> Html a -> Html a
element String
"object"
{-# INLINE object #-}

{- | Combinator for the @\<ol>@ element.

 Example:

 > ol $ span $ fmt "foo"

 Result:

 > <ol><span>foo</span></ol>
-}
ol ::
    -- | Inner HTML.
    Html a ->
    -- | Resulting HTML.
    Html a
ol :: forall a. Html a -> Html a
ol = String -> Html a -> Html a
forall a. String -> Html a -> Html a
element String
"ol"
{-# INLINE ol #-}

{- | Combinator for the @\<optgroup>@ element.

 Example:

 > optgroup $ span $ fmt "foo"

 Result:

 > <optgroup><span>foo</span></optgroup>
-}
optgroup ::
    -- | Inner HTML.
    Html a ->
    -- | Resulting HTML.
    Html a
optgroup :: forall a. Html a -> Html a
optgroup = String -> Html a -> Html a
forall a. String -> Html a -> Html a
element String
"optgroup"
{-# INLINE optgroup #-}

{- | Combinator for the @\<option>@ element.

 Example:

 > option $ span $ fmt "foo"

 Result:

 > <option><span>foo</span></option>
-}
option ::
    -- | Inner HTML.
    Html a ->
    -- | Resulting HTML.
    Html a
option :: forall a. Html a -> Html a
option = String -> Html a -> Html a
forall a. String -> Html a -> Html a
element String
"option"
{-# INLINE option #-}

{- | Combinator for the @\<output>@ element.

 Example:

 > output $ span $ fmt "foo"

 Result:

 > <output><span>foo</span></output>
-}
output ::
    -- | Inner HTML.
    Html a ->
    -- | Resulting HTML.
    Html a
output :: forall a. Html a -> Html a
output = String -> Html a -> Html a
forall a. String -> Html a -> Html a
element String
"output"
{-# INLINE output #-}

{- | Combinator for the @\<p>@ element.

 Example:

 > p $ span $ fmt "foo"

 Result:

 > <p><span>foo</span></p>
-}
p ::
    -- | Inner HTML.
    Html a ->
    -- | Resulting HTML.
    Html a
p :: forall a. Html a -> Html a
p = String -> Html a -> Html a
forall a. String -> Html a -> Html a
element String
"p"
{-# INLINE p #-}

{- | Combinator for the @\<param />@ element.

 Example:

 > param

 Result:

 > <param />
-}
param ::
    -- | Resulting HTML.
    Html a
param :: forall a. Html a
param = String -> Html a
forall a. String -> Html a
element_ String
"param"
{-# INLINE param #-}

{- | Combinator for the @\<pre>@ element.

 Example:

 > pre $ span $ fmt "foo"

 Result:

 > <pre><span>foo</span></pre>
-}
pre ::
    -- | Inner HTML.
    Html a ->
    -- | Resulting HTML.
    Html a
pre :: forall a. Html a -> Html a
pre = String -> Html a -> Html a
forall a. String -> Html a -> Html a
element String
"pre"
{-# INLINE pre #-}

{- | Combinator for the @\<progress>@ element.

 Example:

 > progress $ span $ fmt "foo"

 Result:

 > <progress><span>foo</span></progress>
-}
progress ::
    -- | Inner HTML.
    Html a ->
    -- | Resulting HTML.
    Html a
progress :: forall a. Html a -> Html a
progress = String -> Html a -> Html a
forall a. String -> Html a -> Html a
element String
"progress"
{-# INLINE progress #-}

{- | Combinator for the @\<q>@ element.

 Example:

 > q $ span $ fmt "foo"

 Result:

 > <q><span>foo</span></q>
-}
q ::
    -- | Inner HTML.
    Html a ->
    -- | Resulting HTML.
    Html a
q :: forall a. Html a -> Html a
q = String -> Html a -> Html a
forall a. String -> Html a -> Html a
element String
"q"
{-# INLINE q #-}

{- | Combinator for the @\<rp>@ element.

 Example:

 > rp $ span $ fmt "foo"

 Result:

 > <rp><span>foo</span></rp>
-}
rp ::
    -- | Inner HTML.
    Html a ->
    -- | Resulting HTML.
    Html a
rp :: forall a. Html a -> Html a
rp = String -> Html a -> Html a
forall a. String -> Html a -> Html a
element String
"rp"
{-# INLINE rp #-}

{- | Combinator for the @\<rt>@ element.

 Example:

 > rt $ span $ fmt "foo"

 Result:

 > <rt><span>foo</span></rt>
-}
rt ::
    -- | Inner HTML.
    Html a ->
    -- | Resulting HTML.
    Html a
rt :: forall a. Html a -> Html a
rt = String -> Html a -> Html a
forall a. String -> Html a -> Html a
element String
"rt"
{-# INLINE rt #-}

{- | Combinator for the @\<ruby>@ element.

 Example:

 > ruby $ span $ fmt "foo"

 Result:

 > <ruby><span>foo</span></ruby>
-}
ruby ::
    -- | Inner HTML.
    Html a ->
    -- | Resulting HTML.
    Html a
ruby :: forall a. Html a -> Html a
ruby = String -> Html a -> Html a
forall a. String -> Html a -> Html a
element String
"ruby"
{-# INLINE ruby #-}

{- | Combinator for the @\<samp>@ element.

 Example:

 > samp $ span $ fmt "foo"

 Result:

 > <samp><span>foo</span></samp>
-}
samp ::
    -- | Inner HTML.
    Html a ->
    -- | Resulting HTML.
    Html a
samp :: forall a. Html a -> Html a
samp = String -> Html a -> Html a
forall a. String -> Html a -> Html a
element String
"samp"
{-# INLINE samp #-}

{- | Combinator for the @\<script>@ element.

 Example:

 > script $ span $ fmt "foo"

 Result:

 > <script><span>foo</span></script>
-}
script ::
    -- | Inner HTML.
    Html a ->
    -- | Resulting HTML.
    Html a
script :: forall a. Html a -> Html a
script = String -> Html a -> Html a
forall a. String -> Html a -> Html a
element String
"script"
{-# INLINE script #-}

{- | Combinator for the @\<section>@ element.

 Example:

 > section $ span $ fmt "foo"

 Result:

 > <section><span>foo</span></section>
-}
section ::
    -- | Inner HTML.
    Html a ->
    -- | Resulting HTML.
    Html a
section :: forall a. Html a -> Html a
section = String -> Html a -> Html a
forall a. String -> Html a -> Html a
element String
"section"
{-# INLINE section #-}

{- | Combinator for the @\<select>@ element.

 Example:

 > select $ span $ fmt "foo"

 Result:

 > <select><span>foo</span></select>
-}
select ::
    -- | Inner HTML.
    Html a ->
    -- | Resulting HTML.
    Html a
select :: forall a. Html a -> Html a
select = String -> Html a -> Html a
forall a. String -> Html a -> Html a
element String
"select"
{-# INLINE select #-}

{- | Combinator for the @\<small>@ element.

 Example:

 > small $ span $ fmt "foo"

 Result:

 > <small><span>foo</span></small>
-}
small ::
    -- | Inner HTML.
    Html a ->
    -- | Resulting HTML.
    Html a
small :: forall a. Html a -> Html a
small = String -> Html a -> Html a
forall a. String -> Html a -> Html a
element String
"small"
{-# INLINE small #-}

{- | Combinator for the @\<source />@ element.

 Example:

 > source

 Result:

 > <source />
-}
source ::
    -- | Resulting HTML.
    Html a
source :: forall a. Html a
source = String -> Html a
forall a. String -> Html a
element_ String
"source"
{-# INLINE source #-}

{- | Combinator for the @\<span>@ element.

 Example:

 > span $ span $ fmt "foo"

 Result:

 > <span><span>foo</span></span>
-}
span ::
    -- | Inner HTML.
    Html a ->
    -- | Resulting HTML.
    Html a
span :: forall a. Html a -> Html a
span = String -> Html a -> Html a
forall a. String -> Html a -> Html a
element String
"span"
{-# INLINE span #-}

{- | Combinator for the @\<strong>@ element.

 Example:

 > strong $ span $ fmt "foo"

 Result:

 > <strong><span>foo</span></strong>
-}
strong ::
    -- | Inner HTML.
    Html a ->
    -- | Resulting HTML.
    Html a
strong :: forall a. Html a -> Html a
strong = String -> Html a -> Html a
forall a. String -> Html a -> Html a
element String
"strong"
{-# INLINE strong #-}

{- | Combinator for the @\<style>@ element.

 Example:

 > style $ span $ fmt "foo"

 Result:

 > <style><span>foo</span></style>
-}
style ::
    -- | Inner HTML.
    Html a ->
    -- | Resulting HTML.
    Html a
style :: forall a. Html a -> Html a
style = String -> Html a -> Html a
forall a. String -> Html a -> Html a
element String
"style"
{-# INLINE style #-}

{- | Combinator for the @\<sub>@ element.

 Example:

 > sub $ span $ fmt "foo"

 Result:

 > <sub><span>foo</span></sub>
-}
sub ::
    -- | Inner HTML.
    Html a ->
    -- | Resulting HTML.
    Html a
sub :: forall a. Html a -> Html a
sub = String -> Html a -> Html a
forall a. String -> Html a -> Html a
element String
"sub"
{-# INLINE sub #-}

{- | Combinator for the @\<summary>@ element.

 Example:

 > summary $ span $ fmt "foo"

 Result:

 > <summary><span>foo</span></summary>
-}
summary ::
    -- | Inner HTML.
    Html a ->
    -- | Resulting HTML.
    Html a
summary :: forall a. Html a -> Html a
summary = String -> Html a -> Html a
forall a. String -> Html a -> Html a
element String
"summary"
{-# INLINE summary #-}

{- | Combinator for the @\<sup>@ element.

 Example:

 > sup $ span $ fmt "foo"

 Result:

 > <sup><span>foo</span></sup>
-}
sup ::
    -- | Inner HTML.
    Html a ->
    -- | Resulting HTML.
    Html a
sup :: forall a. Html a -> Html a
sup = String -> Html a -> Html a
forall a. String -> Html a -> Html a
element String
"sup"
{-# INLINE sup #-}

{- | Combinator for the @\<table>@ element.

 Example:

 > table $ span $ fmt "foo"

 Result:

 > <table><span>foo</span></table>
-}
table ::
    -- | Inner HTML.
    Html a ->
    -- | Resulting HTML.
    Html a
table :: forall a. Html a -> Html a
table = String -> Html a -> Html a
forall a. String -> Html a -> Html a
element String
"table"
{-# INLINE table #-}

{- | Combinator for the @\<tbody>@ element.

 Example:

 > tbody $ span $ fmt "foo"

 Result:

 > <tbody><span>foo</span></tbody>
-}
tbody ::
    -- | Inner HTML.
    Html a ->
    -- | Resulting HTML.
    Html a
tbody :: forall a. Html a -> Html a
tbody = String -> Html a -> Html a
forall a. String -> Html a -> Html a
element String
"tbody"
{-# INLINE tbody #-}

{- | Combinator for the @\<td>@ element.

 Example:

 > td $ span $ fmt "foo"

 Result:

 > <td><span>foo</span></td>
-}
td ::
    -- | Inner HTML.
    Html a ->
    -- | Resulting HTML.
    Html a
td :: forall a. Html a -> Html a
td = String -> Html a -> Html a
forall a. String -> Html a -> Html a
element String
"td"
{-# INLINE td #-}

{- | Combinator for the @\<textarea>@ element.

 Example:

 > textarea $ span $ fmt "foo"

 Result:

 > <textarea><span>foo</span></textarea>
-}
textarea ::
    -- | Inner HTML.
    Html a ->
    -- | Resulting HTML.
    Html a
textarea :: forall a. Html a -> Html a
textarea = String -> Html a -> Html a
forall a. String -> Html a -> Html a
element String
"textarea"
{-# INLINE textarea #-}

{- | Combinator for the @\<tfoot>@ element.

 Example:

 > tfoot $ span $ fmt "foo"

 Result:

 > <tfoot><span>foo</span></tfoot>
-}
tfoot ::
    -- | Inner HTML.
    Html a ->
    -- | Resulting HTML.
    Html a
tfoot :: forall a. Html a -> Html a
tfoot = String -> Html a -> Html a
forall a. String -> Html a -> Html a
element String
"tfoot"
{-# INLINE tfoot #-}

{- | Combinator for the @\<th>@ element.

 Example:

 > th $ span $ fmt "foo"

 Result:

 > <th><span>foo</span></th>
-}
th ::
    -- | Inner HTML.
    Html a ->
    -- | Resulting HTML.
    Html a
th :: forall a. Html a -> Html a
th = String -> Html a -> Html a
forall a. String -> Html a -> Html a
element String
"th"
{-# INLINE th #-}

{- | Combinator for the @\<thead>@ element.

 Example:

 > thead $ span $ fmt "foo"

 Result:

 > <thead><span>foo</span></thead>
-}
thead ::
    -- | Inner HTML.
    Html a ->
    -- | Resulting HTML.
    Html a
thead :: forall a. Html a -> Html a
thead = String -> Html a -> Html a
forall a. String -> Html a -> Html a
element String
"thead"
{-# INLINE thead #-}

{- | Combinator for the @\<time>@ element.

 Example:

 > time $ span $ fmt "foo"

 Result:

 > <time><span>foo</span></time>
-}
time ::
    -- | Inner HTML.
    Html a ->
    -- | Resulting HTML.
    Html a
time :: forall a. Html a -> Html a
time = String -> Html a -> Html a
forall a. String -> Html a -> Html a
element String
"time"
{-# INLINE time #-}

{- | Combinator for the @\<title>@ element.

 Example:

 > title $ span $ fmt "foo"

 Result:

 > <title><span>foo</span></title>
-}
title ::
    -- | Inner HTML.
    Html a ->
    -- | Resulting HTML.
    Html a
title :: forall a. Html a -> Html a
title = String -> Html a -> Html a
forall a. String -> Html a -> Html a
element String
"title"
{-# INLINE title #-}

{- | Combinator for the @\<tr>@ element.

 Example:

 > tr $ span $ fmt "foo"

 Result:

 > <tr><span>foo</span></tr>
-}
tr ::
    -- | Inner HTML.
    Html a ->
    -- | Resulting HTML.
    Html a
tr :: forall a. Html a -> Html a
tr = String -> Html a -> Html a
forall a. String -> Html a -> Html a
element String
"tr"
{-# INLINE tr #-}

{- | Combinator for the @\<track />@ element.

 Example:

 > track

 Result:

 > <track />
-}
track ::
    -- | Resulting HTML.
    Html a
track :: forall a. Html a
track = String -> Html a
forall a. String -> Html a
element_ String
"track"
{-# INLINE track #-}

{- | Combinator for the @\<u>@ element.

 Example:

 > u $ span $ fmt "foo"

 Result:

 > <u><span>foo</span></u>
-}
u ::
    -- | Inner HTML.
    Html a ->
    -- | Resulting HTML.
    Html a
u :: forall a. Html a -> Html a
u = String -> Html a -> Html a
forall a. String -> Html a -> Html a
element String
"u"
{-# INLINE u #-}

{- | Combinator for the @\<ul>@ element.

 Example:

 > ul $ span $ fmt "foo"

 Result:

 > <ul><span>foo</span></ul>
-}
ul ::
    -- | Inner HTML.
    Html a ->
    -- | Resulting HTML.
    Html a
ul :: forall a. Html a -> Html a
ul = String -> Html a -> Html a
forall a. String -> Html a -> Html a
element String
"ul"
{-# INLINE ul #-}

{- | Combinator for the @\<var>@ element.

 Example:

 > var $ span $ fmt "foo"

 Result:

 > <var><span>foo</span></var>
-}
var ::
    -- | Inner HTML.
    Html a ->
    -- | Resulting HTML.
    Html a
var :: forall a. Html a -> Html a
var = String -> Html a -> Html a
forall a. String -> Html a -> Html a
element String
"var"
{-# INLINE var #-}

{- | Combinator for the @\<video>@ element.

 Example:

 > video $ span $ fmt "foo"

 Result:

 > <video><span>foo</span></video>
-}
video ::
    -- | Inner HTML.
    Html a ->
    -- | Resulting HTML.
    Html a
video :: forall a. Html a -> Html a
video = String -> Html a -> Html a
forall a. String -> Html a -> Html a
element String
"video"
{-# INLINE video #-}

{- | Combinator for the @\<wbr />@ element.

 Example:

 > wbr

 Result:

 > <wbr />
-}
wbr :: Html a
wbr :: forall a. Html a
wbr = String -> Html a
forall a. String -> Html a
element_ String
"wbr"
{-# INLINE wbr #-}