From 115cd3c85a8c38f1fe2a10d4ee515f92c96dd5a2 Mon Sep 17 00:00:00 2001 From: Joachim Breitner Date: Wed, 10 Mar 2021 15:28:48 -0500 Subject: Use GHC2021 as default language --- testsuite/tests/rename/should_compile/T1972.hs | 1 + testsuite/tests/rename/should_compile/T1972.stderr | 12 ++++++------ testsuite/tests/rename/should_compile/T4003A.hs-boot | 1 + testsuite/tests/rename/should_compile/T4003B.hs | 2 +- 4 files changed, 9 insertions(+), 7 deletions(-) (limited to 'testsuite/tests/rename/should_compile') 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 -- cgit v1.2.1