[Git][ghc/ghc][wip/backports] Disable -Wdeprecations for deepseq

Ben Gamari gitlab at gitlab.haskell.org
Thu Sep 24 22:37:53 UTC 2020



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


Commits:
9a4e02b5 by Ben Gamari at 2020-09-24T18:37:27-04:00
Disable -Wdeprecations for deepseq

Use to use of Data.Semigroup.Option for NFData instance.

- - - - -


2 changed files:

- hadrian/src/Settings/Warnings.hs
- mk/warnings.mk


Changes:

=====================================
hadrian/src/Settings/Warnings.hs
=====================================
@@ -31,6 +31,7 @@ ghcWarningsArgs = do
         , package bytestring   ? pure [ "-Wno-inline-rule-shadowing" ]
         , package compiler     ? pure [ "-Wcpp-undef" ]
         , package directory    ? pure [ "-Wno-unused-imports" ]
+        , package deepseq      ? pure [ "-Wno-deprecations" ]
         , package ghc          ? pure [ "-Wcpp-undef"
                                       , "-Wincomplete-uni-patterns"
                                       , "-Wincomplete-record-updates"


=====================================
mk/warnings.mk
=====================================
@@ -80,6 +80,8 @@ libraries/haskeline_dist-install_EXTRA_HC_OPTS += -Wno-unused-imports
 libraries/haskeline_dist-install_EXTRA_HC_OPTS += -Wno-redundant-constraints
 libraries/haskeline_dist-install_EXTRA_HC_OPTS += -Wno-simplifiable-class-constraints
 
+# temporarily turn off deprecations in deepseq due to NFData Option instance.
+libraries/deepseq_dist-install_EXTRA_HC_OPTS += -Wno-deprecations
 
 # temporarily turn off unused-imports warnings for pretty
 libraries/pretty_dist-install_EXTRA_HC_OPTS += -Wno-unused-imports



View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/9a4e02b5950c6cd10b13a16111969ff349e7aa86

-- 
View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/9a4e02b5950c6cd10b13a16111969ff349e7aa86
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/20200924/835edecf/attachment.html>


More information about the ghc-commits mailing list