summaryrefslogtreecommitdiff
path: root/compiler/GHC/Hs/Decls.hs
diff options
context:
space:
mode:
Diffstat (limited to 'compiler/GHC/Hs/Decls.hs')
-rw-r--r--compiler/GHC/Hs/Decls.hs12
1 files changed, 1 insertions, 11 deletions
diff --git a/compiler/GHC/Hs/Decls.hs b/compiler/GHC/Hs/Decls.hs
index 9f3f6469e5..9f7b278ef3 100644
--- a/compiler/GHC/Hs/Decls.hs
+++ b/compiler/GHC/Hs/Decls.hs
@@ -810,17 +810,7 @@ pprHsFamInstLHS :: (OutputableBndrId p)
pprHsFamInstLHS thing bndrs typats fixity mb_ctxt
= hsep [ pprHsOuterFamEqnTyVarBndrs bndrs
, pprLHsContext mb_ctxt
- , pp_pats typats ]
- where
- pp_pats (patl:patr:pats)
- | Infix <- fixity
- = let pp_op_app = hsep [ ppr patl, pprInfixOcc thing, ppr patr ] in
- case pats of
- [] -> pp_op_app
- _ -> hsep (parens pp_op_app : map ppr pats)
-
- pp_pats pats = hsep [ pprPrefixOcc thing
- , hsep (map ppr pats)]
+ , pprHsArgsApp thing fixity typats ]
instance OutputableBndrId p
=> Outputable (ClsInstDecl (GhcPass p)) where