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-Inferred
Language | Haskell98

Text.Html

Description

An Html combinator library

# Documentation

base :: String -> HtmlAttr #

text :: String -> HtmlAttr #

class ADDATTRS a where #

Methods

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

#### Instances

Instances details

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 #

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

option :: Html -> Html #

reset :: String -> String -> Html #

compact :: HtmlAttr #

size :: String -> HtmlAttr #

link :: String -> HtmlAttr #

value :: String -> HtmlAttr #

clear :: String -> HtmlAttr #

newtype Html #

Constructors

Html |
Fields getHtmlElements :: [HtmlElement]

#### Instances

Instances details

Show Html # |
Instance details Defined in Text.Html Methods showsPrec :: Int -> Html -> ShowS # show :: Html -> String # showList :: [Html] -> ShowS #
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 #
HTMLTABLE Html # |
Instance details Defined in Text.Html Methods cell :: Html -> HtmlTable #

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

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

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

table :: Html -> Html #

p :: Html -> Html #

h1 :: Html -> Html #

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

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

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

data HtmlElement #

Constructors

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

data HtmlAttr #

Constructors

HtmlAttr String String |

#### Instances

Instances details

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

class HTML a where #

Minimal complete definition

toHtml

Methods

toHtml :: a -> Html #

toHtmlFromList :: [a] -> Html #

#### Instances

Instances details

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

stringToHtmlString :: String -> String #

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

noHtml :: Html #

isNoHtml :: Html -> Bool #

tag :: String -> Html -> Html #

itag :: String -> Html #

emptyAttr :: String -> HtmlAttr #

intAttr :: String -> Int -> HtmlAttr #

strAttr :: String -> String -> HtmlAttr #

prettyHtml :: HTML html => html -> 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 #

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 #

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 #

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 #

bgcolor :: String -> HtmlAttr #

border :: Int -> HtmlAttr #

bordercolor :: String -> HtmlAttr #

cellpadding :: Int -> HtmlAttr #

cellspacing :: Int -> HtmlAttr #

checked :: HtmlAttr #

code :: String -> HtmlAttr #

codebase :: String -> HtmlAttr #

color :: String -> HtmlAttr #

cols :: String -> HtmlAttr #

colspan :: Int -> 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 #

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 #

src :: String -> HtmlAttr #

start :: Int -> HtmlAttr #

target :: String -> HtmlAttr #

theclass :: String -> HtmlAttr #

thestyle :: String -> HtmlAttr #

thetype :: String -> HtmlAttr #

title :: String -> HtmlAttr #

usemap :: String -> HtmlAttr #

valign :: 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 #

class HTMLTABLE ht where #

Methods

cell :: ht -> HtmlTable #

#### Instances

Instances details

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

newtype HtmlTable #

Constructors

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

#### Instances

Instances details

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

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

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

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

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

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

data HtmlTree #

Constructors

HtmlLeaf Html |
HtmlNode Html [HtmlTree] Html |

#### Instances

Instances details

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

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

treeColors :: [String] #

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

data HotLink #

Constructors

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

#### Instances

Instances details

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 #

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 #

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

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

prettyHtml' :: HtmlElement -> [String] #

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

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