summaryrefslogtreecommitdiff
path: root/testsuite/tests/rename/should_compile
diff options
context:
space:
mode:
authorAdam Gundry <adam@well-typed.com>2023-01-10 21:03:48 +0000
committerMarge Bot <ben+marge-bot@smart-cactus.org>2023-03-24 02:36:09 -0400
commitf932c5890ec358aa0cbba547eb6982168e13da37 (patch)
tree62c27ed44eb43b7ed8f55af7ea0325cbcb3cfe14 /testsuite/tests/rename/should_compile
parente1c8c41d62854553d889403d8ee52d120c26bc66 (diff)
downloadhaskell-f932c5890ec358aa0cbba547eb6982168e13da37.tar.gz
Allow WARNING pragmas to be controlled with custom categories
Closes #17209. This implements GHC Proposal 541, allowing a WARNING pragma to be annotated with a category like so: {-# WARNING in "x-partial" head "This function is undefined on empty lists." #-} The user can then enable, disable and set the severity of such warnings using command-line flags `-Wx-partial`, `-Werror=x-partial` and so on. There is a new warning group `-Wextended-warnings` containing all these warnings. Warnings without a category are treated as if the category was `deprecations`, and are (still) controlled by the flags `-Wdeprecations` and `-Wwarnings-deprecations`. Updates Haddock submodule.
Diffstat (limited to 'testsuite/tests/rename/should_compile')
-rw-r--r--testsuite/tests/rename/should_compile/T5867.stderr4
-rw-r--r--testsuite/tests/rename/should_compile/rn050.stderr4
-rw-r--r--testsuite/tests/rename/should_compile/rn066.stderr4
3 files changed, 6 insertions, 6 deletions
diff --git a/testsuite/tests/rename/should_compile/T5867.stderr b/testsuite/tests/rename/should_compile/T5867.stderr
index 9bef44b1d0..481517f7a6 100644
--- a/testsuite/tests/rename/should_compile/T5867.stderr
+++ b/testsuite/tests/rename/should_compile/T5867.stderr
@@ -1,8 +1,8 @@
-T5867.hs:4:7: warning: [GHC-68441] [-Wdeprecations (in -Wdefault)]
+T5867.hs:4:7: warning: [GHC-68441] [-Wdeprecations (in -Wextended-warnings)]
In the use of ‘f’ (imported from T5867a):
Deprecated: "Don't use f!"
-T5867.hs:5:7: warning: [GHC-68441] [-Wdeprecations (in -Wdefault)]
+T5867.hs:5:7: warning: [GHC-68441] [-Wdeprecations (in -Wextended-warnings)]
In the use of ‘f’ (imported from T5867a):
Deprecated: "Don't use f!"
diff --git a/testsuite/tests/rename/should_compile/rn050.stderr b/testsuite/tests/rename/should_compile/rn050.stderr
index 7eb3badaa3..4c741b82ab 100644
--- a/testsuite/tests/rename/should_compile/rn050.stderr
+++ b/testsuite/tests/rename/should_compile/rn050.stderr
@@ -1,8 +1,8 @@
-rn050.hs:13:7: warning: [GHC-68441] [-Wdeprecations (in -Wdefault)]
+rn050.hs:13:7: warning: [GHC-68441] [-Wdeprecations (in -Wextended-warnings)]
In the use of ‘op’ (imported from Rn050_A):
Deprecated: "Use bop instead"
-rn050.hs:13:10: warning: [GHC-68441] [-Wdeprecations (in -Wdefault)]
+rn050.hs:13:10: warning: [GHC-68441] [-Wdeprecations (in -Wextended-warnings)]
In the use of data constructor ‘C’ (imported from Rn050_A):
Deprecated: "Use D instead"
diff --git a/testsuite/tests/rename/should_compile/rn066.stderr b/testsuite/tests/rename/should_compile/rn066.stderr
index ff29113bd8..029ebb9d0d 100644
--- a/testsuite/tests/rename/should_compile/rn066.stderr
+++ b/testsuite/tests/rename/should_compile/rn066.stderr
@@ -1,8 +1,8 @@
-rn066.hs:13:7: warning: [GHC-63394] [-Wdeprecations (in -Wdefault)]
+rn066.hs:13:7: warning: [GHC-63394] [-Wdeprecations (in -Wextended-warnings)]
In the use of ‘op’ (imported from Rn066_A):
"Is that really a good idea?"
-rn066.hs:13:10: warning: [GHC-63394] [-Wdeprecations (in -Wdefault)]
+rn066.hs:13:10: warning: [GHC-63394] [-Wdeprecations (in -Wextended-warnings)]
In the use of data constructor ‘C’ (imported from Rn066_A):
"Are you sure you want to do that?"