aboutsummaryrefslogtreecommitdiff
path: root/src/Haddock
diff options
context:
space:
mode:
authorMark Lentczner <markl@glyphic.com>2010-07-24 06:28:44 +0000
committerMark Lentczner <markl@glyphic.com>2010-07-24 06:28:44 +0000
commit03836297a59c665f72176f3efecd448bac5e8423 (patch)
tree2a27d8abb6d0bcb3d7cfd844f57caec812360900 /src/Haddock
parenta597daf429d168d1d0fb1d5b814f380aabbe6cda (diff)
fields are def lists, tweak css for style menu, mini pages, arguments
Diffstat (limited to 'src/Haddock')
-rw-r--r--src/Haddock/Backends/Xhtml/Layout.hs5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/Haddock/Backends/Xhtml/Layout.hs b/src/Haddock/Backends/Xhtml/Layout.hs
index 63b2b6c8..499d058a 100644
--- a/src/Haddock/Backends/Xhtml/Layout.hs
+++ b/src/Haddock/Backends/Xhtml/Layout.hs
@@ -109,8 +109,6 @@ divSubDecls cssClass captionName = maybe noHtml wrap
subSection = thediv ! [theclass $ unwords ["subs", cssClass]]
subCaption = paragraph ! [theclass "caption"] << captionName
-{-
- if we ever decide to style sub-declarations with dl lists, this code does it
subDlist :: [SubDecl] -> Maybe Html
subDlist [] = Nothing
@@ -125,7 +123,6 @@ subDlist decls = Just $ dlist << map subEntry decls +++ clearDiv
ma `with` bs = ma +++ bs
clearDiv = thediv ! [ theclass "clear" ] << noHtml
--}
subTable :: [SubDecl] -> Maybe Html
@@ -157,7 +154,7 @@ subConstructors = divSubDecls "constructors" "Constructors" . subTable
subFields :: [SubDecl] -> Html
-subFields = divSubDecls "fields" "Fields" . subTable
+subFields = divSubDecls "fields" "Fields" . subDlist
subInstances :: String -> [SubDecl] -> Html