[commit: ghc] wip/orf-reboot: Remove some redundant constraints (75de0c0)
git at git.haskell.org
git at git.haskell.org
Fri Mar 27 15:47:23 UTC 2015
Repository : ssh://git@git.haskell.org/ghc
On branch : wip/orf-reboot
Link : http://ghc.haskell.org/trac/ghc/changeset/75de0c0d15372965d9a613fb0b53fb2be832d843/ghc
>---------------------------------------------------------------
commit 75de0c0d15372965d9a613fb0b53fb2be832d843
Author: Adam Gundry <adam at well-typed.com>
Date: Fri Mar 27 13:37:57 2015 +0000
Remove some redundant constraints
>---------------------------------------------------------------
75de0c0d15372965d9a613fb0b53fb2be832d843
compiler/hsSyn/HsPat.hs | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/compiler/hsSyn/HsPat.hs b/compiler/hsSyn/HsPat.hs
index 54fb472..1a3d696 100644
--- a/compiler/hsSyn/HsPat.hs
+++ b/compiler/hsSyn/HsPat.hs
@@ -402,7 +402,7 @@ pprConArgs (PrefixCon pats) = sep (map pprParendLPat pats)
pprConArgs (InfixCon p1 p2) = sep [pprParendLPat p1, pprParendLPat p2]
pprConArgs (RecCon rpats) = ppr rpats
-instance (OutputableBndr id, Outputable arg)
+instance (Outputable arg)
=> Outputable (HsRecFields id arg) where
ppr (HsRecFields { rec_flds = flds, rec_dotdot = Nothing })
= braces (fsep (punctuate comma (map ppr flds)))
@@ -411,7 +411,7 @@ instance (OutputableBndr id, Outputable arg)
where
dotdot = ptext (sLit "..") <+> ifPprDebug (ppr (drop n flds))
-instance (OutputableBndr id, Outputable arg)
+instance (Outputable arg)
=> Outputable (HsRecField id arg) where
ppr (HsRecField { hsRecFieldLbl = f, hsRecFieldArg = arg,
hsRecPun = pun })
More information about the ghc-commits
mailing list