front-0.0.0.2: A reactive frontend web framework

Safe HaskellNone
LanguageHaskell2010

Text.Blaze.Front.Html5

Description

This module exports HTML combinators used to create documents.

Synopsis

Documentation

type Html ev = Markup ev Source #

toHtml :: ToMarkup a => a -> Html ev Source #

docType Source #

Arguments

:: Html ev

The document type HTML.

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

Example:

docType

Result:

<!DOCTYPE HTML>

docTypeHtml Source #

Arguments

:: Html ev

Inner HTML.

-> Html ev

Resulting HTML.

Combinator for the <html> element. This combinator will also insert the correct doctype.

Example:

docTypeHtml $ span $ toHtml "foo"

Result:

<!DOCTYPE HTML>
<html><span>foo</span></html>

a Source #

Arguments

:: Html ev

Inner HTML.

-> Html ev

Resulting HTML.

Combinator for the <a> element.

Example:

a $ span $ toHtml "foo"

Result:

<a><span>foo</span></a>

abbr Source #

Arguments

:: Html ev

Inner HTML.

-> Html ev

Resulting HTML.

Combinator for the <abbr> element.

Example:

abbr $ span $ toHtml "foo"

Result:

<abbr><span>foo</span></abbr>

address Source #

Arguments

:: Html ev

Inner HTML.

-> Html ev

Resulting HTML.

Combinator for the <address> element.

Example:

address $ span $ toHtml "foo"

Result:

<address><span>foo</span></address>

area Source #

Arguments

:: Html ev

Resulting HTML.

Combinator for the <area /> element.

Example:

area

Result:

<area />

article Source #

Arguments

:: Html ev

Inner HTML.

-> Html ev

Resulting HTML.

Combinator for the <article> element.

Example:

article $ span $ toHtml "foo"

Result:

<article><span>foo</span></article>

aside Source #

Arguments

:: Html ev

Inner HTML.

-> Html ev

Resulting HTML.

Combinator for the <aside> element.

Example:

aside $ span $ toHtml "foo"

Result:

<aside><span>foo</span></aside>

audio Source #

Arguments

:: Html ev

Inner HTML.

-> Html ev

Resulting HTML.

Combinator for the <audio> element.

Example:

audio $ span $ toHtml "foo"

Result:

<audio><span>foo</span></audio>

b Source #

Arguments

:: Html ev

Inner HTML.

-> Html ev

Resulting HTML.

Combinator for the <b> element.

Example:

b $ span $ toHtml "foo"

Result:

<b><span>foo</span></b>

base Source #

Arguments

:: Html ev

Resulting HTML.

Combinator for the <base /> element.

Example:

base

Result:

<base />

bdo Source #

Arguments

:: Html ev

Inner HTML.

-> Html ev

Resulting HTML.

Combinator for the <bdo> element.

Example:

bdo $ span $ toHtml "foo"

Result:

<bdo><span>foo</span></bdo>

blockquote Source #

Arguments

:: Html ev

Inner HTML.

-> Html ev

Resulting HTML.

Combinator for the <blockquote> element.

Example:

blockquote $ span $ toHtml "foo"

Result:

<blockquote><span>foo</span></blockquote>

body Source #

Arguments

:: Html ev

Inner HTML.

-> Html ev

Resulting HTML.

Combinator for the <body> element.

Example:

body $ span $ toHtml "foo"

Result:

<body><span>foo</span></body>

br Source #

Arguments

:: Html ev

Resulting HTML.

Combinator for the <br /> element.

Example:

br

Result:

<br />

button Source #

Arguments

:: Html ev

Inner HTML.

-> Html ev

Resulting HTML.

Combinator for the <button> element.

Example:

button $ span $ toHtml "foo"

Result:

<button><span>foo</span></button>

canvas Source #

Arguments

:: Html ev

Inner HTML.

-> Html ev

Resulting HTML.

Combinator for the <canvas> element.

Example:

canvas $ span $ toHtml "foo"

Result:

<canvas><span>foo</span></canvas>

caption Source #

Arguments

:: Html ev

Inner HTML.

-> Html ev

Resulting HTML.

Combinator for the <caption> element.

Example:

caption $ span $ toHtml "foo"

Result:

<caption><span>foo</span></caption>

cite Source #

Arguments

:: Html ev

Inner HTML.

-> Html ev

Resulting HTML.

Combinator for the <cite> element.

Example:

cite $ span $ toHtml "foo"

Result:

<cite><span>foo</span></cite>

code Source #

Arguments

:: Html ev

Inner HTML.

-> Html ev

Resulting HTML.

Combinator for the <code> element.

Example:

code $ span $ toHtml "foo"

Result:

<code><span>foo</span></code>

col Source #

Arguments

:: Html ev

Resulting HTML.

Combinator for the <col /> element.

Example:

col

Result:

<col />

colgroup Source #

Arguments

:: Html ev

Inner HTML.

-> Html ev

Resulting HTML.

Combinator for the <colgroup> element.

Example:

colgroup $ span $ toHtml "foo"

Result:

<colgroup><span>foo</span></colgroup>

command Source #

Arguments

:: Html ev

Inner HTML.

-> Html ev

Resulting HTML.

Combinator for the <command> element.

Example:

command $ span $ toHtml "foo"

Result:

<command><span>foo</span></command>

datalist Source #

Arguments

:: Html ev

Inner HTML.

-> Html ev

Resulting HTML.

Combinator for the <datalist> element.

Example:

datalist $ span $ toHtml "foo"

Result:

<datalist><span>foo</span></datalist>

dd Source #

Arguments

:: Html ev

Inner HTML.

-> Html ev

Resulting HTML.

Combinator for the <dd> element.

Example:

dd $ span $ toHtml "foo"

Result:

<dd><span>foo</span></dd>

del Source #

Arguments

:: Html ev

Inner HTML.

-> Html ev

Resulting HTML.

Combinator for the <del> element.

Example:

del $ span $ toHtml "foo"

Result:

<del><span>foo</span></del>

details Source #

Arguments

:: Html ev

Inner HTML.

-> Html ev

Resulting HTML.

Combinator for the <details> element.

Example:

details $ span $ toHtml "foo"

Result:

<details><span>foo</span></details>

dfn Source #

Arguments

:: Html ev

Inner HTML.

-> Html ev

Resulting HTML.

Combinator for the <dfn> element.

Example:

dfn $ span $ toHtml "foo"

Result:

<dfn><span>foo</span></dfn>

div Source #

Arguments

:: Html ev

Inner HTML.

-> Html ev

Resulting HTML.

Combinator for the <div> element.

Example:

div $ span $ toHtml "foo"

Result:

<div><span>foo</span></div>

dl Source #

Arguments

:: Html ev

Inner HTML.

-> Html ev

Resulting HTML.

Combinator for the <dl> element.

Example:

dl $ span $ toHtml "foo"

Result:

<dl><span>foo</span></dl>

dt Source #

Arguments

:: Html ev

Inner HTML.

-> Html ev

Resulting HTML.

Combinator for the <dt> element.

Example:

dt $ span $ toHtml "foo"

Result:

<dt><span>foo</span></dt>

em Source #

Arguments

:: Html ev

Inner HTML.

-> Html ev

Resulting HTML.

Combinator for the <em> element.

Example:

em $ span $ toHtml "foo"

Result:

<em><span>foo</span></em>

embed Source #

Arguments

:: Html ev

Resulting HTML.

Combinator for the <embed /> element.

Example:

embed

Result:

<embed />

fieldset Source #

Arguments

:: Html ev

Inner HTML.

-> Html ev

Resulting HTML.

Combinator for the <fieldset> element.

Example:

fieldset $ span $ toHtml "foo"

Result:

<fieldset><span>foo</span></fieldset>

figcaption Source #

Arguments

:: Html ev

Inner HTML.

-> Html ev

Resulting HTML.

Combinator for the <figcaption> element.

Example:

figcaption $ span $ toHtml "foo"

Result:

<figcaption><span>foo</span></figcaption>

figure Source #

Arguments

:: Html ev

Inner HTML.

-> Html ev

Resulting HTML.

Combinator for the <figure> element.

Example:

figure $ span $ toHtml "foo"

Result:

<figure><span>foo</span></figure>

footer Source #

Arguments

:: Html ev

Inner HTML.

-> Html ev

Resulting HTML.

Combinator for the <footer> element.

Example:

footer $ span $ toHtml "foo"

Result:

<footer><span>foo</span></footer>

form Source #

Arguments

:: Html ev

Inner HTML.

-> Html ev

Resulting HTML.

Combinator for the <form> element.

Example:

form $ span $ toHtml "foo"

Result:

<form><span>foo</span></form>

h1 Source #

Arguments

:: Html ev

Inner HTML.

-> Html ev

Resulting HTML.

Combinator for the <h1> element.

Example:

h1 $ span $ toHtml "foo"

Result:

<h1><span>foo</span></h1>

h2 Source #

Arguments

:: Html ev

Inner HTML.

-> Html ev

Resulting HTML.

Combinator for the <h2> element.

Example:

h2 $ span $ toHtml "foo"

Result:

<h2><span>foo</span></h2>

h3 Source #

Arguments

:: Html ev

Inner HTML.

-> Html ev

Resulting HTML.

Combinator for the <h3> element.

Example:

h3 $ span $ toHtml "foo"

Result:

<h3><span>foo</span></h3>

h4 Source #

Arguments

:: Html ev

Inner HTML.

-> Html ev

Resulting HTML.

Combinator for the <h4> element.

Example:

h4 $ span $ toHtml "foo"

Result:

<h4><span>foo</span></h4>

h5 Source #

Arguments

:: Html ev

Inner HTML.

-> Html ev

Resulting HTML.

Combinator for the <h5> element.

Example:

h5 $ span $ toHtml "foo"

Result:

<h5><span>foo</span></h5>

h6 Source #

Arguments

:: Html ev

Inner HTML.

-> Html ev

Resulting HTML.

Combinator for the <h6> element.

Example:

h6 $ span $ toHtml "foo"

Result:

<h6><span>foo</span></h6>

head Source #

Arguments

:: Html ev

Inner HTML.

-> Html ev

Resulting HTML.

Combinator for the <head> element.

Example:

head $ span $ toHtml "foo"

Result:

<head><span>foo</span></head>

header Source #

Arguments

:: Html ev

Inner HTML.

-> Html ev

Resulting HTML.

Combinator for the <header> element.

Example:

header $ span $ toHtml "foo"

Result:

<header><span>foo</span></header>

hgroup Source #

Arguments

:: Html ev

Inner HTML.

-> Html ev

Resulting HTML.

Combinator for the <hgroup> element.

Example:

hgroup $ span $ toHtml "foo"

Result:

<hgroup><span>foo</span></hgroup>

hr Source #

Arguments

:: Html ev

Resulting HTML.

Combinator for the <hr /> element.

Example:

hr

Result:

<hr />

html Source #

Arguments

:: Html ev

Inner HTML.

-> Html ev

Resulting HTML.

Combinator for the <html> element.

Example:

html $ span $ toHtml "foo"

Result:

<html><span>foo</span></html>

i Source #

Arguments

:: Html ev

Inner HTML.

-> Html ev

Resulting HTML.

Combinator for the <i> element.

Example:

i $ span $ toHtml "foo"

Result:

<i><span>foo</span></i>

iframe Source #

Arguments

:: Html ev

Inner HTML.

-> Html ev

Resulting HTML.

Combinator for the <iframe> element.

Example:

iframe $ span $ toHtml "foo"

Result:

<iframe><span>foo</span></iframe>

img Source #

Arguments

:: Html ev

Resulting HTML.

Combinator for the <img /> element.

Example:

img

Result:

<img />

input Source #

Arguments

:: Html ev

Resulting HTML.

Combinator for the <input /> element.

Example:

input

Result:

<input />

ins Source #

Arguments

:: Html ev

Inner HTML.

-> Html ev

Resulting HTML.

Combinator for the <ins> element.

Example:

ins $ span $ toHtml "foo"

Result:

<ins><span>foo</span></ins>

kbd Source #

Arguments

:: Html ev

Inner HTML.

-> Html ev

Resulting HTML.

Combinator for the <kbd> element.

Example:

kbd $ span $ toHtml "foo"

Result:

<kbd><span>foo</span></kbd>

keygen Source #

Arguments

:: Html ev

Resulting HTML.

Combinator for the <keygen /> element.

Example:

keygen

Result:

<keygen />

label Source #

Arguments

:: Html ev

Inner HTML.

-> Html ev

Resulting HTML.

Combinator for the <label> element.

Example:

label $ span $ toHtml "foo"

Result:

<label><span>foo</span></label>

legend Source #

Arguments

:: Html ev

Inner HTML.

-> Html ev

Resulting HTML.

Combinator for the <legend> element.

Example:

legend $ span $ toHtml "foo"

Result:

<legend><span>foo</span></legend>

li Source #

Arguments

:: Html ev

Inner HTML.

-> Html ev

Resulting HTML.

Combinator for the <li> element.

Example:

li $ span $ toHtml "foo"

Result:

<li><span>foo</span></li>

link Source #

Arguments

:: Html ev

Resulting HTML.

Combinator for the <link /> element.

Example:

link

Result:

<link />

map Source #

Arguments

:: Html ev

Inner HTML.

-> Html ev

Resulting HTML.

Combinator for the <map> element.

Example:

map $ span $ toHtml "foo"

Result:

<map><span>foo</span></map>

mark Source #

Arguments

:: Html ev

Inner HTML.

-> Html ev

Resulting HTML.

Combinator for the <mark> element.

Example:

mark $ span $ toHtml "foo"

Result:

<mark><span>foo</span></mark>

menu Source #

Arguments

:: Html ev

Inner HTML.

-> Html ev

Resulting HTML.

Combinator for the <menu> element.

Example:

menu $ span $ toHtml "foo"

Result:

<menu><span>foo</span></menu>

menuitem Source #

Arguments

:: Html ev

Resulting HTML.

Combinator for the <menuitem /> element.

Example:

menuitem

Result:

<menuitem />

meta Source #

Arguments

:: Html ev

Resulting HTML.

Combinator for the <meta /> element.

Example:

meta

Result:

<meta />

meter Source #

Arguments

:: Html ev

Inner HTML.

-> Html ev

Resulting HTML.

Combinator for the <meter> element.

Example:

meter $ span $ toHtml "foo"

Result:

<meter><span>foo</span></meter>

nav Source #

Arguments

:: Html ev

Inner HTML.

-> Html ev

Resulting HTML.

Combinator for the <nav> element.

Example:

nav $ span $ toHtml "foo"

Result:

<nav><span>foo</span></nav>

noscript Source #

Arguments

:: Html ev

Inner HTML.

-> Html ev

Resulting HTML.

Combinator for the <noscript> element.

Example:

noscript $ span $ toHtml "foo"

Result:

<noscript><span>foo</span></noscript>

object Source #

Arguments

:: Html ev

Inner HTML.

-> Html ev

Resulting HTML.

Combinator for the <object> element.

Example:

object $ span $ toHtml "foo"

Result:

<object><span>foo</span></object>

ol Source #

Arguments

:: Html ev

Inner HTML.

-> Html ev

Resulting HTML.

Combinator for the <ol> element.

Example:

ol $ span $ toHtml "foo"

Result:

<ol><span>foo</span></ol>

optgroup Source #

Arguments

:: Html ev

Inner HTML.

-> Html ev

Resulting HTML.

Combinator for the <optgroup> element.

Example:

optgroup $ span $ toHtml "foo"

Result:

<optgroup><span>foo</span></optgroup>

option Source #

Arguments

:: Html ev

Inner HTML.

-> Html ev

Resulting HTML.

Combinator for the <option> element.

Example:

option $ span $ toHtml "foo"

Result:

<option><span>foo</span></option>

output Source #

Arguments

:: Html ev

Inner HTML.

-> Html ev

Resulting HTML.

Combinator for the <output> element.

Example:

output $ span $ toHtml "foo"

Result:

<output><span>foo</span></output>

p Source #

Arguments

:: Html ev

Inner HTML.

-> Html ev

Resulting HTML.

Combinator for the <p> element.

Example:

p $ span $ toHtml "foo"

Result:

<p><span>foo</span></p>

param Source #

Arguments

:: Html ev

Resulting HTML.

Combinator for the <param /> element.

Example:

param

Result:

<param />

pre Source #

Arguments

:: Html ev

Inner HTML.

-> Html ev

Resulting HTML.

Combinator for the <pre> element.

Example:

pre $ span $ toHtml "foo"

Result:

<pre><span>foo</span></pre>

progress Source #

Arguments

:: Html ev

Inner HTML.

-> Html ev

Resulting HTML.

Combinator for the <progress> element.

Example:

progress $ span $ toHtml "foo"

Result:

<progress><span>foo</span></progress>

q Source #

Arguments

:: Html ev

Inner HTML.

-> Html ev

Resulting HTML.

Combinator for the <q> element.

Example:

q $ span $ toHtml "foo"

Result:

<q><span>foo</span></q>

rp Source #

Arguments

:: Html ev

Inner HTML.

-> Html ev

Resulting HTML.

Combinator for the <rp> element.

Example:

rp $ span $ toHtml "foo"

Result:

<rp><span>foo</span></rp>

rt Source #

Arguments

:: Html ev

Inner HTML.

-> Html ev

Resulting HTML.

Combinator for the <rt> element.

Example:

rt $ span $ toHtml "foo"

Result:

<rt><span>foo</span></rt>

ruby Source #

Arguments

:: Html ev

Inner HTML.

-> Html ev

Resulting HTML.

Combinator for the <ruby> element.

Example:

ruby $ span $ toHtml "foo"

Result:

<ruby><span>foo</span></ruby>

samp Source #

Arguments

:: Html ev

Inner HTML.

-> Html ev

Resulting HTML.

Combinator for the <samp> element.

Example:

samp $ span $ toHtml "foo"

Result:

<samp><span>foo</span></samp>

script Source #

Arguments

:: Html ev

Inner HTML.

-> Html ev

Resulting HTML.

Combinator for the <script> element.

Example:

script $ span $ toHtml "foo"

Result:

<script><span>foo</span></script>

section Source #

Arguments

:: Html ev

Inner HTML.

-> Html ev

Resulting HTML.

Combinator for the <section> element.

Example:

section $ span $ toHtml "foo"

Result:

<section><span>foo</span></section>

select Source #

Arguments

:: Html ev

Inner HTML.

-> Html ev

Resulting HTML.

Combinator for the <select> element.

Example:

select $ span $ toHtml "foo"

Result:

<select><span>foo</span></select>

small Source #

Arguments

:: Html ev

Inner HTML.

-> Html ev

Resulting HTML.

Combinator for the <small> element.

Example:

small $ span $ toHtml "foo"

Result:

<small><span>foo</span></small>

source Source #

Arguments

:: Html ev

Resulting HTML.

Combinator for the <source /> element.

Example:

source

Result:

<source />

span Source #

Arguments

:: Html ev

Inner HTML.

-> Html ev

Resulting HTML.

Combinator for the <span> element.

Example:

span $ span $ toHtml "foo"

Result:

<span><span>foo</span></span>

strong Source #

Arguments

:: Html ev

Inner HTML.

-> Html ev

Resulting HTML.

Combinator for the <strong> element.

Example:

strong $ span $ toHtml "foo"

Result:

<strong><span>foo</span></strong>

style Source #

Arguments

:: Html ev

Inner HTML.

-> Html ev

Resulting HTML.

Combinator for the <style> element.

Example:

style $ span $ toHtml "foo"

Result:

<style><span>foo</span></style>

sub Source #

Arguments

:: Html ev

Inner HTML.

-> Html ev

Resulting HTML.

Combinator for the <sub> element.

Example:

sub $ span $ toHtml "foo"

Result:

<sub><span>foo</span></sub>

summary Source #

Arguments

:: Html ev

Inner HTML.

-> Html ev

Resulting HTML.

Combinator for the <summary> element.

Example:

summary $ span $ toHtml "foo"

Result:

<summary><span>foo</span></summary>

sup Source #

Arguments

:: Html ev

Inner HTML.

-> Html ev

Resulting HTML.

Combinator for the <sup> element.

Example:

sup $ span $ toHtml "foo"

Result:

<sup><span>foo</span></sup>

svg :: Svg ev -> Html ev Source #

Combinator for the <svg> element.

Example:

svg ! width "100" ! height "100" $
  circle ! cx "50" ! cy "50" ! r "40"

Result:

<svg width="100" height="100"><circle cx="50" cy="50" r="40"/></svg>

table Source #

Arguments

:: Html ev

Inner HTML.

-> Html ev

Resulting HTML.

Combinator for the <table> element.

Example:

table $ span $ toHtml "foo"

Result:

<table><span>foo</span></table>

tbody Source #

Arguments

:: Html ev

Inner HTML.

-> Html ev

Resulting HTML.

Combinator for the <tbody> element.

Example:

tbody $ span $ toHtml "foo"

Result:

<tbody><span>foo</span></tbody>

td Source #

Arguments

:: Html ev

Inner HTML.

-> Html ev

Resulting HTML.

Combinator for the <td> element.

Example:

td $ span $ toHtml "foo"

Result:

<td><span>foo</span></td>

textarea Source #

Arguments

:: Html ev 
-> Html ev

Resulting HTML.

Combinator for the <textarea> element.

Example:

textarea $ span $ toHtml "foo"

Result:

<textarea><span>foo</span></textarea>

tfoot Source #

Arguments

:: Html ev

Inner HTML.

-> Html ev

Resulting HTML.

Combinator for the <tfoot> element.

Example:

tfoot $ span $ toHtml "foo"

Result:

<tfoot><span>foo</span></tfoot>

th Source #

Arguments

:: Html ev

Inner HTML.

-> Html ev

Resulting HTML.

Combinator for the <th> element.

Example:

th $ span $ toHtml "foo"

Result:

<th><span>foo</span></th>

thead Source #

Arguments

:: Html ev

Inner HTML.

-> Html ev

Resulting HTML.

Combinator for the <thead> element.

Example:

thead $ span $ toHtml "foo"

Result:

<thead><span>foo</span></thead>

time Source #

Arguments

:: Html ev

Inner HTML.

-> Html ev

Resulting HTML.

Combinator for the <time> element.

Example:

time $ span $ toHtml "foo"

Result:

<time><span>foo</span></time>

title Source #

Arguments

:: Html ev

Inner HTML.

-> Html ev

Resulting HTML.

Combinator for the <title> element.

Example:

title $ span $ toHtml "foo"

Result:

<title><span>foo</span></title>

tr Source #

Arguments

:: Html ev

Inner HTML.

-> Html ev

Resulting HTML.

Combinator for the <tr> element.

Example:

tr $ span $ toHtml "foo"

Result:

<tr><span>foo</span></tr>

track Source #

Arguments

:: Html ev

Resulting HTML.

Combinator for the <track /> element.

Example:

track

Result:

<track />

ul Source #

Arguments

:: Html ev

Inner HTML.

-> Html ev

Resulting HTML.

Combinator for the <ul> element.

Example:

ul $ span $ toHtml "foo"

Result:

<ul><span>foo</span></ul>

var Source #

Arguments

:: Html ev

Inner HTML.

-> Html ev

Resulting HTML.

Combinator for the <var> element.

Example:

var $ span $ toHtml "foo"

Result:

<var><span>foo</span></var>

video Source #

Arguments

:: Html ev

Inner HTML.

-> Html ev

Resulting HTML.

Combinator for the <video> element.

Example:

video $ span $ toHtml "foo"

Result:

<video><span>foo</span></video>

wbr Source #

Arguments

:: Html ev

Resulting HTML.

Combinator for the <wbr /> element.

Example:

wbr

Result:

<wbr />