summaryrefslogtreecommitdiff
path: root/testsuite/tests/parser/should_fail
diff options
context:
space:
mode:
authorsheaf <sam.derbyshire@gmail.com>2022-01-17 10:45:35 +0100
committersheaf <sam.derbyshire@gmail.com>2022-01-17 14:52:50 +0000
commitf161e890dfd41fd9735f4e259fffe2ce6d00ec1a (patch)
treee6c54b25f3cbb87458dea92c04e23993997e3746 /testsuite/tests/parser/should_fail
parenta13aff98cfccddee285b6550dd08c6ec1a3c4e17 (diff)
downloadhaskell-f161e890dfd41fd9735f4e259fffe2ce6d00ec1a.tar.gz
Use diagnostic infrastructure in GHC.Tc.Errors
Diffstat (limited to 'testsuite/tests/parser/should_fail')
-rw-r--r--testsuite/tests/parser/should_fail/T17045.stderr5
-rw-r--r--testsuite/tests/parser/should_fail/T8501c.stderr8
-rw-r--r--testsuite/tests/parser/should_fail/readFail001.stderr8
3 files changed, 13 insertions, 8 deletions
diff --git a/testsuite/tests/parser/should_fail/T17045.stderr b/testsuite/tests/parser/should_fail/T17045.stderr
index fdcf4422ea..e67ac82f5e 100644
--- a/testsuite/tests/parser/should_fail/T17045.stderr
+++ b/testsuite/tests/parser/should_fail/T17045.stderr
@@ -1,5 +1,6 @@
T17045.hs:7:11: error:
Not in scope: type constructor or class ‘String’
- Perhaps you want to add ‘String’ to the import list
- in the import of ‘Prelude’ (T17045.hs:5:1-27).
+ Suggested fix:
+ Perhaps you want to add ‘String’ to the import list
+ in the import of ‘Prelude’ (T17045.hs:5:1-27).
diff --git a/testsuite/tests/parser/should_fail/T8501c.stderr b/testsuite/tests/parser/should_fail/T8501c.stderr
index 3b02432822..20975c3c19 100644
--- a/testsuite/tests/parser/should_fail/T8501c.stderr
+++ b/testsuite/tests/parser/should_fail/T8501c.stderr
@@ -1,6 +1,6 @@
T8501c.hs:4:7: error:
- • Variable not in scope:
- mdo :: (String -> IO ()) -> String -> IO ()
- • Perhaps you meant ‘mod’ (imported from Prelude)
- Perhaps you meant to use RecursiveDo
+ Variable not in scope: mdo :: (String -> IO ()) -> String -> IO ()
+ Suggested fixes:
+ • Perhaps use ‘mod’ (imported from Prelude)
+ • Perhaps you intended to use RecursiveDo
diff --git a/testsuite/tests/parser/should_fail/readFail001.stderr b/testsuite/tests/parser/should_fail/readFail001.stderr
index 6425d16c49..f8b3b7e81a 100644
--- a/testsuite/tests/parser/should_fail/readFail001.stderr
+++ b/testsuite/tests/parser/should_fail/readFail001.stderr
@@ -4,11 +4,15 @@ readFail001.hs:25:11: error:
readFail001.hs:38:32: error:
Not in scope: type constructor or class ‘Leaf’
- A data constructor of that name is in scope; did you mean DataKinds?
+ Suggested fix:
+ Perhaps you intended to use DataKinds
+ to refer to the data constructor of that name?
readFail001.hs:38:41: error:
Not in scope: type constructor or class ‘Leaf’
- A data constructor of that name is in scope; did you mean DataKinds?
+ Suggested fix:
+ Perhaps you intended to use DataKinds
+ to refer to the data constructor of that name?
readFail001.hs:107:30: error: Not in scope: data constructor ‘Foo’