diff options
author | David Waern <davve@dtek.chalmers.se> | 2007-09-29 15:01:08 +0000 |
---|---|---|
committer | David Waern <davve@dtek.chalmers.se> | 2007-09-29 15:01:08 +0000 |
commit | 2285031a517df314f53f73813b6b4e0f9010063d (patch) | |
tree | 98ee75d1278ca60527726c30ab9ecf36aab687e7 /src | |
parent | 3f683df722c3c2b7aba70d15daf95593fd6be96d (diff) |
FIX: do not quote varsym type operators
Diffstat (limited to 'src')
-rw-r--r-- | src/Haddock/Backends/Html.hs | 2 | ||||
-rw-r--r-- | src/Haddock/GHC/Utils.hs | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/Haddock/Backends/Html.hs b/src/Haddock/Backends/Html.hs index 734f408e..b98032df 100644 --- a/src/Haddock/Backends/Html.hs +++ b/src/Haddock/Backends/Html.hs @@ -1243,7 +1243,7 @@ ppr_mono_ty ctxt_prec (HsOpTy ty1 op ty2) = maybeParen ctxt_prec pREC_OP $ ppr_mono_lty pREC_OP ty1 <+> ppr_op <+> ppr_mono_lty pREC_OP ty2 where - ppr_op = if not (isNameConSym name) then quote (ppLDocName op) else ppLDocName op + ppr_op = if not (isNameSym name) then quote (ppLDocName op) else ppLDocName op name = lDocLinkName op ppr_mono_ty ctxt_prec (HsParTy ty) diff --git a/src/Haddock/GHC/Utils.hs b/src/Haddock/GHC/Utils.hs index 5e8142e5..08eb4fb5 100644 --- a/src/Haddock/GHC/Utils.hs +++ b/src/Haddock/GHC/Utils.hs @@ -53,7 +53,7 @@ modulePkgStr = packageIdString . modulePackageId -- misc -isNameSym = isSymOcc . nameOccName +isNameSym n = isNameVarSym n || isNameConSym n isNameVarSym = isLexVarSym . occNameFS . nameOccName isNameConSym = isLexConSym . occNameFS . nameOccName |