diff options
Diffstat (limited to 'src/Haddock/Backends')
-rw-r--r-- | src/Haddock/Backends/Html.hs | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/Haddock/Backends/Html.hs b/src/Haddock/Backends/Html.hs index a0e81edc..0fbf8760 100644 --- a/src/Haddock/Backends/Html.hs +++ b/src/Haddock/Backends/Html.hs @@ -1027,7 +1027,7 @@ ppDataDecl summary links instances x loc mbDoc dataDecl (ppShortDataDecl summary links loc mbDoc dataDecl) | otherwise - = (if validTable then (</>) else const) dataHeader $ + = (if validTable then (</>) else const) header $ tda [theclass "body"] << vanillaTable << ( datadoc </> constrBit </> @@ -1044,9 +1044,8 @@ ppDataDecl summary links instances x loc mbDoc dataDecl cons = tcdCons dataDecl resTy = (con_res . unLoc . head) cons - dataHeader = - (if summary then declBox else topDeclBox links loc name) - ((ppDataHeader summary dataDecl) <+> whereBit) + header = topDeclBox links loc name (ppDataHeader summary dataDecl + <+> whereBit) whereBit | null cons = empty |