summaryrefslogtreecommitdiff
path: root/testsuite/tests/rename/should_compile
diff options
context:
space:
mode:
authorJoachim Breitner <mail@joachim-breitner.de>2021-03-10 15:28:48 -0500
committerBen Gamari <ben@smart-cactus.org>2021-03-10 16:58:50 -0500
commit115cd3c85a8c38f1fe2a10d4ee515f92c96dd5a2 (patch)
tree19214707fa15f127d05ae515c74cff7e85776a7c /testsuite/tests/rename/should_compile
parent30ccf9ed1f592531dac9f3d750278fac6303c3e4 (diff)
downloadhaskell-115cd3c85a8c38f1fe2a10d4ee515f92c96dd5a2.tar.gz
Use GHC2021 as default language
Diffstat (limited to 'testsuite/tests/rename/should_compile')
-rw-r--r--testsuite/tests/rename/should_compile/T1972.hs1
-rw-r--r--testsuite/tests/rename/should_compile/T1972.stderr12
-rw-r--r--testsuite/tests/rename/should_compile/T4003A.hs-boot1
-rw-r--r--testsuite/tests/rename/should_compile/T4003B.hs2
4 files changed, 9 insertions, 7 deletions
diff --git a/testsuite/tests/rename/should_compile/T1972.hs b/testsuite/tests/rename/should_compile/T1972.hs
index 7b6d7387c7..f4067cd1d5 100644
--- a/testsuite/tests/rename/should_compile/T1972.hs
+++ b/testsuite/tests/rename/should_compile/T1972.hs
@@ -1,3 +1,4 @@
+{-# LANGUAGE Haskell2010 #-}
{-# OPTIONS_GHC -fwarn-name-shadowing -fwarn-unused-binds #-}
-- #1972
diff --git a/testsuite/tests/rename/should_compile/T1972.stderr b/testsuite/tests/rename/should_compile/T1972.stderr
index 78f58b5415..3311f0aded 100644
--- a/testsuite/tests/rename/should_compile/T1972.stderr
+++ b/testsuite/tests/rename/should_compile/T1972.stderr
@@ -1,13 +1,13 @@
-T1972.hs:12:3: warning: [-Wname-shadowing (in -Wall)]
+T1972.hs:13:3: warning: [-Wname-shadowing (in -Wall)]
This binding for ‘name’ shadows the existing binding
- defined at T1972.hs:9:19
+ defined at T1972.hs:10:19
-T1972.hs:14:3: warning: [-Wname-shadowing (in -Wall)]
+T1972.hs:15:3: warning: [-Wname-shadowing (in -Wall)]
This binding for ‘mapAccumL’ shadows the existing bindings
- imported from ‘Data.List’ at T1972.hs:7:19-27
+ imported from ‘Data.List’ at T1972.hs:8:19-27
(and originally defined in ‘Data.Traversable’)
- defined at T1972.hs:16:1
+ defined at T1972.hs:17:1
-T1972.hs:20:10: warning: [-Wunused-local-binds (in -Wextra, -Wunused-binds)]
+T1972.hs:21:10: warning: [-Wunused-local-binds (in -Wextra, -Wunused-binds)]
Defined but not used: ‘c’
diff --git a/testsuite/tests/rename/should_compile/T4003A.hs-boot b/testsuite/tests/rename/should_compile/T4003A.hs-boot
index 04902ddc62..329fd32aef 100644
--- a/testsuite/tests/rename/should_compile/T4003A.hs-boot
+++ b/testsuite/tests/rename/should_compile/T4003A.hs-boot
@@ -1,3 +1,4 @@
+{-# LANGUAGE Haskell2010 #-}
module T4003A where
import Data.Data
diff --git a/testsuite/tests/rename/should_compile/T4003B.hs b/testsuite/tests/rename/should_compile/T4003B.hs
index 24ce2432a2..01c23b7597 100644
--- a/testsuite/tests/rename/should_compile/T4003B.hs
+++ b/testsuite/tests/rename/should_compile/T4003B.hs
@@ -1,4 +1,4 @@
-
+{-# LANGUAGE Haskell2010 #-}
{-# LANGUAGE DeriveDataTypeable #-}
module T4003B where