aboutsummaryrefslogtreecommitdiff
path: root/src/Haddock/Backends/Xhtml/Decl.hs
diff options
context:
space:
mode:
authorMark Lentczner <markl@glyphic.com>2010-07-14 21:54:58 +0000
committerMark Lentczner <markl@glyphic.com>2010-07-14 21:54:58 +0000
commitab2ec30f12e283f4d28d1aa52b0980c96b0a7036 (patch)
tree87cf46ff06af936ae2a5f5384ed80b95ac1a8d97 /src/Haddock/Backends/Xhtml/Decl.hs
parent3edc93d3c0becf85d9fc225734c01c345712149e (diff)
methods and associated types in new layout scheme
Diffstat (limited to 'src/Haddock/Backends/Xhtml/Decl.hs')
-rw-r--r--src/Haddock/Backends/Xhtml/Decl.hs14
1 files changed, 2 insertions, 12 deletions
diff --git a/src/Haddock/Backends/Xhtml/Decl.hs b/src/Haddock/Backends/Xhtml/Decl.hs
index 6e0c5601..ef7d01d4 100644
--- a/src/Haddock/Backends/Xhtml/Decl.hs
+++ b/src/Haddock/Backends/Xhtml/Decl.hs
@@ -366,23 +366,13 @@ ppClassDecl summary links instances loc mbDoc subdocs
hdr = ppClassHdr summary lctxt (unLoc lname) ltyvars lfds
- atBit
- | null ats = noHtml
- | otherwise = atHdr +++ (
- thediv ! [theclass "subdecl"] <<
- concatHtml [ ppAssocType summary links doc at unicode
+ atBit = subAssociatedTypes [ ppAssocType summary links doc at unicode
| at <- ats
, let doc = lookupAnySubdoc (tcdName $ unL at) subdocs ]
- )
- methodBit
- | null lsigs = noHtml
- | otherwise = methHdr +++ (
- thediv ! [theclass "subdecl"] <<
- concatHtml [ ppFunSig summary links loc doc n typ unicode
+ methodBit = subMethods [ ppFunSig summary links loc doc n typ unicode
| L _ (TypeSig (L _ n) (L _ typ)) <- lsigs
, let doc = lookupAnySubdoc n subdocs ]
- )
instancesBit = ppInstances instances nm unicode