Text.Html

html-1.0.1.2: HTML combinator library

Copyright | (c) Andy Gill and OGI 1999-2001
License | BSD-style (see the file libraries/base/LICENSE)
Maintainer | Andy Gill <andy@galconn.com>
Stability | provisional
Portability | portable
Safe Haskell | Safe
Language | Haskell98

Text.Html

Description

An Html combinator library

# Documentation

data HotLink #

Constructors

HotLink |
Fields hotLinkURL :: URL hotLinkContents :: [Html] hotLinkAttributes :: [HtmlAttr]

Instances

Show HotLink # |
Instance details Defined in Text.Html Methods showsPrec :: Int -> HotLink -> ShowS # show :: HotLink -> String # showList :: [HotLink] -> ShowS #
HTML HotLink # |
Instance details Defined in Text.Html Methods toHtml :: HotLink -> Html # toHtmlFromList :: [HotLink] -> Html #

data HtmlTree #

Constructors

HtmlLeaf Html |
HtmlNode Html [HtmlTree] Html |

Instances

HTML HtmlTree # |
Instance details Defined in Text.Html Methods toHtml :: HtmlTree -> Html # toHtmlFromList :: [HtmlTree] -> Html #

newtype HtmlTable #

Constructors

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

Instances

Show HtmlTable # |
Instance details Defined in Text.Html Methods showsPrec :: Int -> HtmlTable -> ShowS # show :: HtmlTable -> String # showList :: [HtmlTable] -> ShowS #
HTMLTABLE HtmlTable # |
Instance details Defined in Text.Html Methods cell :: HtmlTable -> HtmlTable #
HTML HtmlTable # |
Instance details Defined in Text.Html Methods toHtml :: HtmlTable -> Html # toHtmlFromList :: [HtmlTable] -> Html #

class HTMLTABLE ht where #

Methods

cell :: ht -> HtmlTable #

Instances

HTMLTABLE HtmlTable # |
Instance details Defined in Text.Html Methods cell :: HtmlTable -> HtmlTable #
HTMLTABLE Html # |
Instance details Defined in Text.Html Methods cell :: Html -> HtmlTable #

type URL = String #

class ADDATTRS a where #

Methods

(!) :: a -> [HtmlAttr] -> a infixl 8 #

Instances

ADDATTRS Html # |
Instance details Defined in Text.Html Methods (!) :: Html -> [HtmlAttr] -> Html #
ADDATTRS b => ADDATTRS (a -> b) # |
Instance details Defined in Text.Html Methods (!) :: (a -> b) -> [HtmlAttr] -> a -> b #

class HTML a where #

Minimal complete definition

toHtml

Methods

toHtml :: a -> Html #

toHtmlFromList :: [a] -> Html #

Instances

HTML Char # |
Instance details Defined in Text.Html Methods toHtml :: Char -> Html # toHtmlFromList :: [Char] -> Html #
HTML HotLink # |
Instance details Defined in Text.Html Methods toHtml :: HotLink -> Html # toHtmlFromList :: [HotLink] -> Html #
HTML HtmlTree # |
Instance details Defined in Text.Html Methods toHtml :: HtmlTree -> Html # toHtmlFromList :: [HtmlTree] -> Html #
HTML HtmlTable # |
Instance details Defined in Text.Html Methods toHtml :: HtmlTable -> Html # toHtmlFromList :: [HtmlTable] -> Html #
HTML Html # |
Instance details Defined in Text.Html Methods toHtml :: Html -> Html # toHtmlFromList :: [Html] -> Html #
HTML a => HTML [a] # |
Instance details Defined in Text.Html Methods toHtml :: [a] -> Html # toHtmlFromList :: [[a]] -> Html #

newtype Html #

Constructors

Html |
Fields getHtmlElements :: [HtmlElement]

Instances

Show Html # |
Instance details Defined in Text.Html Methods showsPrec :: Int -> Html -> ShowS # show :: Html -> String # showList :: [Html] -> ShowS #
HTMLTABLE Html # |
Instance details Defined in Text.Html Methods cell :: Html -> HtmlTable #
ADDATTRS Html # |
Instance details Defined in Text.Html Methods (!) :: Html -> [HtmlAttr] -> Html #
HTML Html # |
Instance details Defined in Text.Html Methods toHtml :: Html -> Html # toHtmlFromList :: [Html] -> Html #

data HtmlAttr #

Constructors

HtmlAttr String String |

Instances

Show HtmlAttr # |
Instance details Defined in Text.Html Methods showsPrec :: Int -> HtmlAttr -> ShowS # show :: HtmlAttr -> String # showList :: [HtmlAttr] -> ShowS #

data HtmlElement #

Constructors

HtmlString String |
HtmlTag |
Fields markupTag :: String markupAttrs :: [HtmlAttr] markupContent :: Html

(<<) :: HTML a => (Html -> b) -> a -> b infixr 7 #

concatHtml :: HTML a => [a] -> Html #

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

noHtml :: Html #

isNoHtml :: Html -> Bool #

tag :: String -> Html -> Html #

itag :: String -> Html #

emptyAttr :: String -> HtmlAttr #

intAttr :: String -> Int -> HtmlAttr #

strAttr :: String -> String -> HtmlAttr #

stringToHtmlString :: String -> String #

primHtml :: String -> Html #

stringToHtml :: String -> Html #

lineToHtml :: String -> Html #

address :: Html -> Html #

anchor :: Html -> Html #

applet :: Html -> Html #

area :: Html #

basefont :: Html #

big :: Html -> Html #

blockquote :: Html -> Html #

body :: Html -> Html #

bold :: Html -> Html #

br :: Html #

caption :: Html -> Html #

center :: Html -> Html #

cite :: Html -> Html #

ddef :: Html -> Html #

define :: Html -> Html #

dlist :: Html -> Html #

dterm :: Html -> Html #

emphasize :: Html -> Html #

fieldset :: Html -> Html #

font :: Html -> Html #

form :: Html -> Html #

frame :: Html -> Html #

frameset :: Html -> Html #

h1 :: Html -> Html #

h2 :: Html -> Html #

h3 :: Html -> Html #

h4 :: Html -> Html #

h5 :: Html -> Html #

h6 :: Html -> Html #

header :: Html -> Html #

hr :: Html #

image :: Html #

input :: Html #

italics :: Html -> Html #

keyboard :: Html -> Html #

legend :: Html -> Html #

li :: Html -> Html #

meta :: Html #

noframes :: Html -> Html #

olist :: Html -> Html #

option :: Html -> Html #

paragraph :: Html -> Html #

param :: Html #

pre :: Html -> Html #

sample :: Html -> Html #

select :: Html -> Html #

small :: Html -> Html #

strong :: Html -> Html #

style :: Html -> Html #

sub :: Html -> Html #

sup :: Html -> Html #

table :: Html -> Html #

td :: Html -> Html #

textarea :: Html -> Html #

th :: Html -> Html #

thebase :: Html #

thecode :: Html -> Html #

thediv :: Html -> Html #

thehtml :: Html -> Html #

thelink :: Html -> Html #

themap :: Html -> Html #

thespan :: Html -> Html #

thetitle :: Html -> Html #

tr :: Html -> Html #

tt :: Html -> Html #

ulist :: Html -> Html #

underline :: Html -> Html #

variable :: Html -> Html #

action :: String -> HtmlAttr #

align :: String -> HtmlAttr #

alink :: String -> HtmlAttr #

alt :: String -> HtmlAttr #

altcode :: String -> HtmlAttr #

archive :: String -> HtmlAttr #

background :: String -> HtmlAttr #

base :: String -> HtmlAttr #

bgcolor :: String -> HtmlAttr #

border :: Int -> HtmlAttr #

bordercolor :: String -> HtmlAttr #

cellpadding :: Int -> HtmlAttr #

cellspacing :: Int -> HtmlAttr #

checked :: HtmlAttr #

clear :: String -> HtmlAttr #

code :: String -> HtmlAttr #

codebase :: String -> HtmlAttr #

color :: String -> HtmlAttr #

cols :: String -> HtmlAttr #

colspan :: Int -> HtmlAttr #

compact :: HtmlAttr #

content :: String -> HtmlAttr #

coords :: String -> HtmlAttr #

enctype :: String -> HtmlAttr #

face :: String -> HtmlAttr #

frameborder :: Int -> HtmlAttr #

height :: Int -> HtmlAttr #

href :: String -> HtmlAttr #

hspace :: Int -> HtmlAttr #

httpequiv :: String -> HtmlAttr #

identifier :: String -> HtmlAttr #

ismap :: HtmlAttr #

lang :: String -> HtmlAttr #

link :: String -> HtmlAttr #

marginheight :: Int -> HtmlAttr #

marginwidth :: Int -> HtmlAttr #

maxlength :: Int -> HtmlAttr #

method :: String -> HtmlAttr #

multiple :: HtmlAttr #

name :: String -> HtmlAttr #

nohref :: HtmlAttr #

noresize :: HtmlAttr #

noshade :: HtmlAttr #

nowrap :: HtmlAttr #

rel :: String -> HtmlAttr #

rev :: String -> HtmlAttr #

rows :: String -> HtmlAttr #

rowspan :: Int -> HtmlAttr #

rules :: String -> HtmlAttr #

scrolling :: String -> HtmlAttr #

selected :: HtmlAttr #

shape :: String -> HtmlAttr #

size :: String -> HtmlAttr #

src :: String -> HtmlAttr #

start :: Int -> HtmlAttr #

target :: String -> HtmlAttr #

text :: String -> HtmlAttr #

theclass :: String -> HtmlAttr #

thestyle :: String -> HtmlAttr #

thetype :: String -> HtmlAttr #

title :: String -> HtmlAttr #

usemap :: String -> HtmlAttr #

valign :: String -> HtmlAttr #

value :: String -> HtmlAttr #

version :: String -> HtmlAttr #

vlink :: String -> HtmlAttr #

vspace :: Int -> HtmlAttr #

width :: String -> HtmlAttr #

validHtmlTags :: [String] #

validHtmlITags :: [String] #

validHtmlAttrs :: [String] #

aqua :: String #

black :: String #

blue :: String #

fuchsia :: String #

gray :: String #

green :: String #

lime :: String #

maroon :: String #

navy :: String #

olive :: String #

purple :: String #

red :: String #

silver :: String #

teal :: String #

yellow :: String #

white :: String #

linesToHtml :: [String] -> Html #

primHtmlChar :: String -> Html #

copyright :: Html #

spaceHtml :: Html #

bullet :: Html #

p :: Html -> Html #

mkHtmlTable :: BlockTable (Int -> Int -> Html) -> HtmlTable #

above :: (HTMLTABLE ht1, HTMLTABLE ht2) => ht1 -> ht2 -> HtmlTable #

(</>) :: (HTMLTABLE ht1, HTMLTABLE ht2) => ht1 -> ht2 -> HtmlTable infixr 3 #

beside :: (HTMLTABLE ht1, HTMLTABLE ht2) => ht1 -> ht2 -> HtmlTable #

(<->) :: (HTMLTABLE ht1, HTMLTABLE ht2) => ht1 -> ht2 -> HtmlTable infixr 4 #

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

aboves :: HTMLTABLE ht => [ht] -> HtmlTable #

besides :: HTMLTABLE ht => [ht] -> HtmlTable #

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

simpleTable :: [HtmlAttr] -> [HtmlAttr] -> [[Html]] -> Html #

treeHtml :: [String] -> HtmlTree -> Html #

treeColors :: [[Char]] #

debugHtml :: HTML a => a -> Html #

hotlink :: URL -> [Html] -> HotLink #

ordList :: HTML a => [a] -> Html #

unordList :: HTML a => [a] -> Html #

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

widget :: String -> String -> [HtmlAttr] -> Html #

checkbox :: String -> String -> Html #

hidden :: String -> String -> Html #

radio :: String -> String -> Html #

reset :: String -> String -> Html #

submit :: String -> String -> Html #

password :: String -> Html #

textfield :: String -> Html #

afile :: String -> Html #

clickmap :: String -> Html #

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

gui :: String -> Html -> Html #

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

renderMessage :: [Char] #

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

renderHtml' :: Int -> HtmlElement -> ShowS #

prettyHtml' :: HtmlElement -> [String] #

rmNL :: [Char] -> [Char] #

renderTag :: Bool -> String -> [HtmlAttr] -> Int -> ShowS #