aboutsummaryrefslogtreecommitdiff
path: root/src/Haddock/Backends/Xhtml/Layout.hs
diff options
context:
space:
mode:
authorMark Lentczner <markl@glyphic.com>2010-07-14 16:00:54 +0000
committerMark Lentczner <markl@glyphic.com>2010-07-14 16:00:54 +0000
commit21d6bb713fac1fbbc988a9939d7b0b1edc7a5f64 (patch)
treebf59dbcba77c6e69037460c3fb73baa88189492c /src/Haddock/Backends/Xhtml/Layout.hs
parentcd869b6a41463f6fd0c979bafe09ce06cbc05ee2 (diff)
convert args to SubDecl format
Diffstat (limited to 'src/Haddock/Backends/Xhtml/Layout.hs')
-rw-r--r--src/Haddock/Backends/Xhtml/Layout.hs5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/Haddock/Backends/Xhtml/Layout.hs b/src/Haddock/Backends/Xhtml/Layout.hs
index 3c695042..440d8e1e 100644
--- a/src/Haddock/Backends/Xhtml/Layout.hs
+++ b/src/Haddock/Backends/Xhtml/Layout.hs
@@ -20,6 +20,7 @@ module Haddock.Backends.Xhtml.Layout (
divTopDecl,
SubDecl,
+ subArguments,
subConstructors, subFields,
topDeclElem, declElem,
@@ -98,6 +99,10 @@ subTable decls = Just $ table << aboves (concatMap subRow decls)
td << nonEmpty (fmap docToHtml mdoc))
: map (cell . (td <<)) subs
+
+subArguments :: [(Html, Maybe (Doc DocName), [Html])] -> Html
+subArguments = divSubDecls "arguments" "Arguments" . subTable
+
subConstructors :: [(Html, Maybe (Doc DocName), [Html])] -> Html
subConstructors = divSubDecls "constructors" "Constructors" . subTable