diff options
-rw-r--r-- | hadrian/src/Settings/Warnings.hs | 5 | ||||
-rw-r--r-- | mk/warnings.mk | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/hadrian/src/Settings/Warnings.hs b/hadrian/src/Settings/Warnings.hs index 29f9e3b968..457fa22083 100644 --- a/hadrian/src/Settings/Warnings.hs +++ b/hadrian/src/Settings/Warnings.hs @@ -51,4 +51,7 @@ ghcWarningsArgs = do , "-Wno-redundant-constraints" , "-Wno-orphans" ] , package win32 ? pure [ "-Wno-trustworthy-safe" ] - , package xhtml ? pure [ "-Wno-unused-imports" ] ] ] + , package xhtml ? pure [ "-Wno-unused-imports" ] ] + , mconcat + [ package cabal ? pure [ "-Wno-error=deprecations" ] ] + ] diff --git a/mk/warnings.mk b/mk/warnings.mk index e2116a332a..551f372d5c 100644 --- a/mk/warnings.mk +++ b/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 +# Due to deprecation warning +libraries/Cabal/Cabal_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 |