aboutsummaryrefslogtreecommitdiff
path: root/haddock-api/src/Haddock/Backends/Xhtml/Decl.hs
diff options
context:
space:
mode:
authorƁukasz Hanuszczak <lukasz.hanuszczak@gmail.com>2015-07-29 18:21:04 +0200
committerMateusz Kowalczyk <fuuzetsu@fuuzetsu.co.uk>2015-08-21 18:22:33 +0100
commit00571a39acaa5aaa292b5a4bd5c17f122951f7ae (patch)
tree081be9c4b73f55a8584f9c310ba55c8c9b043c7a /haddock-api/src/Haddock/Backends/Xhtml/Decl.hs
parent709ce61f4cf18b2d6a24411670713d7480b8218c (diff)
Apply type specializer to associated type family declarations.
Diffstat (limited to 'haddock-api/src/Haddock/Backends/Xhtml/Decl.hs')
-rw-r--r--haddock-api/src/Haddock/Backends/Xhtml/Decl.hs7
1 files changed, 4 insertions, 3 deletions
diff --git a/haddock-api/src/Haddock/Backends/Xhtml/Decl.hs b/haddock-api/src/Haddock/Backends/Xhtml/Decl.hs
index e6869916..294af864 100644
--- a/haddock-api/src/Haddock/Backends/Xhtml/Decl.hs
+++ b/haddock-api/src/Haddock/Backends/Xhtml/Decl.hs
@@ -567,7 +567,7 @@ ppInstHead links splice unicode qual mdoc origin no (InstHead {..}) =
sigs = ppInstanceSigs links splice unicode qual
clsiTyVars ihdTypes clsiSigs
ats = ppInstanceAssocTys links splice unicode qual
- clsiAssocTys
+ clsiTyVars ihdTypes clsiAssocTys
TypeInst rhs ->
(ptype, mdoc, [])
where
@@ -588,10 +588,11 @@ ppInstHead links splice unicode qual mdoc origin no (InstHead {..}) =
ppInstanceAssocTys :: LinksInfo -> Splice -> Unicode -> Qualification
+ -> LHsTyVarBndrs DocName -> [HsType DocName]
-> [PseudoFamilyDecl DocName]
-> [Html]
-ppInstanceAssocTys links splice unicode qual =
- map ppFamilyDecl'
+ppInstanceAssocTys links splice unicode qual bndrs tys =
+ map ppFamilyDecl' . map (specializePseudoFamilyDecl bndrs tys)
where
ppFamilyDecl' = ppPseudoFamilyDecl links splice unicode qual