[Git][ghc/ghc][wip/backports-9.8] hadrian: Accept unused imports in filepath

Ben Gamari (@bgamari) gitlab at gitlab.haskell.org
Wed Nov 20 14:00:38 UTC 2024



Ben Gamari pushed to branch wip/backports-9.8 at Glasgow Haskell Compiler / GHC


Commits:
1db0547d by Ben Gamari at 2024-11-20T08:59:37-05:00
hadrian: Accept unused imports in filepath

As noted in filepath#241 [1], `filepath-1.4.301.0` is not
`-Werror`-clean.

[1] https://github.com/haskell/filepath/issues/241

- - - - -


1 changed file:

- hadrian/src/Settings/Warnings.hs


Changes:

=====================================
hadrian/src/Settings/Warnings.hs
=====================================
@@ -26,6 +26,7 @@ ghcWarningsArgs = do
     mconcat
         [ stage0 ? mconcat
         [ libraryPackage       ? pure [ "-fno-warn-deprecated-flags" ]
+        , package filepath     ? pure [ "-fno-warn-unused-imports" ]
         , package terminfo     ? pure [ "-fno-warn-unused-imports" ]
         , package transformers ? pure [ "-fno-warn-unused-matches"
                                       , "-fno-warn-unused-imports" ] ]
@@ -38,6 +39,7 @@ ghcWarningsArgs = do
         , package directory    ? pure [ "-Wno-unused-imports"
                                       , "-Wno-deprecations" -- https://gitlab.haskell.org/ghc/ghc/-/issues/24240
                                       ]
+        , package filepath     ? pure [ "-fno-warn-unused-imports" ]
         , package ghc          ? pure [ "-Wcpp-undef"
                                       , "-Wincomplete-uni-patterns"
                                       , "-Wincomplete-record-updates"



View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/1db0547dadc60431d381fdbf2c70d40e5438da77

-- 
View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/1db0547dadc60431d381fdbf2c70d40e5438da77
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/20241120/f642882d/attachment.html>


More information about the ghc-commits mailing list