diff options
author | Mark Lentczner <markl@glyphic.com> | 2010-07-17 05:35:16 +0000 |
---|---|---|
committer | Mark Lentczner <markl@glyphic.com> | 2010-07-17 05:35:16 +0000 |
commit | 84d0217a797e03b7b86af50de772931d5e3caae5 (patch) | |
tree | d5a6ddd8a6589a71ed6bdc92d92f7371ea607e29 /src/Haddock/Backends/Xhtml/Util.hs | |
parent | 8f6355a0ad885c1d2872d619670b1cb90f6696c4 (diff) |
clean up Util.hs
Diffstat (limited to 'src/Haddock/Backends/Xhtml/Util.hs')
-rw-r--r-- | src/Haddock/Backends/Xhtml/Util.hs | 24 |
1 files changed, 2 insertions, 22 deletions
diff --git a/src/Haddock/Backends/Xhtml/Util.hs b/src/Haddock/Backends/Xhtml/Util.hs index d4ead8d8..9db73742 100644 --- a/src/Haddock/Backends/Xhtml/Util.hs +++ b/src/Haddock/Backends/Xhtml/Util.hs @@ -16,14 +16,13 @@ module Haddock.Backends.Xhtml.Util ( namedAnchor, linkedAnchor, spliceURL, - (<+>), char, empty, nonEmpty, + (<+>), char, nonEmpty, keyword, punctuate, braces, brackets, pabrackets, parens, parenList, ubxParenList, arrow, comma, dcolon, dot, darrow, equals, forallSymbol, quote, - tda, emptyTable, s8, - abovesSep, hsep, + hsep, collapsebutton, collapseId, documentCharacterEncoding, @@ -109,9 +108,6 @@ comma = char ',' char :: Char -> Html char c = toHtml [c] -empty :: Html -empty = noHtml - -- | ensure content contains at least something (a non-breaking space) nonEmpty :: (HTML a) => a -> Html nonEmpty a = if isNoHtml h then spaceHtml else h @@ -135,13 +131,6 @@ punctuate h (d0:ds) = go d0 ds go d [] = [d] go d (e:es) = (d +++ h) : go e es -abovesSep :: HtmlTable -> [HtmlTable] -> HtmlTable -abovesSep _ [] = emptyTable -abovesSep h (d0:ds) = go d0 ds - where - go d [] = d - go d (e:es) = d </> h </> go e es - parenList :: [Html] -> Html parenList = parens . hsep . punctuate comma @@ -152,12 +141,6 @@ ubxparens :: Html -> Html ubxparens h = toHtml "(#" +++ h +++ toHtml "#)" -tda :: [HtmlAttr] -> Html -> HtmlTable -tda as = cell . (td ! as) - -emptyTable :: HtmlTable -emptyTable = cell noHtml - onclick :: String -> HtmlAttr onclick = strAttr "onclick" @@ -173,9 +156,6 @@ dot :: Html dot = toHtml "." -s8 :: HtmlTable -s8 = tda [ theclass "s8" ] << noHtml - -- | Generate a named anchor -- |