summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEdward <edward@correctsoftware.co>2021-07-03 15:16:01 +0100
committerMarge Bot <ben+marge-bot@smart-cactus.org>2021-07-06 13:38:42 -0400
commit1709111472f966f6e571227b035e749f953535a2 (patch)
treea7f615466d23175ed3d7b21a8ef83a9d9eaeba7b
parent354ac99de09ce2b08bf81a704a304c25957ad5c4 (diff)
downloadhaskell-1709111472f966f6e571227b035e749f953535a2.tar.gz
Fix issue 20038 - Change 'variable' -> 'variables'
-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>