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 HtmlElement #

Constructors

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

data HtmlAttr #

Constructors

HtmlAttr String String |

Instances

Show HtmlAttr # |
Methods showsPrec :: Int -> HtmlAttr -> ShowS # show :: HtmlAttr -> String # showList :: [HtmlAttr] -> ShowS #

newtype Html #

Constructors

Html |
Fields getHtmlElements :: [HtmlElement]

Instances

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

class HTML a where #

Minimal complete definition

toHtml

Methods

toHtml :: a -> Html #

toHtmlFromList :: [a] -> Html #

Instances

HTML Char # |
Methods toHtml :: Char -> Html # toHtmlFromList :: [Char] -> Html #
HTML HotLink # |
Methods toHtml :: HotLink -> Html # toHtmlFromList :: [HotLink] -> Html #
HTML HtmlTree # |
Methods toHtml :: HtmlTree -> Html # toHtmlFromList :: [HtmlTree] -> Html #
HTML HtmlTable # |
Methods toHtml :: HtmlTable -> Html # toHtmlFromList :: [HtmlTable] -> Html #
HTML Html # |
Methods toHtml :: Html -> Html # toHtmlFromList :: [Html] -> Html #
HTML a => HTML [a] # |
Methods toHtml :: [a] -> Html # toHtmlFromList :: [[a]] -> Html #

class ADDATTRS a where #

Minimal complete definition

(!)

Methods

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

Instances

ADDATTRS Html # |
Methods (!) :: Html -> [HtmlAttr] -> Html #
ADDATTRS b => ADDATTRS (a -> b) # |
Methods (!) :: (a -> b) -> [HtmlAttr] -> a -> b #

(<<) :: 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 #

type URL = 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 #

class HTMLTABLE ht where #

Minimal complete definition

cell

Methods

cell :: ht -> HtmlTable #

Instances

HTMLTABLE HtmlTable # |
Methods cell :: HtmlTable -> HtmlTable #
HTMLTABLE Html # |
Methods cell :: Html -> HtmlTable #

newtype HtmlTable #

Constructors

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

Instances

Show HtmlTable # |
Methods showsPrec :: Int -> HtmlTable -> ShowS # show :: HtmlTable -> String # showList :: [HtmlTable] -> ShowS #
HTMLTABLE HtmlTable # |
Methods cell :: HtmlTable -> HtmlTable #
HTML HtmlTable # |
Methods toHtml :: HtmlTable -> Html # toHtmlFromList :: [HtmlTable] -> Html #

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

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

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

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

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

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

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

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

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

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

data HtmlTree #

Constructors

HtmlLeaf Html |
HtmlNode Html [HtmlTree] Html |

Instances

HTML HtmlTree # |
Methods toHtml :: HtmlTree -> Html # toHtmlFromList :: [HtmlTree] -> Html #

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

treeColors :: [[Char]] #

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

data HotLink #

Constructors

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

Instances

Show HotLink # |
Methods showsPrec :: Int -> HotLink -> ShowS # show :: HotLink -> String # showList :: [HotLink] -> ShowS #
HTML HotLink # |
Methods toHtml :: HotLink -> Html # toHtmlFromList :: [HotLink] -> 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 #