diff --git a/hadrian/src/Settings/Warnings.hs b/hadrian/src/Settings/Warnings.hs index 37d63b5885ba4331549e8f73d199d80de41b3566..3b2c342770cb52ce0733f0d5c0671cbfef2c5e35 100644 --- a/hadrian/src/Settings/Warnings.hs +++ b/hadrian/src/Settings/Warnings.hs @@ -71,7 +71,12 @@ ghcWarningsArgs = do , package stm ? pure [ "-Wno-deriving-typeable" ] , package osString ? pure [ "-Wno-deriving-typeable" ] , package parsec ? pure [ "-Wno-deriving-typeable" ] - , package cabal ? pure [ "-Wno-deriving-typeable" ] + + , package cabal ? pure [ "-Wno-deriving-typeable", "-Wno-incomplete-record-selectors" ] + -- The -Wno-incomplete-record-selectors is due to + -- https://github.com/haskell/cabal/issues/10402 + -- If that ticket is fixed, bwe can remove the flag again + , package cabalSyntax ? pure [ "-Wno-deriving-typeable" ] , package time ? pure [ "-Wno-deriving-typeable" ] , package transformers ? pure [ "-Wno-unused-matches"