diff options
author | David Waern <david.waern@gmail.com> | 2007-11-11 00:29:27 +0000 |
---|---|---|
committer | David Waern <david.waern@gmail.com> | 2007-11-11 00:29:27 +0000 |
commit | 563918097f98e6eb6f6c57d3be3a0954d2655ee0 (patch) | |
tree | 5b59cf605ca70e9dd4c40fb2a4f2aaec5db2f0e4 /src | |
parent | 3cd9016f5263741a38b904d1dad474abff8c2f3e (diff) |
Remove lDocLinkName and its use in Html backend
Diffstat (limited to 'src')
-rw-r--r-- | src/Haddock/Backends/Html.hs | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/src/Haddock/Backends/Html.hs b/src/Haddock/Backends/Html.hs index a3c8470f..ab8fdce0 100644 --- a/src/Haddock/Backends/Html.hs +++ b/src/Haddock/Backends/Html.hs @@ -875,10 +875,6 @@ orig (L _ (NoLink name)) = name orig _ = error "orig" -lDocLinkName (L _ (NoLink name)) = name -lDocLinkName (L _ (Link name)) = name - - -- TODO: print contexts ppShortDataDecl :: Bool -> LinksInfo -> SrcSpan -> Maybe (HsDoc DocName) -> TyClDecl DocName -> Html @@ -1254,7 +1250,7 @@ ppr_mono_ty ctxt_prec (HsOpTy ty1 op ty2) ppr_mono_lty pREC_OP ty1 <+> ppr_op <+> ppr_mono_lty pREC_OP ty2 where ppr_op = if not (isNameSym name) then quote (ppLDocName op) else ppLDocName op - name = lDocLinkName op + name = getName . unLoc $ op ppr_mono_ty ctxt_prec (HsParTy ty) = parens (ppr_mono_lty pREC_TOP ty) |