summaryrefslogtreecommitdiff
path: root/testsuite
diff options
context:
space:
mode:
authorBen Gamari <ben@smart-cactus.org>2016-05-10 11:02:19 +0200
committerBen Gamari <ben@smart-cactus.org>2016-05-10 12:02:14 +0200
commite996e85f003e783fc8f9af0da653cdd0058d9646 (patch)
treeadd1d4dd9f18ea6662c484a2c4116b99d0a53e2c /testsuite
parent53f26f5a45f146e1cc988bbcf76a362c877beaa2 (diff)
downloadhaskell-e996e85f003e783fc8f9af0da653cdd0058d9646.tar.gz
RdrHsSyn: Only suggest `type` qualification when appropriate
This suggestion only applies to operators.
Diffstat (limited to 'testsuite')
-rw-r--r--testsuite/tests/module/T11432.stderr4
-rw-r--r--testsuite/tests/module/T11432a.stderr2
-rw-r--r--testsuite/tests/module/T12026.stderr3
-rw-r--r--testsuite/tests/module/mod89.stderr3
4 files changed, 5 insertions, 7 deletions
diff --git a/testsuite/tests/module/T11432.stderr b/testsuite/tests/module/T11432.stderr
index 9e61092e37..61ccc7d960 100644
--- a/testsuite/tests/module/T11432.stderr
+++ b/testsuite/tests/module/T11432.stderr
@@ -1,4 +1,4 @@
T11432.hs:7:16: error:
- Expecting a type constructor but found a variable.
- If ‘-.->’ is a type constructor then enable ExplicitNamespaces and use the 'type' keyword.
+ Expecting a type constructor but found a variable, ‘-.->’.
+ If ‘-.->’ is a type constructor then enable ExplicitNamespaces and use the 'type' keyword.
diff --git a/testsuite/tests/module/T11432a.stderr b/testsuite/tests/module/T11432a.stderr
index 2542af3fe0..79d65257e6 100644
--- a/testsuite/tests/module/T11432a.stderr
+++ b/testsuite/tests/module/T11432a.stderr
@@ -1,4 +1,4 @@
T11432a.hs:7:17: error:
- Expecting a type constructor but found a variable.
+ Expecting a type constructor but found a variable, ‘-.->’.
If ‘-.->’ is a type constructor then enable ExplicitNamespaces and use the 'type' keyword.
diff --git a/testsuite/tests/module/T12026.stderr b/testsuite/tests/module/T12026.stderr
index 38d53d7049..cd93875dc2 100644
--- a/testsuite/tests/module/T12026.stderr
+++ b/testsuite/tests/module/T12026.stderr
@@ -1,4 +1,3 @@
T12026.hs:3:17: error:
- Expecting a type constructor but found a variable.
- If ‘map’ is a type constructor then enable ExplicitNamespaces and use the 'type' keyword.
+ Expecting a type constructor but found a variable, ‘map’.
diff --git a/testsuite/tests/module/mod89.stderr b/testsuite/tests/module/mod89.stderr
index afdc46466f..ef07a5ab8a 100644
--- a/testsuite/tests/module/mod89.stderr
+++ b/testsuite/tests/module/mod89.stderr
@@ -1,4 +1,3 @@
mod89.hs:5:16: error:
- Expecting a type constructor but found a variable.
- If ‘map’ is a type constructor then enable ExplicitNamespaces and use the 'type' keyword.
+ Expecting a type constructor but found a variable, ‘map’.