diff options
author | Matthew Pickering <matthewtpickering@gmail.com> | 2022-04-11 13:56:55 +0100 |
---|---|---|
committer | Marge Bot <ben+marge-bot@smart-cactus.org> | 2022-04-13 06:24:52 -0400 |
commit | a42dbc55ad1aff242c0b6b2b22188a25d588c8bf (patch) | |
tree | 13c93d1960c5ce1e36dd4052685207bd9fcbccc0 /compiler/GHC | |
parent | b06f4f470b6bbe296cc828f8698e9d55cca39d73 (diff) | |
download | haskell-a42dbc55ad1aff242c0b6b2b22188a25d588c8bf.tar.gz |
Refine warning about defining rules in SAFE modules
This change makes it clear that it's the definition rather than any
usage which is a problem, and that rules defined in other modules will
still be used to do rewrites.
Fixes #20923
Diffstat (limited to 'compiler/GHC')
-rw-r--r-- | compiler/GHC/Driver/Errors/Ppr.hs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/GHC/Driver/Errors/Ppr.hs b/compiler/GHC/Driver/Errors/Ppr.hs index 76a0ed15d3..8fe416196b 100644 --- a/compiler/GHC/Driver/Errors/Ppr.hs +++ b/compiler/GHC/Driver/Errors/Ppr.hs @@ -148,7 +148,7 @@ instance Diagnostic DriverMessage where DriverUserDefinedRuleIgnored (HsRule { rd_name = n }) -> mkSimpleDecorated $ text "Rule \"" <> ftext (snd $ unLoc n) <> text "\" ignored" $+$ - text "User defined rules are disabled under Safe Haskell" + text "Defining user rules is disabled under Safe Haskell" DriverMixedSafetyImport modName -> mkSimpleDecorated $ text "Module" <+> ppr modName <+> text ("is imported both as a safe and unsafe import!") |