Skip to content

Commit 3d05a4e

Browse files
authored
Enable two warnings (#755)
because they will be part of -Wall in the future, see https://gitlab.haskell.org/ghc/ghc/-/issues/15656
1 parent 648fdb9 commit 3d05a4e

File tree

4 files changed

+5
-1
lines changed

4 files changed

+5
-1
lines changed

containers/containers.cabal

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ Library
3535
default-language: Haskell2010
3636
build-depends: base >= 4.6 && < 5, array >= 0.4.0.0, deepseq >= 1.2 && < 1.5
3737
hs-source-dirs: src
38-
ghc-options: -O2 -Wall
38+
ghc-options: -O2 -Wall -fwarn-incomplete-uni-patterns -fwarn-incomplete-record-updates
3939

4040
other-extensions: CPP, BangPatterns
4141

containers/src/Data/IntMap/Internal.hs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
#endif
1414

1515
{-# OPTIONS_HADDOCK not-home #-}
16+
{-# OPTIONS_GHC -fno-warn-incomplete-uni-patterns #-}
1617

1718
#include "containers.h"
1819

containers/src/Data/IntMap/Strict/Internal.hs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
{-# LANGUAGE BangPatterns #-}
33
{-# LANGUAGE PatternGuards #-}
44

5+
{-# OPTIONS_GHC -fno-warn-incomplete-uni-patterns #-}
6+
57
#include "containers.h"
68

79
-----------------------------------------------------------------------------

containers/src/Data/Sequence/Internal.hs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
{-# LANGUAGE PatternGuards #-}
1818

1919
{-# OPTIONS_HADDOCK not-home #-}
20+
{-# OPTIONS_GHC -fno-warn-incomplete-uni-patterns #-}
2021

2122
-----------------------------------------------------------------------------
2223
-- |

0 commit comments

Comments
 (0)