diff options
| author | Tom Ellis <tom.ellis@microsoft.com> | 2019-12-02 11:06:11 +0000 |
|---|---|---|
| committer | tomjaguarpaw1 <tom-github.com@jaguarpaw.co.uk> | 2020-01-27 12:30:46 -0500 |
| commit | 4bada77d5882974514d85d4bd0fd4e1801dad755 (patch) | |
| tree | f429f57d48400892ad0a5c91bb2e03f9115c2c5a /compiler/simplCore | |
| parent | 97d0b0a367e4c6a52a17c3299439ac7de129da24 (diff) | |
| download | haskell-4bada77d5882974514d85d4bd0fd4e1801dad755.tar.gz | |
Disable two warnings for files that trigger them
incomplete-uni-patterns and incomplete-record-updates will be in -Wall at a
future date, so prepare for that by disabling those warnings on files that
trigger them.
Diffstat (limited to 'compiler/simplCore')
| -rw-r--r-- | compiler/simplCore/CSE.hs | 3 | ||||
| -rw-r--r-- | compiler/simplCore/CoreMonad.hs | 2 | ||||
| -rw-r--r-- | compiler/simplCore/FloatIn.hs | 1 | ||||
| -rw-r--r-- | compiler/simplCore/OccurAnal.hs | 2 | ||||
| -rw-r--r-- | compiler/simplCore/SetLevels.hs | 2 | ||||
| -rw-r--r-- | compiler/simplCore/Simplify.hs | 1 |
6 files changed, 11 insertions, 0 deletions
diff --git a/compiler/simplCore/CSE.hs b/compiler/simplCore/CSE.hs index 70e530c294..9a0945e290 100644 --- a/compiler/simplCore/CSE.hs +++ b/compiler/simplCore/CSE.hs @@ -6,6 +6,9 @@ {-# LANGUAGE CPP #-} +{-# OPTIONS_GHC -Wno-incomplete-record-updates #-} +{-# OPTIONS_GHC -Wno-incomplete-uni-patterns #-} + module CSE (cseProgram, cseOneExpr) where #include "HsVersions.h" diff --git a/compiler/simplCore/CoreMonad.hs b/compiler/simplCore/CoreMonad.hs index 9832445b09..45ed5d19c1 100644 --- a/compiler/simplCore/CoreMonad.hs +++ b/compiler/simplCore/CoreMonad.hs @@ -7,6 +7,8 @@ {-# LANGUAGE CPP #-} {-# LANGUAGE DeriveFunctor #-} +{-# OPTIONS_GHC -Wno-incomplete-record-updates #-} + module CoreMonad ( -- * Configuration of the core-to-core passes CoreToDo(..), runWhen, runMaybe, diff --git a/compiler/simplCore/FloatIn.hs b/compiler/simplCore/FloatIn.hs index 216e848889..ab66a43a04 100644 --- a/compiler/simplCore/FloatIn.hs +++ b/compiler/simplCore/FloatIn.hs @@ -14,6 +14,7 @@ then discover that they aren't needed in the chosen branch. {-# LANGUAGE CPP #-} {-# OPTIONS_GHC -fprof-auto #-} +{-# OPTIONS_GHC -Wno-incomplete-uni-patterns #-} module FloatIn ( floatInwards ) where diff --git a/compiler/simplCore/OccurAnal.hs b/compiler/simplCore/OccurAnal.hs index f6300edef4..96ee9623c3 100644 --- a/compiler/simplCore/OccurAnal.hs +++ b/compiler/simplCore/OccurAnal.hs @@ -13,6 +13,8 @@ core expression with (hopefully) improved usage information. {-# LANGUAGE CPP, BangPatterns, MultiWayIf, ViewPatterns #-} +{-# OPTIONS_GHC -Wno-incomplete-record-updates #-} + module OccurAnal ( occurAnalysePgm, occurAnalyseExpr, occurAnalyseExpr_NoBinderSwap ) where diff --git a/compiler/simplCore/SetLevels.hs b/compiler/simplCore/SetLevels.hs index 84f7147195..7cf0b9d524 100644 --- a/compiler/simplCore/SetLevels.hs +++ b/compiler/simplCore/SetLevels.hs @@ -50,6 +50,8 @@ -} {-# LANGUAGE CPP, MultiWayIf #-} + +{-# OPTIONS_GHC -Wno-incomplete-uni-patterns #-} module SetLevels ( setLevels, diff --git a/compiler/simplCore/Simplify.hs b/compiler/simplCore/Simplify.hs index e9bce31a62..01d802c30b 100644 --- a/compiler/simplCore/Simplify.hs +++ b/compiler/simplCore/Simplify.hs @@ -6,6 +6,7 @@ {-# LANGUAGE CPP #-} +{-# OPTIONS_GHC -Wno-incomplete-record-updates #-} module Simplify ( simplTopBinds, simplExpr, simplRules ) where #include "HsVersions.h" |
