summaryrefslogtreecommitdiff
path: root/compiler/GHC/Tc/Errors.hs
diff options
context:
space:
mode:
authorCarrieMY <carrie.xmy@gmail.com>2021-07-25 12:20:13 +0800
committerMarge Bot <ben+marge-bot@smart-cactus.org>2021-07-28 13:20:17 -0400
commit7dc0dc9962e90ca8dcd01c547adab4f7c43d6090 (patch)
treeb95d911ea5c224a3b19f5f8100d044201f47cb11 /compiler/GHC/Tc/Errors.hs
parent91eb18570fae4e1982e660f6dcb4f7b69de58cf2 (diff)
downloadhaskell-7dc0dc9962e90ca8dcd01c547adab4f7c43d6090.tar.gz
Fix type check error message grammar (fixes #20122)
Remove trailing spaces
Diffstat (limited to 'compiler/GHC/Tc/Errors.hs')
-rw-r--r--compiler/GHC/Tc/Errors.hs4
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler/GHC/Tc/Errors.hs b/compiler/GHC/Tc/Errors.hs
index 766b88408d..a504fd44ea 100644
--- a/compiler/GHC/Tc/Errors.hs
+++ b/compiler/GHC/Tc/Errors.hs
@@ -2522,8 +2522,8 @@ mk_dict_err ctxt@(CEC {cec_encl = implics}) (ct, (matches, unifiers, unsafe_over
= vcat [ ppWhen lead_with_ambig $
text "Probable fix: use a type annotation to specify what"
<+> pprQuotedList ambig_tvs <+> text "should be."
- , text "These potential instance" <> plural unifiers
- <+> text "exist:"]
+ , thisOrThese unifiers <+> text "potential instance" <> plural unifiers
+ <+> text "exist" <> singular unifiers <> text ":"]
mb_patsyn_prov :: Maybe SDoc
mb_patsyn_prov