summaryrefslogtreecommitdiff
path: root/testsuite/tests/rename
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite/tests/rename')
-rw-r--r--testsuite/tests/rename/prog002/rename.prog002.stderr4
-rw-r--r--testsuite/tests/rename/should_compile/T1789.stderr2
-rw-r--r--testsuite/tests/rename/should_compile/T4489.stderr2
-rw-r--r--testsuite/tests/rename/should_compile/T7167.stderr4
-rw-r--r--testsuite/tests/rename/should_fail/T10668.stderr17
-rw-r--r--testsuite/tests/rename/should_fail/T11071.stderr29
-rw-r--r--testsuite/tests/rename/should_fail/T11071a.stderr18
-rw-r--r--testsuite/tests/rename/should_fail/T15607.stderr4
-rw-r--r--testsuite/tests/rename/should_fail/T19843h.stderr4
-rw-r--r--testsuite/tests/rename/should_fail/T19843i.stderr4
-rw-r--r--testsuite/tests/rename/should_fail/T19843j.stderr4
-rw-r--r--testsuite/tests/rename/should_fail/T5385.stderr17
-rw-r--r--testsuite/tests/rename/should_fail/T9006.stderr5
-rw-r--r--testsuite/tests/rename/should_fail/rnfail030.stderr4
-rw-r--r--testsuite/tests/rename/should_fail/rnfail031.stderr4
-rw-r--r--testsuite/tests/rename/should_fail/rnfail032.stderr4
-rw-r--r--testsuite/tests/rename/should_fail/rnfail033.stderr4
17 files changed, 69 insertions, 61 deletions
diff --git a/testsuite/tests/rename/prog002/rename.prog002.stderr b/testsuite/tests/rename/prog002/rename.prog002.stderr
index ed70237ce5..7b16027a19 100644
--- a/testsuite/tests/rename/prog002/rename.prog002.stderr
+++ b/testsuite/tests/rename/prog002/rename.prog002.stderr
@@ -2,5 +2,5 @@
rnfail037.hs:8:7: error: [GHC-76037]
Not in scope: data constructor ‘Rn037Help.C’
Suggested fix:
- Perhaps you want to remove ‘C’ from the explicit hiding list
- in the import of ‘Rn037Help’ (rnfail037.hs:4:1-28).
+ Remove ‘C’ from the explicit hiding list in the import of
+ ‘Rn037Help’ (at rnfail037.hs:4:1-28).
diff --git a/testsuite/tests/rename/should_compile/T1789.stderr b/testsuite/tests/rename/should_compile/T1789.stderr
index d15f0044a2..9941f21ec6 100644
--- a/testsuite/tests/rename/should_compile/T1789.stderr
+++ b/testsuite/tests/rename/should_compile/T1789.stderr
@@ -5,7 +5,7 @@ T1789.hs:6:1: warning: [-Wmissing-import-lists]
T1789.hs:7:1: warning: [-Wmissing-import-lists]
The module ‘Data.Map’ does not have an explicit import list
-T1789.hs:9:1: warning: [GHC-77037] [-Wmissing-import-lists]
+T1789.hs:9:20: warning: [GHC-77037] [-Wmissing-import-lists]
The import item ‘Maybe(..)’ does not have an explicit import list
T1789.hs:10:1: warning: [-Wmissing-import-lists]
diff --git a/testsuite/tests/rename/should_compile/T4489.stderr b/testsuite/tests/rename/should_compile/T4489.stderr
index 7e1bfbac38..b4ad5cd093 100644
--- a/testsuite/tests/rename/should_compile/T4489.stderr
+++ b/testsuite/tests/rename/should_compile/T4489.stderr
@@ -2,5 +2,5 @@
T4489.hs:4:1: warning: [-Wmissing-import-lists]
The module ‘Data.Maybe’ does not have an explicit import list
-T4489.hs:5:1: warning: [GHC-77037] [-Wmissing-import-lists]
+T4489.hs:5:20: warning: [GHC-77037] [-Wmissing-import-lists]
The import item ‘Maybe(..)’ does not have an explicit import list
diff --git a/testsuite/tests/rename/should_compile/T7167.stderr b/testsuite/tests/rename/should_compile/T7167.stderr
index 4da1c5283e..3d5943c997 100644
--- a/testsuite/tests/rename/should_compile/T7167.stderr
+++ b/testsuite/tests/rename/should_compile/T7167.stderr
@@ -1,3 +1,3 @@
-T7167.hs:6:1: warning: [-Wdodgy-imports (in -Wextra)]
- Module ‘Data.List’ does not export ‘foo’
+T7167.hs:6:26: warning: [GHC-61689] [-Wdodgy-imports (in -Wextra)]
+ Module ‘Data.List’ does not export ‘foo’.
diff --git a/testsuite/tests/rename/should_fail/T10668.stderr b/testsuite/tests/rename/should_fail/T10668.stderr
index 4e602b28b4..48d314719b 100644
--- a/testsuite/tests/rename/should_fail/T10668.stderr
+++ b/testsuite/tests/rename/should_fail/T10668.stderr
@@ -1,8 +1,11 @@
-T10668.hs:3:27: error:
- In module ‘Data.Type.Equality’:
- ‘Refl’ is a data constructor of ‘(:~:)’
- To import it use
- import Data.Type.Equality( (:~:)( Refl ) )
- or
- import Data.Type.Equality( (:~:)(..) )
+T10668.hs:3:27: error: [GHC-35373]
+ In the import of ‘Data.Type.Equality’:
+ an item called ‘Refl’
+ is exported, but it is a data constructor of
+ ‘(:~:)’.
+ Suggested fix:
+ Use
+ import Data.Type.Equality ( (:~:)( Refl ) )
+ or
+ import Data.Type.Equality ( (:~:)(..) )
diff --git a/testsuite/tests/rename/should_fail/T11071.stderr b/testsuite/tests/rename/should_fail/T11071.stderr
index ceb215ddb6..efe9501a95 100644
--- a/testsuite/tests/rename/should_fail/T11071.stderr
+++ b/testsuite/tests/rename/should_fail/T11071.stderr
@@ -19,22 +19,22 @@ T11071.hs:22:12: error: [GHC-76037]
T11071.hs:23:12: error: [GHC-76037]
Not in scope: ‘Data.List.sort’
Suggested fix:
- Perhaps you want to add ‘sort’ to the import list in the import of
- ‘Data.List’ (T11071.hs:3:1-24).
+ Add ‘sort’ to the import list in the import of ‘Data.List’
+ (at T11071.hs:3:1-24).
T11071.hs:24:12: error: [GHC-76037]
Not in scope: ‘Data.List.unlines’
Suggested fixes:
• Perhaps use ‘Data.List.lines’ (imported from Data.List)
- • Perhaps you want to add ‘unlines’ to the import list
- in the import of ‘Data.List’ (T11071.hs:3:1-24).
+ • Add ‘unlines’ to the import list in the import of ‘Data.List’
+ (at T11071.hs:3:1-24).
T11071.hs:25:12: error: [GHC-76037]
Not in scope: ‘M.size’
Suggested fix:
- Perhaps you want to add ‘size’ to one of these import lists:
- ‘Data.IntMap’ (T11071.hs:5:1-36)
- ‘Data.Map’ (T11071.hs:4:1-33)
+ Add ‘size’ to one of these import lists:
+ ‘Data.IntMap’ (at T11071.hs:5:1-36)
+ ‘Data.Map’ (at T11071.hs:4:1-33)
T11071.hs:26:12: error: [GHC-76037]
Not in scope: ‘M.valid’
@@ -42,19 +42,18 @@ T11071.hs:26:12: error: [GHC-76037]
• Perhaps use one of these:
‘M'.valid’ (imported from Data.Map),
‘M'.valid’ (imported from Data.Map)
- • Perhaps you want to add ‘valid’ to the import list
- in the import of ‘Data.Map’ (T11071.hs:4:1-33).
+ • Add ‘valid’ to the import list in the import of ‘Data.Map’
+ (at T11071.hs:4:1-33).
T11071.hs:27:12: error: [GHC-76037]
Not in scope: data constructor ‘Ord.Down’
Suggested fix:
- Perhaps you want to remove ‘Down’ from the explicit hiding list
- in the import of ‘Data.Ord’ (T11071.hs:8:1-46).
+ Remove ‘Down’ from the explicit hiding list in the import of
+ ‘Data.Ord’ (at T11071.hs:8:1-46).
T11071.hs:28:12: error: [GHC-76037]
Not in scope: ‘M'.size’
Suggested fix:
- Perhaps you want to remove ‘size’ from the hiding clauses
- in one of these imports:
- ‘Data.IntMap’ (T11071.hs:12:1-48)
- ‘Data.Map’ (T11071.hs:10:1-53)
+ Remove ‘size’ from the hiding clauses in one of these imports:
+ ‘Data.IntMap’ (at T11071.hs:12:1-48)
+ ‘Data.Map’ (at T11071.hs:10:1-53)
diff --git a/testsuite/tests/rename/should_fail/T11071a.stderr b/testsuite/tests/rename/should_fail/T11071a.stderr
index 6ab683b74b..631dd7291e 100644
--- a/testsuite/tests/rename/should_fail/T11071a.stderr
+++ b/testsuite/tests/rename/should_fail/T11071a.stderr
@@ -2,8 +2,8 @@
T11071a.hs:12:12: error: [GHC-88464]
Variable not in scope: intersperse
Suggested fix:
- Perhaps you want to add ‘intersperse’ to the import list
- in the import of ‘Data.List’ (T11071a.hs:3:1-24).
+ Add ‘intersperse’ to the import list in the import of ‘Data.List’
+ (at T11071a.hs:3:1-24).
T11071a.hs:13:12: error: [GHC-88464]
Variable not in scope: foldl'
@@ -11,20 +11,20 @@ T11071a.hs:13:12: error: [GHC-88464]
• Perhaps use one of these:
‘foldl’ (imported from Prelude), ‘foldl1’ (imported from Prelude),
‘foldr’ (imported from Prelude)
- • Perhaps you want to add ‘foldl'’ to one of these import lists:
- ‘Data.List’ (T11071a.hs:3:1-24)
- ‘Data.IntMap’ (T11071a.hs:4:1-21)
+ • Add ‘foldl'’ to one of these import lists:
+ ‘Data.List’ (at T11071a.hs:3:1-24)
+ ‘Data.IntMap’ (at T11071a.hs:4:1-21)
T11071a.hs:14:12: error: [GHC-88464]
Data constructor not in scope: Down
Suggested fix:
- Perhaps you want to remove ‘Down’ from the explicit hiding list
- in the import of ‘Data.Ord’ (T11071a.hs:5:1-29).
+ Remove ‘Down’ from the explicit hiding list in the import of
+ ‘Data.Ord’ (at T11071a.hs:5:1-29).
T11071a.hs:15:12: error: [GHC-88464]
Data constructor not in scope: True
Suggested fix:
- Perhaps you want to remove ‘True’ from the explicit hiding list
- in the import of ‘Prelude’ (T11071a.hs:6:1-28).
+ Remove ‘True’ from the explicit hiding list in the import of
+ ‘Prelude’ (at T11071a.hs:6:1-28).
T11071a.hs:16:12: error: [GHC-88464] Variable not in scope: foobar
diff --git a/testsuite/tests/rename/should_fail/T15607.stderr b/testsuite/tests/rename/should_fail/T15607.stderr
index b6bfed5e29..63d2f67e72 100644
--- a/testsuite/tests/rename/should_fail/T15607.stderr
+++ b/testsuite/tests/rename/should_fail/T15607.stderr
@@ -2,5 +2,5 @@
T15607.hs:6:10: error: [GHC-88464]
Variable not in scope: pure :: t0 -> t
Suggested fix:
- Perhaps you want to remove ‘pure’ from the explicit hiding list
- in the import of ‘Prelude’ (T15607.hs:4:1-36).
+ Remove ‘pure’ from the explicit hiding list in the import of
+ ‘Prelude’ (at T15607.hs:4:1-36).
diff --git a/testsuite/tests/rename/should_fail/T19843h.stderr b/testsuite/tests/rename/should_fail/T19843h.stderr
index 55d3fcdd96..a47a9fb92f 100644
--- a/testsuite/tests/rename/should_fail/T19843h.stderr
+++ b/testsuite/tests/rename/should_fail/T19843h.stderr
@@ -28,7 +28,7 @@ T19843h.hs:24:8: error: [GHC-39999]
• No instance for ‘GHC.Records.HasField "getAll" r0 a0’
arising from selecting the field ‘getAll’
Perhaps use record field of Alt ‘getAlt’ (imported from Data.Monoid)
- Perhaps you want to add ‘getAll’ to the import list
- in the import of ‘Data.Monoid’ (T19843h.hs:9:1-28).
+ Add ‘getAll’ to the import list in the import of ‘Data.Monoid’
+ (at T19843h.hs:9:1-28).
• In the expression: undefined.getAll
In an equation for ‘quur’: quur = undefined.getAll
diff --git a/testsuite/tests/rename/should_fail/T19843i.stderr b/testsuite/tests/rename/should_fail/T19843i.stderr
index d55bb16d66..178151fb6a 100644
--- a/testsuite/tests/rename/should_fail/T19843i.stderr
+++ b/testsuite/tests/rename/should_fail/T19843i.stderr
@@ -2,5 +2,5 @@
T19843i.hs:5:5: error: [GHC-76037]
Not in scope: ‘M.getSum’
Suggested fix:
- Perhaps you want to add ‘getSum’ to the import list
- in the import of ‘Data.Monoid’ (T19843i.hs:3:1-32).
+ Add ‘getSum’ to the import list in the import of ‘Data.Monoid’
+ (at T19843i.hs:3:1-32).
diff --git a/testsuite/tests/rename/should_fail/T19843j.stderr b/testsuite/tests/rename/should_fail/T19843j.stderr
index c7aa7058b9..114a607508 100644
--- a/testsuite/tests/rename/should_fail/T19843j.stderr
+++ b/testsuite/tests/rename/should_fail/T19843j.stderr
@@ -2,5 +2,5 @@
T19843j.hs:5:5: error: [GHC-88464]
Variable not in scope: guard
Suggested fix:
- Perhaps you want to add ‘guard’ to the import list in the import of
- ‘Control.Monad’ (T19843j.hs:3:1-31).
+ Add ‘guard’ to the import list in the import of ‘Control.Monad’
+ (at T19843j.hs:3:1-31).
diff --git a/testsuite/tests/rename/should_fail/T5385.stderr b/testsuite/tests/rename/should_fail/T5385.stderr
index dd825c6119..2cad188185 100644
--- a/testsuite/tests/rename/should_fail/T5385.stderr
+++ b/testsuite/tests/rename/should_fail/T5385.stderr
@@ -1,8 +1,11 @@
-T5385.hs:3:16: error:
- In module ‘T5385a’:
- ‘(:::)’ is a data constructor of ‘T’
- To import it use
- import T5385a( T( (:::) ) )
- or
- import T5385a( T(..) )
+T5385.hs:3:16: error: [GHC-35373]
+ In the import of ‘T5385a’:
+ an item called ‘(:::)’
+ is exported, but it is a data constructor of
+ ‘T’.
+ Suggested fix:
+ Use
+ import T5385a ( T( (:::) ) )
+ or
+ import T5385a ( T(..) )
diff --git a/testsuite/tests/rename/should_fail/T9006.stderr b/testsuite/tests/rename/should_fail/T9006.stderr
index dc82687453..4648a99ca9 100644
--- a/testsuite/tests/rename/should_fail/T9006.stderr
+++ b/testsuite/tests/rename/should_fail/T9006.stderr
@@ -1,2 +1,5 @@
-T9006.hs:3:16: Module ‘T9006a’ does not export ‘T(T)’
+T9006.hs:3:16: error: [GHC-10237]
+ In the import of ‘T9006a’:
+ an item called ‘T’ is exported, but it does not export any children
+ (constructors, class methods or field names) called ‘T’.
diff --git a/testsuite/tests/rename/should_fail/rnfail030.stderr b/testsuite/tests/rename/should_fail/rnfail030.stderr
index 705ea7fba2..a95501077d 100644
--- a/testsuite/tests/rename/should_fail/rnfail030.stderr
+++ b/testsuite/tests/rename/should_fail/rnfail030.stderr
@@ -2,5 +2,5 @@
rnfail030.hs:2:21: error: [GHC-76037]
Not in scope: ‘Data.List.map’
Suggested fix:
- Perhaps you want to add ‘map’ to the import list in the import of
- ‘Data.List’ (rnfail030.hs:3:1-19).
+ Add ‘map’ to the import list in the import of ‘Data.List’
+ (at rnfail030.hs:3:1-19).
diff --git a/testsuite/tests/rename/should_fail/rnfail031.stderr b/testsuite/tests/rename/should_fail/rnfail031.stderr
index 1f6d57d7a8..f947ecf15b 100644
--- a/testsuite/tests/rename/should_fail/rnfail031.stderr
+++ b/testsuite/tests/rename/should_fail/rnfail031.stderr
@@ -2,5 +2,5 @@
rnfail031.hs:2:21: error: [GHC-76037]
Not in scope: ‘Data.List.map’
Suggested fix:
- Perhaps you want to add ‘map’ to the import list in the import of
- ‘Data.List’ (rnfail031.hs:3:1-36).
+ Add ‘map’ to the import list in the import of ‘Data.List’
+ (at rnfail031.hs:3:1-36).
diff --git a/testsuite/tests/rename/should_fail/rnfail032.stderr b/testsuite/tests/rename/should_fail/rnfail032.stderr
index f05e4bc623..729f7722d4 100644
--- a/testsuite/tests/rename/should_fail/rnfail032.stderr
+++ b/testsuite/tests/rename/should_fail/rnfail032.stderr
@@ -6,5 +6,5 @@ rnfail032.hs:2:21: error: [GHC-76037]
‘Data.List.zip’ (imported from Data.List),
‘Data.List.or’ (imported from Data.List),
‘Data.List.all’ (imported from Data.List)
- • Perhaps you want to remove ‘map’ from the explicit hiding list
- in the import of ‘Data.List’ (rnfail032.hs:3:1-41).
+ • Remove ‘map’ from the explicit hiding list in the import of
+ ‘Data.List’ (at rnfail032.hs:3:1-41).
diff --git a/testsuite/tests/rename/should_fail/rnfail033.stderr b/testsuite/tests/rename/should_fail/rnfail033.stderr
index f16eb4ca2b..cacffa02b3 100644
--- a/testsuite/tests/rename/should_fail/rnfail033.stderr
+++ b/testsuite/tests/rename/should_fail/rnfail033.stderr
@@ -6,5 +6,5 @@ rnfail033.hs:2:21: error: [GHC-76037]
‘Data.List.zip’ (imported from Data.List),
‘Data.List.or’ (imported from Data.List),
‘Data.List.all’ (imported from Data.List)
- • Perhaps you want to remove ‘map’ from the explicit hiding list
- in the import of ‘Data.List’ (rnfail033.hs:3:1-31).
+ • Remove ‘map’ from the explicit hiding list in the import of
+ ‘Data.List’ (at rnfail033.hs:3:1-31).