summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--compiler/GHC/Parser/Errors/Ppr.hs2
-rw-r--r--testsuite/tests/module/mod98.stderr2
-rw-r--r--testsuite/tests/parser/should_fail/T3811.stderr2
-rw-r--r--testsuite/tests/parser/should_fail/readFail031.stderr2
4 files changed, 4 insertions, 4 deletions
diff --git a/compiler/GHC/Parser/Errors/Ppr.hs b/compiler/GHC/Parser/Errors/Ppr.hs
index 0c35b4290f..b349f310e2 100644
--- a/compiler/GHC/Parser/Errors/Ppr.hs
+++ b/compiler/GHC/Parser/Errors/Ppr.hs
@@ -486,7 +486,7 @@ instance Diagnostic PsMessage where
| pattern_RDR `looks_like` lhs
= "Perhaps you meant to use PatternSynonyms?"
| otherwise
- = "Should be of form <variable> :: <type>"
+ = "Should be of form <variables> :: <type>"
-- A common error is to forget the ForeignFunctionInterface flag
-- so check for that, and suggest. cf #3805
diff --git a/testsuite/tests/module/mod98.stderr b/testsuite/tests/module/mod98.stderr
index 0cfe7fc7eb..b104cdae72 100644
--- a/testsuite/tests/module/mod98.stderr
+++ b/testsuite/tests/module/mod98.stderr
@@ -1,4 +1,4 @@
mod98.hs:3:1: error:
Invalid type signature: M.x :: ...
- Should be of form <variable> :: <type>
+ Should be of form <variables> :: <type>
diff --git a/testsuite/tests/parser/should_fail/T3811.stderr b/testsuite/tests/parser/should_fail/T3811.stderr
index f38556cf7c..90810949ed 100644
--- a/testsuite/tests/parser/should_fail/T3811.stderr
+++ b/testsuite/tests/parser/should_fail/T3811.stderr
@@ -1,4 +1,4 @@
T3811.hs:4:1: error:
Invalid type signature: f x :: ...
- Should be of form <variable> :: <type>
+ Should be of form <variables> :: <type>
diff --git a/testsuite/tests/parser/should_fail/readFail031.stderr b/testsuite/tests/parser/should_fail/readFail031.stderr
index 75c2b879a4..5239948bf8 100644
--- a/testsuite/tests/parser/should_fail/readFail031.stderr
+++ b/testsuite/tests/parser/should_fail/readFail031.stderr
@@ -1,4 +1,4 @@
readFail031.hs:4:3: error:
Invalid type signature: (:+) :: ...
- Should be of form <variable> :: <type>
+ Should be of form <variables> :: <type>