summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon Peyton Jones <simonpj@microsoft.com>2022-11-03 17:28:27 +0000
committerSimon Peyton Jones <simonpj@microsoft.com>2022-11-10 12:21:14 +0000
commit399e921b05493d79f04e77806c1562806f118d4a (patch)
tree991e76587dd84d89e3e1838795eb3c67efd4ef28
parent2b3d0beec2668963c332b4490328aee256f07766 (diff)
downloadhaskell-wip/T21851.tar.gz
Fix DsUselessSpecialiseForClassMethodSelector msgwip/T21851
The error message for DsUselessSpecialiseForClassMethodSelector was just wrong (a typo in some earlier work); trivial fix
-rw-r--r--compiler/GHC/HsToCore/Errors/Ppr.hs2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/GHC/HsToCore/Errors/Ppr.hs b/compiler/GHC/HsToCore/Errors/Ppr.hs
index 4566460a0e..745f701d8f 100644
--- a/compiler/GHC/HsToCore/Errors/Ppr.hs
+++ b/compiler/GHC/HsToCore/Errors/Ppr.hs
@@ -86,7 +86,7 @@ instance Diagnostic DsMessage where
hang (text "Top-level" <+> text desc <+> text "aren't allowed:") 2 (ppr bind)
DsUselessSpecialiseForClassMethodSelector poly_id
-> mkSimpleDecorated $
- text "Ignoring useless SPECIALISE pragma for NOINLINE function:" <+> quotes (ppr poly_id)
+ text "Ignoring useless SPECIALISE pragma for class selector:" <+> quotes (ppr poly_id)
DsUselessSpecialiseForNoInlineFunction poly_id
-> mkSimpleDecorated $
text "Ignoring useless SPECIALISE pragma for NOINLINE function:" <+> quotes (ppr poly_id)