diff options
Diffstat (limited to 'src/HaddockHtml.hs')
-rw-r--r-- | src/HaddockHtml.hs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/HaddockHtml.hs b/src/HaddockHtml.hs index a503d50f..23d4c512 100644 --- a/src/HaddockHtml.hs +++ b/src/HaddockHtml.hs @@ -748,7 +748,9 @@ ppHsAType :: HsType -> Html ppHsAType (HsTyTuple True l) = parenList . map ppHsType $ l ppHsAType (HsTyTuple False l) = ubxParenList . map ppHsType $ l ppHsAType (HsTyVar name) = ppHsName name -ppHsAType (HsTyCon name) = ppHsQName name +ppHsAType (HsTyCon name) + | name == fun_tycon_name = parens $ ppHsQName name + | otherwise = ppHsQName name ppHsAType (HsTyApp (HsTyCon (Qual _ (HsTyClsName (HsSpecial "[]")))) b ) = brackets $ ppHsType b ppHsAType t = parens $ ppHsType t |