[Git][ghc/ghc][wip/romes/25330] Deprecation for WarnCompatUnqualifiedImports

Rodrigo Mesquita (@alt-romes) gitlab at gitlab.haskell.org
Thu Oct 3 12:49:38 UTC 2024



Rodrigo Mesquita pushed to branch wip/romes/25330 at Glasgow Haskell Compiler / GHC


Commits:
2e78a0ce by Rodrigo Mesquita at 2024-10-03T13:49:26+01:00
Deprecation for WarnCompatUnqualifiedImports

Fixes #25330

- - - - -


2 changed files:

- compiler/GHC/Driver/Flags.hs
- compiler/GHC/Driver/Session.hs


Changes:

=====================================
compiler/GHC/Driver/Flags.hs
=====================================
@@ -1370,8 +1370,7 @@ minusWeverythingOpts = [ toEnum 0 .. ]
 -- code future compatible to fix issues before they even generate warnings.
 minusWcompatOpts :: [WarningFlag]
 minusWcompatOpts
-    = [ Opt_WarnCompatUnqualifiedImports
-      , Opt_WarnImplicitRhsQuantification
+    = [ Opt_WarnImplicitRhsQuantification
       , Opt_WarnDeprecatedTypeAbstractions
       ]
 


=====================================
compiler/GHC/Driver/Session.hs
=====================================
@@ -2328,7 +2328,8 @@ wWarningFlagsDeps = [minBound..maxBound] >>= \x -> case x of
   Opt_WarnPartialFields -> warnSpec x
   Opt_WarnPrepositiveQualifiedModule -> warnSpec x
   Opt_WarnUnusedPackages -> warnSpec x
-  Opt_WarnCompatUnqualifiedImports -> warnSpec x
+  Opt_WarnCompatUnqualifiedImports ->
+    depWarnSpec x "This warning no longer does anything; see GHC #24904"
   Opt_WarnInvalidHaddock -> warnSpec x
   Opt_WarnOperatorWhitespaceExtConflict -> warnSpec x
   Opt_WarnOperatorWhitespace -> warnSpec x



View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/2e78a0cecd6cf471561728ade2f7bc3b1fbbd426

-- 
View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/2e78a0cecd6cf471561728ade2f7bc3b1fbbd426
You're receiving this email because of your account on gitlab.haskell.org.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.haskell.org/pipermail/ghc-commits/attachments/20241003/c553aa45/attachment-0001.html>


More information about the ghc-commits mailing list