diff options
author | simonmar <unknown> | 2002-07-19 09:59:02 +0000 |
---|---|---|
committer | simonmar <unknown> | 2002-07-19 09:59:02 +0000 |
commit | a69d7378afabc5fdfb2f82ae3b86eb76568c654a (patch) | |
tree | cf7e7030b51396faa7dfdf9c83b51af2bbe2ee25 /src/HaddockHtml.hs | |
parent | 80a97e74e3ebad5053e6a5eece6a30873d05da7b (diff) |
[haddock @ 2002-07-19 09:59:02 by simonmar]
Allow special id's ([], (), etc.) to be used in an import declarations.
Diffstat (limited to 'src/HaddockHtml.hs')
-rw-r--r-- | src/HaddockHtml.hs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/HaddockHtml.hs b/src/HaddockHtml.hs index 3d5a4c95..bfe19114 100644 --- a/src/HaddockHtml.hs +++ b/src/HaddockHtml.hs @@ -756,8 +756,8 @@ ppHsAType (HsTyTuple True l) = parenList . map ppHsType $ l ppHsAType (HsTyTuple False l) = ubxParenList . map ppHsType $ l ppHsAType (HsTyVar name) = ppHsName name ppHsAType (HsTyCon name) - | name == fun_tycon_name = parens $ ppHsQName name - | otherwise = ppHsQName name + | name == fun_tycon_qname = parens $ ppHsQName name + | otherwise = ppHsQName name ppHsAType (HsTyApp (HsTyCon (Qual _ (HsTyClsName (HsSpecial "[]")))) b ) = brackets $ ppHsType b ppHsAType t = parens $ ppHsType t |