diff options
author | Oleg Grenrus <oleg.grenrus@iki.fi> | 2021-01-24 15:29:37 +0200 |
---|---|---|
committer | Marge Bot <ben+marge-bot@smart-cactus.org> | 2021-04-01 00:39:28 -0400 |
commit | bddecda1a4c96da21e3f5211743ce5e4c78793a2 (patch) | |
tree | dca8990476f2c803df91c164f8169d1a40d8123d /testsuite/tests/rename | |
parent | 5192183f5f4df4e3c0b00346e633c5270ed16283 (diff) | |
download | haskell-bddecda1a4c96da21e3f5211743ce5e4c78793a2.tar.gz |
Data.List specialization to []
- Remove GHC.OldList
- Remove Data.OldList
- compat-unqualified-imports is no-op
- update haddock submodule
Diffstat (limited to 'testsuite/tests/rename')
-rw-r--r-- | testsuite/tests/rename/should_compile/T17244A.stderr | 5 | ||||
-rw-r--r-- | testsuite/tests/rename/should_compile/T17244C.stderr | 0 | ||||
-rw-r--r-- | testsuite/tests/rename/should_compile/T1972.stderr | 1 | ||||
-rw-r--r-- | testsuite/tests/rename/should_compile/T4478.hs | 4 | ||||
-rw-r--r-- | testsuite/tests/rename/should_compile/all.T | 2 | ||||
-rw-r--r-- | testsuite/tests/rename/should_fail/T17244A.hs (renamed from testsuite/tests/rename/should_compile/T17244A.hs) | 3 | ||||
-rw-r--r-- | testsuite/tests/rename/should_fail/T17244A.stderr | 10 | ||||
-rw-r--r-- | testsuite/tests/rename/should_fail/T17244C.hs (renamed from testsuite/tests/rename/should_compile/T17244C.hs) | 1 | ||||
-rw-r--r-- | testsuite/tests/rename/should_fail/T17244C.stderr | 10 | ||||
-rw-r--r-- | testsuite/tests/rename/should_fail/all.T | 2 | ||||
-rw-r--r-- | testsuite/tests/rename/should_fail/rnfail040.stderr | 1 |
11 files changed, 27 insertions, 12 deletions
diff --git a/testsuite/tests/rename/should_compile/T17244A.stderr b/testsuite/tests/rename/should_compile/T17244A.stderr deleted file mode 100644 index 621e9439f1..0000000000 --- a/testsuite/tests/rename/should_compile/T17244A.stderr +++ /dev/null @@ -1,5 +0,0 @@ - -T17244A.hs:6:8: warning: [-Wcompat-unqualified-imports (in -Wcompat)] - To ensure compatibility with future core libraries changes - imports to Data.List should be - either qualified or have an explicit import list. diff --git a/testsuite/tests/rename/should_compile/T17244C.stderr b/testsuite/tests/rename/should_compile/T17244C.stderr deleted file mode 100644 index e69de29bb2..0000000000 --- a/testsuite/tests/rename/should_compile/T17244C.stderr +++ /dev/null diff --git a/testsuite/tests/rename/should_compile/T1972.stderr b/testsuite/tests/rename/should_compile/T1972.stderr index 3311f0aded..779b2425ef 100644 --- a/testsuite/tests/rename/should_compile/T1972.stderr +++ b/testsuite/tests/rename/should_compile/T1972.stderr @@ -6,7 +6,6 @@ T1972.hs:13: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:8:19-27 - (and originally defined in ‘Data.Traversable’) defined at T1972.hs:17:1 T1972.hs:21:10: warning: [-Wunused-local-binds (in -Wextra, -Wunused-binds)] diff --git a/testsuite/tests/rename/should_compile/T4478.hs b/testsuite/tests/rename/should_compile/T4478.hs index 9e3fcee81a..ca6d8e5be0 100644 --- a/testsuite/tests/rename/should_compile/T4478.hs +++ b/testsuite/tests/rename/should_compile/T4478.hs @@ -2,7 +2,7 @@ -- We don't want to warn about duplicate exports for things exported -- by both "module" exports -module T4478 (module Prelude, module Data.List) where +module T4478 (module Prelude, module Data.Foldable) where import Prelude -import Data.List +import Data.Foldable diff --git a/testsuite/tests/rename/should_compile/all.T b/testsuite/tests/rename/should_compile/all.T index 71d631e499..92464ca55b 100644 --- a/testsuite/tests/rename/should_compile/all.T +++ b/testsuite/tests/rename/should_compile/all.T @@ -169,9 +169,7 @@ test('T15798b', normal, compile, ['']) test('T15798c', normal, compile, ['']) test('T16116a', normal, compile, ['']) test('T15957', normal, compile, ['-Werror -Wredundant-record-wildcards -Wunused-record-wildcards']) -test('T17244A', normal, compile, ['-Wno-error=compat-unqualified-imports']) test('T17244B', normal, compile, ['']) -test('T17244C', normal, compile, ['']) test('T17832', [], multimod_compile, ['T17832M1', 'T17832M2']) test('T17837', normal, compile, ['']) test('T18497', [], makefile_test, ['T18497']) diff --git a/testsuite/tests/rename/should_compile/T17244A.hs b/testsuite/tests/rename/should_fail/T17244A.hs index 290120affd..e0152d95d2 100644 --- a/testsuite/tests/rename/should_compile/T17244A.hs +++ b/testsuite/tests/rename/should_fail/T17244A.hs @@ -2,7 +2,8 @@ module T17244A (hello) where --- This should warn with -Wcompat-unqualified-imports. +-- This should NOT warn with -Wcompat-unqualified-imports, +-- Instead this just fails. import Data.List hello :: [Int] -> Int diff --git a/testsuite/tests/rename/should_fail/T17244A.stderr b/testsuite/tests/rename/should_fail/T17244A.stderr new file mode 100644 index 0000000000..6286a71de2 --- /dev/null +++ b/testsuite/tests/rename/should_fail/T17244A.stderr @@ -0,0 +1,10 @@ + +T17244A.hs:10:9: error: + Ambiguous occurrence ‘sum’ + It could refer to + either ‘Prelude.sum’, + imported from ‘Prelude’ at T17244A.hs:3:8-14 + (and originally defined in ‘Data.Foldable’) + or ‘Data.List.sum’, + imported from ‘Data.List’ at T17244A.hs:7:1-16 + (and originally defined in ‘GHC.List’) diff --git a/testsuite/tests/rename/should_compile/T17244C.hs b/testsuite/tests/rename/should_fail/T17244C.hs index 3da92dddd6..e77ff39b61 100644 --- a/testsuite/tests/rename/should_compile/T17244C.hs +++ b/testsuite/tests/rename/should_fail/T17244C.hs @@ -3,6 +3,7 @@ module T17244C (hello) where -- This should not warn with -Wcompat-unqualified-imports. +-- But not his fails, as sum name clashes with Prelude import Data.List (sum) hello :: [Int] -> Int diff --git a/testsuite/tests/rename/should_fail/T17244C.stderr b/testsuite/tests/rename/should_fail/T17244C.stderr new file mode 100644 index 0000000000..71570a01bd --- /dev/null +++ b/testsuite/tests/rename/should_fail/T17244C.stderr @@ -0,0 +1,10 @@ + +T17244C.hs:10:9: error: + Ambiguous occurrence ‘sum’ + It could refer to + either ‘Prelude.sum’, + imported from ‘Prelude’ at T17244C.hs:3:8-14 + (and originally defined in ‘Data.Foldable’) + or ‘Data.List.sum’, + imported from ‘Data.List’ at T17244C.hs:7:19-21 + (and originally defined in ‘GHC.List’) diff --git a/testsuite/tests/rename/should_fail/all.T b/testsuite/tests/rename/should_fail/all.T index 833e2d88f3..475aef9c6c 100644 --- a/testsuite/tests/rename/should_fail/all.T +++ b/testsuite/tests/rename/should_fail/all.T @@ -155,6 +155,8 @@ test('T16385', normal, compile_fail, ['']) test('T16504', normal, compile_fail, ['']) test('T14548', normal, compile_fail, ['']) test('T16610', normal, compile_fail, ['']) +test('T17244A', normal, compile_fail, ['-Wno-error=compat-unqualified-imports']) +test('T17244C', normal, compile_fail, ['']) test('T17593', normal, compile_fail, ['']) test('T18021', normal, compile_fail, ['']) test('T18145', normal, compile_fail, ['']) diff --git a/testsuite/tests/rename/should_fail/rnfail040.stderr b/testsuite/tests/rename/should_fail/rnfail040.stderr index 33f2f8cba9..9cd16615e0 100644 --- a/testsuite/tests/rename/should_fail/rnfail040.stderr +++ b/testsuite/tests/rename/should_fail/rnfail040.stderr @@ -3,7 +3,6 @@ rnfail040.hs:7:12: error: Conflicting exports for ‘nub’: ‘module M’ exports ‘M.nub’ imported from ‘Data.List’ at rnfail040.hs:10:2-22 - (and originally defined in ‘base-4.13.0.0:Data.OldList’) ‘module M’ exports ‘T.nub’ imported from ‘Rnfail040_A’ at rnfail040.hs:11:2-24 (and originally defined at Rnfail040_A.hs:2:3-5) |