Shpadoinkle-html-0.3.0.2: A typed, template generated Html DSL, and helpers.

Safe HaskellNone
LanguageHaskell2010

Shpadoinkle.Html.Element

Description

This module provides a DSL of HTML elements. This DSL is entirely optional. You may use the Html constructors provided by Shpadoinkle core and completely ignore this module. You can write your code h style and not use this module. For those who like a typed DSL with named functions for different tags, this is for you.

Each HTML element comes in 4 flavors. Delicious flavors. Plain (IE div), prime (IE 'div\''), underscore (IE div_), and both (IE 'div_\''). The following should hold

  x [] = x'
  flip x [] = x_
  x [] [] = x'_
  h "x" = x

Plain versions like div are for cases where we care about properties as well as children, 'div\'' is for cases where we care about children but not properties, and div_ is for cases where we care about properties but not children.

Due to OverloadedStrings this yields a pleasent DSL

 div "foo" [ "hiya" ]
 > <div class="foo">hiya</div>

Documentation

body' :: [(Text, Prop m a)] -> Html m a Source #

body_ :: [Html m a] -> Html m a Source #

body :: [(Text, Prop m a)] -> [Html m a] -> Html m a Source #

html' :: [(Text, Prop m a)] -> Html m a Source #

html_ :: [Html m a] -> Html m a Source #

html :: [(Text, Prop m a)] -> [Html m a] -> Html m a Source #

param' :: [(Text, Prop m a)] -> Html m a Source #

param_ :: [Html m a] -> Html m a Source #

param :: [(Text, Prop m a)] -> [Html m a] -> Html m a Source #

object' :: [(Text, Prop m a)] -> Html m a Source #

object_ :: [Html m a] -> Html m a Source #

object :: [(Text, Prop m a)] -> [Html m a] -> Html m a Source #

embed' :: [(Text, Prop m a)] -> Html m a Source #

embed_ :: [Html m a] -> Html m a Source #

embed :: [(Text, Prop m a)] -> [Html m a] -> Html m a Source #

applet' :: [(Text, Prop m a)] -> Html m a Source #

applet_ :: [Html m a] -> Html m a Source #

applet :: [(Text, Prop m a)] -> [Html m a] -> Html m a Source #

noscript' :: [(Text, Prop m a)] -> Html m a Source #

noscript_ :: [Html m a] -> Html m a Source #

noscript :: [(Text, Prop m a)] -> [Html m a] -> Html m a Source #

script' :: [(Text, Prop m a)] -> Html m a Source #

script_ :: [Html m a] -> Html m a Source #

script :: [(Text, Prop m a)] -> [Html m a] -> Html m a Source #

basefont' :: [(Text, Prop m a)] -> Html m a Source #

basefont_ :: [Html m a] -> Html m a Source #

basefont :: [(Text, Prop m a)] -> [Html m a] -> Html m a Source #

base' :: [(Text, Prop m a)] -> Html m a Source #

base_ :: [Html m a] -> Html m a Source #

base :: [(Text, Prop m a)] -> [Html m a] -> Html m a Source #

meta' :: [(Text, Prop m a)] -> Html m a Source #

meta_ :: [Html m a] -> Html m a Source #

meta :: [(Text, Prop m a)] -> [Html m a] -> Html m a Source #

head' :: [(Text, Prop m a)] -> Html m a Source #

head_ :: [Html m a] -> Html m a Source #

head :: [(Text, Prop m a)] -> [Html m a] -> Html m a Source #

summary' :: [(Text, Prop m a)] -> Html m a Source #

summary_ :: [Html m a] -> Html m a Source #

summary :: [(Text, Prop m a)] -> [Html m a] -> Html m a Source #

dialog' :: [(Text, Prop m a)] -> Html m a Source #

dialog_ :: [Html m a] -> Html m a Source #

dialog :: [(Text, Prop m a)] -> [Html m a] -> Html m a Source #

details' :: [(Text, Prop m a)] -> Html m a Source #

details_ :: [Html m a] -> Html m a Source #

details :: [(Text, Prop m a)] -> [Html m a] -> Html m a Source #

aside' :: [(Text, Prop m a)] -> Html m a Source #

aside_ :: [Html m a] -> Html m a Source #

aside :: [(Text, Prop m a)] -> [Html m a] -> Html m a Source #

article' :: [(Text, Prop m a)] -> Html m a Source #

article_ :: [Html m a] -> Html m a Source #

article :: [(Text, Prop m a)] -> [Html m a] -> Html m a Source #

section' :: [(Text, Prop m a)] -> Html m a Source #

section_ :: [Html m a] -> Html m a Source #

section :: [(Text, Prop m a)] -> [Html m a] -> Html m a Source #

main'' :: [(Text, Prop m a)] -> Html m a Source #

main'_ :: [Html m a] -> Html m a Source #

main' :: [(Text, Prop m a)] -> [Html m a] -> Html m a Source #

footer' :: [(Text, Prop m a)] -> Html m a Source #

footer_ :: [Html m a] -> Html m a Source #

footer :: [(Text, Prop m a)] -> [Html m a] -> Html m a Source #

header' :: [(Text, Prop m a)] -> Html m a Source #

header_ :: [Html m a] -> Html m a Source #

header :: [(Text, Prop m a)] -> [Html m a] -> Html m a Source #

span' :: [(Text, Prop m a)] -> Html m a Source #

span_ :: [Html m a] -> Html m a Source #

span :: [(Text, Prop m a)] -> [Html m a] -> Html m a Source #

div' :: [(Text, Prop m a)] -> Html m a Source #

div_ :: [Html m a] -> Html m a Source #

div :: [(Text, Prop m a)] -> [Html m a] -> Html m a Source #

style' :: [(Text, Prop m a)] -> Html m a Source #

style_ :: [Html m a] -> Html m a Source #

style :: [(Text, Prop m a)] -> [Html m a] -> Html m a Source #

colgroup' :: [(Text, Prop m a)] -> Html m a Source #

colgroup_ :: [Html m a] -> Html m a Source #

colgroup :: [(Text, Prop m a)] -> [Html m a] -> Html m a Source #

col' :: [(Text, Prop m a)] -> Html m a Source #

col_ :: [Html m a] -> Html m a Source #

col :: [(Text, Prop m a)] -> [Html m a] -> Html m a Source #

tfoot' :: [(Text, Prop m a)] -> Html m a Source #

tfoot_ :: [Html m a] -> Html m a Source #

tfoot :: [(Text, Prop m a)] -> [Html m a] -> Html m a Source #

tbody' :: [(Text, Prop m a)] -> Html m a Source #

tbody_ :: [Html m a] -> Html m a Source #

tbody :: [(Text, Prop m a)] -> [Html m a] -> Html m a Source #

thead' :: [(Text, Prop m a)] -> Html m a Source #

thead_ :: [Html m a] -> Html m a Source #

thead :: [(Text, Prop m a)] -> [Html m a] -> Html m a Source #

td'_ :: Html m a Source #

td' :: [(Text, Prop m a)] -> Html m a Source #

td_ :: [Html m a] -> Html m a Source #

td :: [(Text, Prop m a)] -> [Html m a] -> Html m a Source #

tr'_ :: Html m a Source #

tr' :: [(Text, Prop m a)] -> Html m a Source #

tr_ :: [Html m a] -> Html m a Source #

tr :: [(Text, Prop m a)] -> [Html m a] -> Html m a Source #

th'_ :: Html m a Source #

th' :: [(Text, Prop m a)] -> Html m a Source #

th_ :: [Html m a] -> Html m a Source #

th :: [(Text, Prop m a)] -> [Html m a] -> Html m a Source #

caption' :: [(Text, Prop m a)] -> Html m a Source #

caption_ :: [Html m a] -> Html m a Source #

caption :: [(Text, Prop m a)] -> [Html m a] -> Html m a Source #

table' :: [(Text, Prop m a)] -> Html m a Source #

table_ :: [Html m a] -> Html m a Source #

table :: [(Text, Prop m a)] -> [Html m a] -> Html m a Source #

menuitem' :: [(Text, Prop m a)] -> Html m a Source #

menuitem_ :: [Html m a] -> Html m a Source #

menuitem :: [(Text, Prop m a)] -> [Html m a] -> Html m a Source #

menu' :: [(Text, Prop m a)] -> Html m a Source #

menu_ :: [Html m a] -> Html m a Source #

menu :: [(Text, Prop m a)] -> [Html m a] -> Html m a Source #

dd'_ :: Html m a Source #

dd' :: [(Text, Prop m a)] -> Html m a Source #

dd_ :: [Html m a] -> Html m a Source #

dd :: [(Text, Prop m a)] -> [Html m a] -> Html m a Source #

dt'_ :: Html m a Source #

dt' :: [(Text, Prop m a)] -> Html m a Source #

dt_ :: [Html m a] -> Html m a Source #

dt :: [(Text, Prop m a)] -> [Html m a] -> Html m a Source #

dl'_ :: Html m a Source #

dl' :: [(Text, Prop m a)] -> Html m a Source #

dl_ :: [Html m a] -> Html m a Source #

dl :: [(Text, Prop m a)] -> [Html m a] -> Html m a Source #

dir' :: [(Text, Prop m a)] -> Html m a Source #

dir_ :: [Html m a] -> Html m a Source #

dir :: [(Text, Prop m a)] -> [Html m a] -> Html m a Source #

li'_ :: Html m a Source #

li' :: [(Text, Prop m a)] -> Html m a Source #

li_ :: [Html m a] -> Html m a Source #

li :: [(Text, Prop m a)] -> [Html m a] -> Html m a Source #

ol'_ :: Html m a Source #

ol' :: [(Text, Prop m a)] -> Html m a Source #

ol_ :: [Html m a] -> Html m a Source #

ol :: [(Text, Prop m a)] -> [Html m a] -> Html m a Source #

ul'_ :: Html m a Source #

ul' :: [(Text, Prop m a)] -> Html m a Source #

ul_ :: [Html m a] -> Html m a Source #

ul :: [(Text, Prop m a)] -> [Html m a] -> Html m a Source #

nav' :: [(Text, Prop m a)] -> Html m a Source #

nav_ :: [Html m a] -> Html m a Source #

nav :: [(Text, Prop m a)] -> [Html m a] -> Html m a Source #

link' :: [(Text, Prop m a)] -> Html m a Source #

link_ :: [Html m a] -> Html m a Source #

link :: [(Text, Prop m a)] -> [Html m a] -> Html m a Source #

a'_ :: Html m a Source #

a' :: [(Text, Prop m a)] -> Html m a Source #

a_ :: [Html m a] -> Html m a Source #

a :: [(Text, Prop m a)] -> [Html m a] -> Html m a Source #

figure' :: [(Text, Prop m a)] -> Html m a Source #

figure_ :: [Html m a] -> Html m a Source #

figure :: [(Text, Prop m a)] -> [Html m a] -> Html m a Source #

figcaption' :: [(Text, Prop m a)] -> Html m a Source #

figcaption_ :: [Html m a] -> Html m a Source #

figcaption :: [(Text, Prop m a)] -> [Html m a] -> Html m a Source #

canvas' :: [(Text, Prop m a)] -> Html m a Source #

canvas_ :: [Html m a] -> Html m a Source #

canvas :: [(Text, Prop m a)] -> [Html m a] -> Html m a Source #

area' :: [(Text, Prop m a)] -> Html m a Source #

area_ :: [Html m a] -> Html m a Source #

area :: [(Text, Prop m a)] -> [Html m a] -> Html m a Source #

img' :: [(Text, Prop m a)] -> Html m a Source #

img_ :: [Html m a] -> Html m a Source #

img :: [(Text, Prop m a)] -> [Html m a] -> Html m a Source #

iframe' :: [(Text, Prop m a)] -> Html m a Source #

iframe_ :: [Html m a] -> Html m a Source #

iframe :: [(Text, Prop m a)] -> [Html m a] -> Html m a Source #

noframes' :: [(Text, Prop m a)] -> Html m a Source #

noframes_ :: [Html m a] -> Html m a Source #

noframes :: [(Text, Prop m a)] -> [Html m a] -> Html m a Source #

frameset' :: [(Text, Prop m a)] -> Html m a Source #

frameset_ :: [Html m a] -> Html m a Source #

frameset :: [(Text, Prop m a)] -> [Html m a] -> Html m a Source #

frame' :: [(Text, Prop m a)] -> Html m a Source #

frame_ :: [Html m a] -> Html m a Source #

frame :: [(Text, Prop m a)] -> [Html m a] -> Html m a Source #

output' :: [(Text, Prop m a)] -> Html m a Source #

output_ :: [Html m a] -> Html m a Source #

output :: [(Text, Prop m a)] -> [Html m a] -> Html m a Source #

keygen' :: [(Text, Prop m a)] -> Html m a Source #

keygen_ :: [Html m a] -> Html m a Source #

keygen :: [(Text, Prop m a)] -> [Html m a] -> Html m a Source #

datalist' :: [(Text, Prop m a)] -> Html m a Source #

datalist_ :: [Html m a] -> Html m a Source #

datalist :: [(Text, Prop m a)] -> [Html m a] -> Html m a Source #

legend' :: [(Text, Prop m a)] -> Html m a Source #

legend_ :: [Html m a] -> Html m a Source #

legend :: [(Text, Prop m a)] -> [Html m a] -> Html m a Source #

fieldset' :: [(Text, Prop m a)] -> Html m a Source #

fieldset_ :: [Html m a] -> Html m a Source #

fieldset :: [(Text, Prop m a)] -> [Html m a] -> Html m a Source #

label' :: [(Text, Prop m a)] -> Html m a Source #

label_ :: [Html m a] -> Html m a Source #

label :: [(Text, Prop m a)] -> [Html m a] -> Html m a Source #

option' :: [(Text, Prop m a)] -> Html m a Source #

option_ :: [Html m a] -> Html m a Source #

option :: [(Text, Prop m a)] -> [Html m a] -> Html m a Source #

optgroup' :: [(Text, Prop m a)] -> Html m a Source #

optgroup_ :: [Html m a] -> Html m a Source #

optgroup :: [(Text, Prop m a)] -> [Html m a] -> Html m a Source #

select' :: [(Text, Prop m a)] -> Html m a Source #

select_ :: [Html m a] -> Html m a Source #

select :: [(Text, Prop m a)] -> [Html m a] -> Html m a Source #

button' :: [(Text, Prop m a)] -> Html m a Source #

button_ :: [Html m a] -> Html m a Source #

button :: [(Text, Prop m a)] -> [Html m a] -> Html m a Source #

textarea' :: [(Text, Prop m a)] -> Html m a Source #

textarea_ :: [Html m a] -> Html m a Source #

textarea :: [(Text, Prop m a)] -> [Html m a] -> Html m a Source #

input' :: [(Text, Prop m a)] -> Html m a Source #

input_ :: [Html m a] -> Html m a Source #

input :: [(Text, Prop m a)] -> [Html m a] -> Html m a Source #

form' :: [(Text, Prop m a)] -> Html m a Source #

form_ :: [Html m a] -> Html m a Source #

form :: [(Text, Prop m a)] -> [Html m a] -> Html m a Source #

wbr' :: [(Text, Prop m a)] -> Html m a Source #

wbr_ :: [Html m a] -> Html m a Source #

wbr :: [(Text, Prop m a)] -> [Html m a] -> Html m a Source #

var' :: [(Text, Prop m a)] -> Html m a Source #

var_ :: [Html m a] -> Html m a Source #

var :: [(Text, Prop m a)] -> [Html m a] -> Html m a Source #

u'_ :: Html m a Source #

u' :: [(Text, Prop m a)] -> Html m a Source #

u_ :: [Html m a] -> Html m a Source #

u :: [(Text, Prop m a)] -> [Html m a] -> Html m a Source #

tt'_ :: Html m a Source #

tt' :: [(Text, Prop m a)] -> Html m a Source #

tt_ :: [Html m a] -> Html m a Source #

tt :: [(Text, Prop m a)] -> [Html m a] -> Html m a Source #

time' :: [(Text, Prop m a)] -> Html m a Source #

time_ :: [Html m a] -> Html m a Source #

time :: [(Text, Prop m a)] -> [Html m a] -> Html m a Source #

sup' :: [(Text, Prop m a)] -> Html m a Source #

sup_ :: [Html m a] -> Html m a Source #

sup :: [(Text, Prop m a)] -> [Html m a] -> Html m a Source #

sub' :: [(Text, Prop m a)] -> Html m a Source #

sub_ :: [Html m a] -> Html m a Source #

sub :: [(Text, Prop m a)] -> [Html m a] -> Html m a Source #

strong' :: [(Text, Prop m a)] -> Html m a Source #

strong_ :: [Html m a] -> Html m a Source #

strong :: [(Text, Prop m a)] -> [Html m a] -> Html m a Source #

strike' :: [(Text, Prop m a)] -> Html m a Source #

strike_ :: [Html m a] -> Html m a Source #

strike :: [(Text, Prop m a)] -> [Html m a] -> Html m a Source #

small' :: [(Text, Prop m a)] -> Html m a Source #

small_ :: [Html m a] -> Html m a Source #

small :: [(Text, Prop m a)] -> [Html m a] -> Html m a Source #

samp' :: [(Text, Prop m a)] -> Html m a Source #

samp_ :: [Html m a] -> Html m a Source #

samp :: [(Text, Prop m a)] -> [Html m a] -> Html m a Source #

s'_ :: Html m a Source #

s' :: [(Text, Prop m a)] -> Html m a Source #

s_ :: [Html m a] -> Html m a Source #

s :: [(Text, Prop m a)] -> [Html m a] -> Html m a Source #

ruby' :: [(Text, Prop m a)] -> Html m a Source #

ruby_ :: [Html m a] -> Html m a Source #

ruby :: [(Text, Prop m a)] -> [Html m a] -> Html m a Source #

rt'_ :: Html m a Source #

rt' :: [(Text, Prop m a)] -> Html m a Source #

rt_ :: [Html m a] -> Html m a Source #

rt :: [(Text, Prop m a)] -> [Html m a] -> Html m a Source #

rp'_ :: Html m a Source #

rp' :: [(Text, Prop m a)] -> Html m a Source #

rp_ :: [Html m a] -> Html m a Source #

rp :: [(Text, Prop m a)] -> [Html m a] -> Html m a Source #

q'_ :: Html m a Source #

q' :: [(Text, Prop m a)] -> Html m a Source #

q_ :: [Html m a] -> Html m a Source #

q :: [(Text, Prop m a)] -> [Html m a] -> Html m a Source #

progress' :: [(Text, Prop m a)] -> Html m a Source #

progress_ :: [Html m a] -> Html m a Source #

progress :: [(Text, Prop m a)] -> [Html m a] -> Html m a Source #

pre' :: [(Text, Prop m a)] -> Html m a Source #

pre_ :: [Html m a] -> Html m a Source #

pre :: [(Text, Prop m a)] -> [Html m a] -> Html m a Source #

meter' :: [(Text, Prop m a)] -> Html m a Source #

meter_ :: [Html m a] -> Html m a Source #

meter :: [(Text, Prop m a)] -> [Html m a] -> Html m a Source #

mark' :: [(Text, Prop m a)] -> Html m a Source #

mark_ :: [Html m a] -> Html m a Source #

mark :: [(Text, Prop m a)] -> [Html m a] -> Html m a Source #

kbd' :: [(Text, Prop m a)] -> Html m a Source #

kbd_ :: [Html m a] -> Html m a Source #

kbd :: [(Text, Prop m a)] -> [Html m a] -> Html m a Source #

ins' :: [(Text, Prop m a)] -> Html m a Source #

ins_ :: [Html m a] -> Html m a Source #

ins :: [(Text, Prop m a)] -> [Html m a] -> Html m a Source #

i'_ :: Html m a Source #

i' :: [(Text, Prop m a)] -> Html m a Source #

i_ :: [Html m a] -> Html m a Source #

i :: [(Text, Prop m a)] -> [Html m a] -> Html m a Source #

font' :: [(Text, Prop m a)] -> Html m a Source #

font_ :: [Html m a] -> Html m a Source #

font :: [(Text, Prop m a)] -> [Html m a] -> Html m a Source #

em'_ :: Html m a Source #

em' :: [(Text, Prop m a)] -> Html m a Source #

em_ :: [Html m a] -> Html m a Source #

em :: [(Text, Prop m a)] -> [Html m a] -> Html m a Source #

dfn' :: [(Text, Prop m a)] -> Html m a Source #

dfn_ :: [Html m a] -> Html m a Source #

dfn :: [(Text, Prop m a)] -> [Html m a] -> Html m a Source #

del' :: [(Text, Prop m a)] -> Html m a Source #

del_ :: [Html m a] -> Html m a Source #

del :: [(Text, Prop m a)] -> [Html m a] -> Html m a Source #

code' :: [(Text, Prop m a)] -> Html m a Source #

code_ :: [Html m a] -> Html m a Source #

code :: [(Text, Prop m a)] -> [Html m a] -> Html m a Source #

cite' :: [(Text, Prop m a)] -> Html m a Source #

cite_ :: [Html m a] -> Html m a Source #

cite :: [(Text, Prop m a)] -> [Html m a] -> Html m a Source #

center' :: [(Text, Prop m a)] -> Html m a Source #

center_ :: [Html m a] -> Html m a Source #

center :: [(Text, Prop m a)] -> [Html m a] -> Html m a Source #

blockquote' :: [(Text, Prop m a)] -> Html m a Source #

blockquote_ :: [Html m a] -> Html m a Source #

blockquote :: [(Text, Prop m a)] -> [Html m a] -> Html m a Source #

big' :: [(Text, Prop m a)] -> Html m a Source #

big_ :: [Html m a] -> Html m a Source #

big :: [(Text, Prop m a)] -> [Html m a] -> Html m a Source #

bdo' :: [(Text, Prop m a)] -> Html m a Source #

bdo_ :: [Html m a] -> Html m a Source #

bdo :: [(Text, Prop m a)] -> [Html m a] -> Html m a Source #

bdi' :: [(Text, Prop m a)] -> Html m a Source #

bdi_ :: [Html m a] -> Html m a Source #

bdi :: [(Text, Prop m a)] -> [Html m a] -> Html m a Source #

b'_ :: Html m a Source #

b' :: [(Text, Prop m a)] -> Html m a Source #

b_ :: [Html m a] -> Html m a Source #

b :: [(Text, Prop m a)] -> [Html m a] -> Html m a Source #

address' :: [(Text, Prop m a)] -> Html m a Source #

address_ :: [Html m a] -> Html m a Source #

address :: [(Text, Prop m a)] -> [Html m a] -> Html m a Source #

abbr' :: [(Text, Prop m a)] -> Html m a Source #

abbr_ :: [Html m a] -> Html m a Source #

abbr :: [(Text, Prop m a)] -> [Html m a] -> Html m a Source #

hr'_ :: Html m a Source #

hr' :: [(Text, Prop m a)] -> Html m a Source #

hr_ :: [Html m a] -> Html m a Source #

hr :: [(Text, Prop m a)] -> [Html m a] -> Html m a Source #

br'_ :: Html m a Source #

br' :: [(Text, Prop m a)] -> Html m a Source #

br_ :: [Html m a] -> Html m a Source #

br :: [(Text, Prop m a)] -> [Html m a] -> Html m a Source #

p'_ :: Html m a Source #

p' :: [(Text, Prop m a)] -> Html m a Source #

p_ :: [Html m a] -> Html m a Source #

p :: [(Text, Prop m a)] -> [Html m a] -> Html m a Source #

h6'_ :: Html m a Source #

h6' :: [(Text, Prop m a)] -> Html m a Source #

h6_ :: [Html m a] -> Html m a Source #

h6 :: [(Text, Prop m a)] -> [Html m a] -> Html m a Source #

h5'_ :: Html m a Source #

h5' :: [(Text, Prop m a)] -> Html m a Source #

h5_ :: [Html m a] -> Html m a Source #

h5 :: [(Text, Prop m a)] -> [Html m a] -> Html m a Source #

h4'_ :: Html m a Source #

h4' :: [(Text, Prop m a)] -> Html m a Source #

h4_ :: [Html m a] -> Html m a Source #

h4 :: [(Text, Prop m a)] -> [Html m a] -> Html m a Source #

h3'_ :: Html m a Source #

h3' :: [(Text, Prop m a)] -> Html m a Source #

h3_ :: [Html m a] -> Html m a Source #

h3 :: [(Text, Prop m a)] -> [Html m a] -> Html m a Source #

h2'_ :: Html m a Source #

h2' :: [(Text, Prop m a)] -> Html m a Source #

h2_ :: [Html m a] -> Html m a Source #

h2 :: [(Text, Prop m a)] -> [Html m a] -> Html m a Source #

h1'_ :: Html m a Source #

h1' :: [(Text, Prop m a)] -> Html m a Source #

h1_ :: [Html m a] -> Html m a Source #

h1 :: [(Text, Prop m a)] -> [Html m a] -> Html m a Source #