Maintainer | bastiaan.heeren@ou.nl |
---|---|
Stability | provisional |
Portability | portable (depends on ghc) |
Safe Haskell | Safe |
Language | Haskell98 |
A minimal interface for constructing simple HTML pages See http://www.w3.org/TR/html4/
- data HTMLPage
- type HTMLBuilder = XMLBuilder
- addCSS :: FilePath -> HTMLPage -> HTMLPage
- addScript :: FilePath -> HTMLPage -> HTMLPage
- addStyle :: String -> HTMLPage -> HTMLPage
- showHTML :: HTMLPage -> String
- string :: BuildXML a => String -> a
- text :: (BuildXML a, Show s) => s -> a
- htmlPage :: String -> HTMLBuilder -> HTMLPage
- link :: BuildXML a => String -> a -> a
- h1 :: BuildXML a => String -> a
- h2 :: BuildXML a => String -> a
- h3 :: BuildXML a => String -> a
- h4 :: BuildXML a => String -> a
- h5 :: BuildXML a => String -> a
- h6 :: BuildXML a => String -> a
- preText :: BuildXML a => String -> a
- ul :: BuildXML a => [a] -> a
- table :: BuildXML a => Bool -> [[a]] -> a
- keyValueTable :: BuildXML a => [(String, a)] -> a
- image :: BuildXML a => String -> a
- space :: BuildXML a => a
- spaces :: BuildXML a => Int -> a
- highlightXML :: Bool -> XML -> HTMLBuilder
- para :: BuildXML a => a -> a
- ttText :: BuildXML a => String -> a
- hr :: BuildXML a => a
- br :: BuildXML a => a
- pre :: BuildXML a => a -> a
- bullet :: BuildXML a => a
- divClass :: BuildXML a => String -> a -> a
- spanClass :: BuildXML a => String -> a -> a
- idA :: BuildXML a => String -> a
- classA :: BuildXML a => String -> a
- styleA :: BuildXML a => String -> a
- titleA :: BuildXML a => String -> a
- tt :: BuildXML a => a -> a
- italic :: BuildXML a => a -> a
- bold :: BuildXML a => a -> a
- big :: BuildXML a => a -> a
- small :: BuildXML a => a -> a
- module Data.Monoid
Documentation
type HTMLBuilder = XMLBuilder Source #
table :: BuildXML a => Bool -> [[a]] -> a Source #
First argument indicates whether the table has a header or not
keyValueTable :: BuildXML a => [(String, a)] -> a Source #
highlightXML :: Bool -> XML -> HTMLBuilder Source #
module Data.Monoid