From 3dc04655c5aa80676489dd45ad6bb7d61013ec5b Mon Sep 17 00:00:00 2001 From: simonmar Date: Wed, 10 Jul 2002 09:40:56 +0000 Subject: [haddock @ 2002-07-10 09:40:56 by simonmar] Fix for rendering of the (->) type constructor, from Ross Paterson. --- src/HaddockHtml.hs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 -- cgit v1.2.3