summaryrefslogtreecommitdiff
path: root/compiler
diff options
context:
space:
mode:
Diffstat (limited to 'compiler')
-rw-r--r--compiler/GHC/Driver/Main.hs2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/GHC/Driver/Main.hs b/compiler/GHC/Driver/Main.hs
index 6cc61246b9..960b7d9c51 100644
--- a/compiler/GHC/Driver/Main.hs
+++ b/compiler/GHC/Driver/Main.hs
@@ -1160,7 +1160,7 @@ hscCheckSafe' m l = do
where
inferredImportWarn = unitBag
$ makeIntoWarning (Reason Opt_WarnInferredSafeImports)
- $ mkErrMsg dflags l (pkgQual dflags)
+ $ mkWarnMsg dflags l (pkgQual dflags)
$ sep
[ text "Importing Safe-Inferred module "
<> ppr (moduleName m)