aboutsummaryrefslogtreecommitdiff
path: root/haddock-api/src/Haddock/Backends/Xhtml/Layout.hs
diff options
context:
space:
mode:
authorƁukasz Hanuszczak <lukasz.hanuszczak@gmail.com>2015-07-29 12:25:54 +0200
committerMateusz Kowalczyk <fuuzetsu@fuuzetsu.co.uk>2015-08-21 18:22:32 +0100
commit73f4a18d0b29dd209a5f1172c8ed662be11d5690 (patch)
tree2286bafbe79b04d182bfcde2eab9b2d042e9e9cd /haddock-api/src/Haddock/Backends/Xhtml/Layout.hs
parent0c34ec0ae515d88437e04a49ca0131205be096e5 (diff)
Make instance details section contain associated types information.
Diffstat (limited to 'haddock-api/src/Haddock/Backends/Xhtml/Layout.hs')
-rw-r--r--haddock-api/src/Haddock/Backends/Xhtml/Layout.hs11
1 files changed, 6 insertions, 5 deletions
diff --git a/haddock-api/src/Haddock/Backends/Xhtml/Layout.hs b/haddock-api/src/Haddock/Backends/Xhtml/Layout.hs
index 117f8fc8..074b6801 100644
--- a/haddock-api/src/Haddock/Backends/Xhtml/Layout.hs
+++ b/haddock-api/src/Haddock/Backends/Xhtml/Layout.hs
@@ -31,7 +31,7 @@ module Haddock.Backends.Xhtml.Layout (
subConstructors,
subEquations,
subFields,
- subInstances, subInstHead, subInstMethods,
+ subInstances, subInstHead, subInstDetails,
subMethods,
subMinimal,
@@ -210,13 +210,14 @@ subInstHead iid hdr =
expander = thediv ! collapseControl (instAnchorId iid) False "instance"
-subInstMethods :: String -- ^ Instance unique id (for anchor generation)
+subInstDetails :: String -- ^ Instance unique id (for anchor generation)
+ -> [Html] -- ^ Associated type contents
-> [Html] -- ^ Method contents (pretty-printed signatures)
-> Html
-subInstMethods iid mets =
- section << subMethods mets
+subInstDetails iid ats mets =
+ section << (subAssociatedTypes ats <+> subMethods mets)
where
- section = thediv ! collapseSection (instAnchorId iid) False "methods"
+ section = thediv ! collapseSection (instAnchorId iid) False "inst-details"
instAnchorId :: String -> String