diff options
author | Tom Ellis <tom-git@jaguarpaw.co.uk> | 2020-11-26 19:01:03 +0000 |
---|---|---|
committer | Tom Ellis <tom-git@jaguarpaw.co.uk> | 2020-12-19 10:18:55 +0000 |
commit | 32b6ebe8efd45a32ebe3696f32ac3d84a9e8e30c (patch) | |
tree | 8a6177969e315658e3b114875e97d07b69e5b424 /testsuite/tests/pmcheck | |
parent | 366b58858a773fe03d7b7ba93ba9d8287b901229 (diff) | |
download | haskell-32b6ebe8efd45a32ebe3696f32ac3d84a9e8e30c.tar.gz |
Add two warnings to -Wall
* -Wincomplete-uni-patterns
* -Wincomplete-record-updates
See https://gitlab.haskell.org/ghc/ghc/-/issues/15656
Diffstat (limited to 'testsuite/tests/pmcheck')
-rw-r--r-- | testsuite/tests/pmcheck/should_compile/T18572.hs | 2 | ||||
-rw-r--r-- | testsuite/tests/pmcheck/should_compile/T18572.stderr | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/testsuite/tests/pmcheck/should_compile/T18572.hs b/testsuite/tests/pmcheck/should_compile/T18572.hs index 9a0dd07201..df716f967a 100644 --- a/testsuite/tests/pmcheck/should_compile/T18572.hs +++ b/testsuite/tests/pmcheck/should_compile/T18572.hs @@ -1,4 +1,4 @@ -{-# OPTIONS_GHC -Wincomplete-uni-patterns -Wincomplete-patterns -fforce-recomp #-} +{-# OPTIONS_GHC -fforce-recomp #-} {-# LANGUAGE DataKinds, KindSignatures, GADTs #-} module T18572 where diff --git a/testsuite/tests/pmcheck/should_compile/T18572.stderr b/testsuite/tests/pmcheck/should_compile/T18572.stderr index a5d14d5c33..7fa14f7127 100644 --- a/testsuite/tests/pmcheck/should_compile/T18572.stderr +++ b/testsuite/tests/pmcheck/should_compile/T18572.stderr @@ -11,7 +11,7 @@ T18572.hs:12:1: warning: [-Woverlapping-patterns (in -Wdefault)] Pattern match is redundant In a pattern binding: STrue = ... -T18572.hs:12:1: warning: [-Wincomplete-uni-patterns] +T18572.hs:12:1: warning: [-Wincomplete-uni-patterns (in -Wall)] Pattern match(es) are non-exhaustive In a pattern binding: Patterns of type ‘SBool 'False’ not matched: SFalse |