Skip to content

Commit 0de8459

Browse files
authored
Merge pull request #10743 from cabalism/deprecated/fwarn
Use newer warning flags
2 parents 682c54a + f47768a commit 0de8459

File tree

51 files changed

+65
-65
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

51 files changed

+65
-65
lines changed

Cabal-QuickCheck/src/Test/QuickCheck/Instances/Cabal.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{-# LANGUAGE CPP #-}
22
{-# LANGUAGE FlexibleInstances #-}
3-
{-# OPTIONS_GHC -fno-warn-orphans #-}
3+
{-# OPTIONS_GHC -Wno-orphans #-}
44
module Test.QuickCheck.Instances.Cabal () where
55

66
#if !MIN_VERSION_base(4,18,0)

Cabal-hooks/Cabal-hooks.cabal

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ library
3333
, containers >= 0.5.0.0 && < 0.8
3434
, transformers >= 0.5.6.0 && < 0.7
3535

36-
ghc-options: -Wall -fno-ignore-asserts -fwarn-tabs -fwarn-incomplete-uni-patterns -fwarn-incomplete-record-updates
36+
ghc-options: -Wall -fno-ignore-asserts -Wtabs -Wincomplete-uni-patterns -Wincomplete-record-updates
3737

3838
exposed-modules:
3939
Distribution.Simple.SetupHooks

Cabal-syntax/Cabal-syntax.cabal

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -48,10 +48,10 @@ library
4848
ghc-options:
4949
-Wall
5050
-fno-ignore-asserts
51-
-fwarn-tabs
52-
-fwarn-incomplete-uni-patterns
53-
-fwarn-incomplete-record-updates
54-
-fno-warn-unticked-promoted-constructors
51+
-Wtabs
52+
-Wincomplete-uni-patterns
53+
-Wincomplete-record-updates
54+
-Wno-unticked-promoted-constructors
5555

5656
if impl(ghc >= 8.0)
5757
ghc-options: -Wcompat -Wnoncanonical-monad-instances

Cabal-syntax/src/Distribution/PackageDescription/Configuration.hs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
-- -fno-warn-deprecations for use of Map.foldWithKey
2-
{-# OPTIONS_GHC -fno-warn-deprecations #-}
1+
-- -Wno-deprecations for use of Map.foldWithKey
2+
{-# OPTIONS_GHC -Wno-deprecations #-}
33

44
-----------------------------------------------------------------------------
55

Cabal-tests/tests/HackageTests.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
{-# LANGUAGE Rank2Types #-}
44
{-# LANGUAGE ScopedTypeVariables #-}
55
#if !MIN_VERSION_deepseq(1,4,0)
6-
{-# OPTIONS_GHC -fno-warn-orphans #-}
6+
{-# OPTIONS_GHC -Wno-orphans #-}
77
#endif
88

99
module Main where

Cabal-tests/tests/Test/Laws.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
{-# OPTIONS_GHC -fno-warn-missing-signatures #-}
1+
{-# OPTIONS_GHC -Wno-missing-signatures #-}
22
module Test.Laws where
33

44
import Prelude hiding (Num((+), (*)))

Cabal-tests/tests/UnitTests/Distribution/CabalSpecVersion.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
{-# OPTIONS_GHC -fno-warn-deprecations #-}
1+
{-# OPTIONS_GHC -Wno-deprecations #-}
22
module UnitTests.Distribution.CabalSpecVersion (tests) where
33

44
import Distribution.Compat.Prelude.Internal

Cabal-tests/tests/UnitTests/Distribution/Compat/Graph.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{-# LANGUAGE PatternGuards #-}
22
{-# LANGUAGE FlexibleInstances #-}
3-
{-# OPTIONS_GHC -fno-warn-orphans #-}
3+
{-# OPTIONS_GHC -Wno-orphans #-}
44
module UnitTests.Distribution.Compat.Graph
55
( tests
66
, arbitraryGraph

Cabal-tests/tests/UnitTests/Distribution/Described.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{-# LANGUAGE OverloadedStrings #-}
22
{-# LANGUAGE ScopedTypeVariables #-}
3-
{-# OPTIONS_GHC -fno-warn-deprecations #-}
3+
{-# OPTIONS_GHC -Wno-deprecations #-}
44
module UnitTests.Distribution.Described where
55

66
import Distribution.Compat.Prelude.Internal

Cabal-tests/tests/UnitTests/Distribution/SPDX.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
{-# OPTIONS_GHC -fno-warn-deprecations #-}
1+
{-# OPTIONS_GHC -Wno-deprecations #-}
22
module UnitTests.Distribution.SPDX (spdxTests) where
33

44
import Distribution.Compat.Prelude.Internal

0 commit comments

Comments
 (0)