[commit: ghc] master: Remove -Wredundant-superclasses from standard warnings (8e9a870)
git at git.haskell.org
git at git.haskell.org
Sat Jan 23 20:28:10 UTC 2016
Repository : ssh://git@git.haskell.org/ghc
On branch : master
Link : http://ghc.haskell.org/trac/ghc/changeset/8e9a87025f954a2704850bc71cb497f768d5d595/ghc
>---------------------------------------------------------------
commit 8e9a87025f954a2704850bc71cb497f768d5d595
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.
>---------------------------------------------------------------
8e9a87025f954a2704850bc71cb497f768d5d595
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 ea0bc53..79406a7 100644
--- a/compiler/main/DynFlags.hs
+++ b/compiler/main/DynFlags.hs
@@ -3474,7 +3474,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