[commit: ghc] ghc-8.0: Remove -Wredundant-superclasses from standard warnings (57bce48)

git at git.haskell.org git at git.haskell.org
Mon Jan 25 15:57:37 UTC 2016


Repository : ssh://git@git.haskell.org/ghc

On branch  : ghc-8.0
Link       : http://ghc.haskell.org/trac/ghc/changeset/57bce48fccc3e8034767dff0d308f88ecbb907ec/ghc

>---------------------------------------------------------------

commit 57bce48fccc3e8034767dff0d308f88ecbb907ec
Author: Ben Gamari <ben at smart-cactus.org>
Date:   Sat Jan 23 18:40:33 2016 +0100

    Remove -Wredundant-superclasses from standard warnings
    
    It is impossible to write warning-free code under the three-release
    policy with this flag enabled by default. See #11370 for details.
    
    (cherry picked from commit 8e9a87025f954a2704850bc71cb497f768d5d595)


>---------------------------------------------------------------

57bce48fccc3e8034767dff0d308f88ecbb907ec
 compiler/main/DynFlags.hs                             | 1 -
 testsuite/tests/typecheck/should_compile/all.T        | 4 ++--
 testsuite/tests/typecheck/should_compile/tc056.stderr | 4 ----
 3 files changed, 2 insertions(+), 7 deletions(-)

diff --git a/compiler/main/DynFlags.hs b/compiler/main/DynFlags.hs
index 532ba6f..e9fed4b 100644
--- a/compiler/main/DynFlags.hs
+++ b/compiler/main/DynFlags.hs
@@ -3482,7 +3482,6 @@ standardWarnings -- see Note [Documenting warning flags]
         Opt_WarnTypedHoles,
         Opt_WarnPartialTypeSignatures,
         Opt_WarnUnrecognisedPragmas,
-        Opt_WarnRedundantConstraints,
         Opt_WarnDuplicateExports,
         Opt_WarnOverflowedLiterals,
         Opt_WarnEmptyEnumerations,
diff --git a/testsuite/tests/typecheck/should_compile/all.T b/testsuite/tests/typecheck/should_compile/all.T
index 7d7ec60..eb4f1fb 100644
--- a/testsuite/tests/typecheck/should_compile/all.T
+++ b/testsuite/tests/typecheck/should_compile/all.T
@@ -442,7 +442,7 @@ test('T9497c', normal, compile, ['-fdefer-type-errors -fno-warn-typed-holes'])
 test('T7643', normal, compile, [''])
 test('T9834', normal, compile, [''])
 test('T9892', normal, compile, [''])
-test('T9939', normal, compile, [''])
+test('T9939', normal, compile, ['-Wredundant-constraints'])
 test('T9973', normal, compile, [''])
 test('T9971', normal, compile, [''])
 test('T10031', normal, compile, [''])
@@ -475,7 +475,7 @@ test('T10564', normal, compile, [''])
 test('Vta1', normal, compile, [''])
 test('Vta2', normal, compile, [''])
 test('PushHRIf', normal, compile, [''])
-test('T10632', normal, compile, [''])
+test('T10632', normal, compile, ['-Wredundant-constraints'])
 test('T10642', normal, compile, [''])
 test('T10744', normal, compile, [''])
 test('update-existential', normal, compile, [''])
diff --git a/testsuite/tests/typecheck/should_compile/tc056.stderr b/testsuite/tests/typecheck/should_compile/tc056.stderr
index a6f7cd4..e69de29 100644
--- a/testsuite/tests/typecheck/should_compile/tc056.stderr
+++ b/testsuite/tests/typecheck/should_compile/tc056.stderr
@@ -1,4 +0,0 @@
-
-tc056.hs:16:10: Warning:
-    Redundant constraints: (Eq' a, Eq' a)
-    In the instance declaration for ‘Eq' [a]’



More information about the ghc-commits mailing list