html-1.0.1.2: HTML combinator library

Portabilityportable
Stabilityprovisional
MaintainerAndy Gill <andy@galconn.com>
Safe HaskellSafe-Inferred

Text.Html

Description

An Html combinator library

Documentation

data HtmlElement Source

Constructors

HtmlString String 
HtmlTag 

Fields

markupTag :: String
 
markupAttrs :: [HtmlAttr]
 
markupContent :: Html
 

data HtmlAttr Source

Constructors

HtmlAttr String String 

Instances

Show HtmlAttr 

newtype Html Source

Constructors

Html 

Instances

class HTML a whereSource

Methods

toHtml :: a -> HtmlSource

toHtmlFromList :: [a] -> HtmlSource

Instances

class ADDATTRS a whereSource

Methods

(!) :: a -> [HtmlAttr] -> aSource

Instances

ADDATTRS Html 
ADDATTRS b => ADDATTRS (a -> b) 

(<<) :: HTML a => (Html -> b) -> a -> bSource

concatHtml :: HTML a => [a] -> HtmlSource

(+++) :: (HTML a, HTML b) => a -> b -> HtmlSource

isNoHtml :: Html -> BoolSource

tag :: String -> Html -> HtmlSource

itag :: String -> HtmlSource

intAttr :: String -> Int -> HtmlAttrSource

strAttr :: String -> String -> HtmlAttrSource

stringToHtmlString :: String -> StringSource

type URL = StringSource

primHtml :: String -> HtmlSource

lineToHtml :: String -> HtmlSource

action :: String -> HtmlAttrSource

align :: String -> HtmlAttrSource

alink :: String -> HtmlAttrSource

alt :: String -> HtmlAttrSource

altcode :: String -> HtmlAttrSource

archive :: String -> HtmlAttrSource

base :: String -> HtmlAttrSource

bgcolor :: String -> HtmlAttrSource

clear :: String -> HtmlAttrSource

code :: String -> HtmlAttrSource

color :: String -> HtmlAttrSource

cols :: String -> HtmlAttrSource

content :: String -> HtmlAttrSource

coords :: String -> HtmlAttrSource

enctype :: String -> HtmlAttrSource

face :: String -> HtmlAttrSource

href :: String -> HtmlAttrSource

lang :: String -> HtmlAttrSource

link :: String -> HtmlAttrSource

method :: String -> HtmlAttrSource

name :: String -> HtmlAttrSource

rel :: String -> HtmlAttrSource

rev :: String -> HtmlAttrSource

rows :: String -> HtmlAttrSource

rules :: String -> HtmlAttrSource

shape :: String -> HtmlAttrSource

size :: String -> HtmlAttrSource

src :: String -> HtmlAttrSource

target :: String -> HtmlAttrSource

text :: String -> HtmlAttrSource

thetype :: String -> HtmlAttrSource

title :: String -> HtmlAttrSource

usemap :: String -> HtmlAttrSource

valign :: String -> HtmlAttrSource

value :: String -> HtmlAttrSource

version :: String -> HtmlAttrSource

vlink :: String -> HtmlAttrSource

width :: String -> HtmlAttrSource

aqua :: StringSource

black :: StringSource

blue :: StringSource

fuchsia :: StringSource

gray :: StringSource

green :: StringSource

lime :: StringSource

maroon :: StringSource

navy :: StringSource

olive :: StringSource

purple :: StringSource

red :: StringSource

silver :: StringSource

teal :: StringSource

yellow :: StringSource

white :: StringSource

linesToHtml :: [String] -> HtmlSource

class HTMLTABLE ht whereSource

Methods

cell :: ht -> HtmlTableSource

newtype HtmlTable Source

Constructors

HtmlTable (BlockTable (Int -> Int -> Html)) 

(</>) :: (HTMLTABLE ht1, HTMLTABLE ht2) => ht1 -> ht2 -> HtmlTableSource

beside :: (HTMLTABLE ht1, HTMLTABLE ht2) => ht1 -> ht2 -> HtmlTableSource

(<->) :: (HTMLTABLE ht1, HTMLTABLE ht2) => ht1 -> ht2 -> HtmlTableSource

above :: (HTMLTABLE ht1, HTMLTABLE ht2) => ht1 -> ht2 -> HtmlTableSource

combine :: (BlockTable (Int -> Int -> Html) -> BlockTable (Int -> Int -> Html) -> BlockTable (Int -> Int -> Html)) -> HtmlTable -> HtmlTable -> HtmlTableSource

renderTable :: BlockTable (Int -> Int -> Html) -> HtmlSource

treeHtml :: [String] -> HtmlTree -> HtmlSource

treeColors :: [[Char]]Source

data HotLink Source

ordList :: HTML a => [a] -> HtmlSource

unordList :: HTML a => [a] -> HtmlSource

defList :: (HTML a, HTML b) => [(a, b)] -> HtmlSource

widget :: String -> String -> [HtmlAttr] -> HtmlSource

checkbox :: String -> String -> HtmlSource

hidden :: String -> String -> HtmlSource

radio :: String -> String -> HtmlSource

reset :: String -> String -> HtmlSource

submit :: String -> String -> HtmlSource

password :: String -> HtmlSource

textfield :: String -> HtmlSource

afile :: String -> HtmlSource

clickmap :: String -> HtmlSource

menu :: String -> [Html] -> HtmlSource

gui :: String -> Html -> HtmlSource

renderHtml :: HTML html => html -> StringSource

prettyHtml :: HTML html => html -> StringSource

renderHtml' :: Int -> HtmlElement -> ShowSSource

rmNL :: [Char] -> [Char]Source

renderTag :: Bool -> String -> [HtmlAttr] -> Int -> ShowSSource