Skip to content

Commit dcdbeb0

Browse files
authored
Merge pull request #10723 from cabalism/remove/unused-cpp
Remove unused -XCPP
2 parents 529bd1f + 7965c7f commit dcdbeb0

Some content is hidden

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

66 files changed

+0
-161
lines changed

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

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
{-# LANGUAGE CPP #-}
21
{-# LANGUAGE FlexibleContexts #-}
32
{-# LANGUAGE GADTs #-}
43
{-# LANGUAGE TypeOperators #-}

Cabal-syntax/src/Distribution/Compat/Binary.hs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
{-# LANGUAGE CPP #-}
2-
31
module Distribution.Compat.Binary
42
( decodeOrFailIO
53
, decodeFileOrFail'

Cabal-syntax/src/Distribution/Compat/Exception.hs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
{-# LANGUAGE CPP #-}
2-
31
module Distribution.Compat.Exception
42
( catchIO
53
, catchExit

Cabal-syntax/src/Distribution/Compat/Graph.hs

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,10 @@
11
{-# LANGUAGE BangPatterns #-}
2-
{-# LANGUAGE CPP #-}
32
{-# LANGUAGE FlexibleContexts #-}
43
{-# LANGUAGE ScopedTypeVariables #-}
54
{-# LANGUAGE TypeFamilies #-}
65
{-# LANGUAGE TypeOperators #-}
76
{-# LANGUAGE UndecidableInstances #-}
87

9-
-----------------------------------------------------------------------------
10-
11-
-----------------------------------------------------------------------------
12-
138
-- |
149
-- Module : Distribution.Compat.Graph
1510
-- Copyright : (c) Edward Z. Yang 2016

Cabal-syntax/src/Distribution/Compat/MonadFail.hs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
{-# LANGUAGE CPP #-}
2-
31
-- | Compatibility layer for "Control.Monad.Fail"
42
module Distribution.Compat.MonadFail (Control.Monad.Fail.MonadFail (fail)) where
53

Cabal-syntax/src/Distribution/Compat/Newtype.hs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
{-# LANGUAGE CPP #-}
21
{-# LANGUAGE DefaultSignatures #-}
32
{-# LANGUAGE FlexibleInstances #-}
43
{-# LANGUAGE FunctionalDependencies #-}

Cabal-syntax/src/Distribution/Compat/Prelude.hs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
{-# LANGUAGE CPP #-}
21
{-# LANGUAGE FlexibleContexts #-}
32
{-# LANGUAGE RankNTypes #-}
43
{-# LANGUAGE Trustworthy #-}

Cabal-syntax/src/Distribution/Compat/Semigroup.hs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
{-# LANGUAGE CPP #-}
21
{-# LANGUAGE DeriveGeneric #-}
32
{-# LANGUAGE FlexibleContexts #-}
43
{-# LANGUAGE GeneralizedNewtypeDeriving #-}

Cabal-syntax/src/Distribution/FieldGrammar/Class.hs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
{-# LANGUAGE CPP #-}
21
{-# LANGUAGE ConstraintKinds #-}
32
{-# LANGUAGE FunctionalDependencies #-}
43
{-# LANGUAGE RankNTypes #-}

Cabal-syntax/src/Distribution/Fields/ParseResult.hs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
{-# LANGUAGE BangPatterns #-}
2-
{-# LANGUAGE CPP #-}
32
{-# LANGUAGE FlexibleContexts #-}
43
{-# LANGUAGE RankNTypes #-}
54

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

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,8 @@
1-
{-# LANGUAGE CPP #-}
21
{-# LANGUAGE FlexibleContexts #-}
32
{-# LANGUAGE OverloadedStrings #-}
43
{-# LANGUAGE Rank2Types #-}
54
{-# LANGUAGE ScopedTypeVariables #-}
65

7-
-----------------------------------------------------------------------------
8-
96
-- |
107
-- Module : Distribution.PackageDescription.Parsec
118
-- Copyright : Isaac Jones 2003-2005

Cabal-syntax/src/Distribution/Parsec.hs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
{-# LANGUAGE BangPatterns #-}
2-
{-# LANGUAGE CPP #-}
32
{-# LANGUAGE FlexibleContexts #-}
43
{-# LANGUAGE GADTs #-}
54
{-# LANGUAGE RankNTypes #-}

Cabal-syntax/src/Distribution/System.hs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,7 @@
1-
{-# LANGUAGE CPP #-}
21
{-# LANGUAGE DeriveDataTypeable #-}
32
{-# LANGUAGE DeriveGeneric #-}
43
{-# LANGUAGE FlexibleContexts #-}
54

6-
-----------------------------------------------------------------------------
7-
85
-- |
96
-- Module : Distribution.System
107
-- Copyright : Duncan Coutts 2007-2008

Cabal-syntax/src/Distribution/Utils/Generic.hs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,8 @@
11
{-# LANGUAGE BangPatterns #-}
2-
{-# LANGUAGE CPP #-}
32
{-# LANGUAGE FlexibleContexts #-}
43
{-# LANGUAGE RankNTypes #-}
54
{-# LANGUAGE ScopedTypeVariables #-}
65

7-
-----------------------------------------------------------------------------
8-
96
-- |
107
-- Module : Distribution.Utils.Generic
118
-- Copyright : Isaac Jones, Simon Marlow 2003-2004

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

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
{-# LANGUAGE CPP #-}
21
{-# OPTIONS_GHC -fno-warn-deprecations #-}
32
module UnitTests.Distribution.CabalSpecVersion (tests) where
43

Cabal-tests/tests/UnitTests/Distribution/Utils/CharSet.hs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
{-# LANGUAGE CPP #-}
21
module UnitTests.Distribution.Utils.CharSet where
32

43
import Prelude hiding (Foldable(..))

Cabal-tests/tests/UnitTests/Distribution/Utils/Structured.hs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
{-# LANGUAGE CPP #-}
21
module UnitTests.Distribution.Utils.Structured (tests) where
32

43
import Data.Proxy (Proxy (..))

Cabal-tree-diff/src/Data/TreeDiff/Instances/Cabal.hs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
{-# LANGUAGE CPP #-}
21
{-# OPTIONS_GHC -freduction-depth=0 #-}
32
{-# OPTIONS_GHC -fno-warn-orphans #-}
43
module Data.TreeDiff.Instances.Cabal () where

Cabal-tree-diff/src/Data/TreeDiff/Instances/CabalLanguage.hs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
{-# LANGUAGE CPP #-}
21
{-# OPTIONS_GHC -freduction-depth=0 #-}
32
{-# OPTIONS_GHC -fno-warn-orphans #-}
43
module Data.TreeDiff.Instances.CabalLanguage () where

Cabal-tree-diff/src/Data/TreeDiff/Instances/CabalSPDX.hs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
{-# LANGUAGE CPP #-}
21
{-# OPTIONS_GHC -freduction-depth=0 #-}
32
{-# OPTIONS_GHC -fno-warn-orphans #-}
43
module Data.TreeDiff.Instances.CabalSPDX () where

Cabal-tree-diff/src/Data/TreeDiff/Instances/CabalVersion.hs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
{-# LANGUAGE CPP #-}
21
{-# OPTIONS_GHC -freduction-depth=0 #-}
32
{-# OPTIONS_GHC -fno-warn-orphans #-}
43
module Data.TreeDiff.Instances.CabalVersion where

Cabal/src/Distribution/Compat/Async.hs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
{-# LANGUAGE CPP #-}
2-
31
-- | 'Async', yet using 'MVar's.
42
--
53
-- Adopted from @async@ library

Cabal/src/Distribution/Compat/ResponseFile.hs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
{-# LANGUAGE CPP #-}
21
{-# LANGUAGE FlexibleContexts #-}
32
{-# LANGUAGE RankNTypes #-}
43

Cabal/src/Distribution/Compat/Stack.hs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
{-# LANGUAGE CPP #-}
21
{-# LANGUAGE ImplicitParams #-}
32
{-# LANGUAGE RankNTypes #-}
43

Cabal/src/Distribution/Simple/GHCJS.hs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
{-# LANGUAGE CPP #-}
21
{-# LANGUAGE DataKinds #-}
32
{-# LANGUAGE FlexibleContexts #-}
43
{-# LANGUAGE RankNTypes #-}

Cabal/src/Distribution/Simple/Setup.hs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,9 @@
1-
{-# LANGUAGE CPP #-}
21
{-# LANGUAGE DataKinds #-}
32
{-# LANGUAGE DeriveGeneric #-}
43
{-# LANGUAGE FlexibleContexts #-}
54
{-# LANGUAGE LambdaCase #-}
65
{-# LANGUAGE RankNTypes #-}
76

8-
-----------------------------------------------------------------------------
9-
107
-- |
118
-- Module : Distribution.Simple.Setup
129
-- Copyright : Isaac Jones 2003-2004

Cabal/src/Distribution/Simple/Setup/Benchmark.hs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,10 @@
1-
{-# LANGUAGE CPP #-}
21
{-# LANGUAGE DataKinds #-}
32
{-# LANGUAGE DeriveGeneric #-}
43
{-# LANGUAGE FlexibleContexts #-}
54
{-# LANGUAGE PatternSynonyms #-}
65
{-# LANGUAGE RankNTypes #-}
76
{-# LANGUAGE ViewPatterns #-}
87

9-
-----------------------------------------------------------------------------
10-
118
-- |
129
-- Module : Distribution.Simple.Benchmark
1310
-- Copyright : Isaac Jones 2003-2004

Cabal/src/Distribution/Simple/Setup/Build.hs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,10 @@
1-
{-# LANGUAGE CPP #-}
21
{-# LANGUAGE DataKinds #-}
32
{-# LANGUAGE DeriveGeneric #-}
43
{-# LANGUAGE FlexibleContexts #-}
54
{-# LANGUAGE PatternSynonyms #-}
65
{-# LANGUAGE RankNTypes #-}
76
{-# LANGUAGE ViewPatterns #-}
87

9-
-----------------------------------------------------------------------------
10-
118
-- |
129
-- Module : Distribution.Simple.Setup.Build
1310
-- Copyright : Isaac Jones 2003-2004

Cabal/src/Distribution/Simple/Setup/Clean.hs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,10 @@
1-
{-# LANGUAGE CPP #-}
21
{-# LANGUAGE DataKinds #-}
32
{-# LANGUAGE DeriveGeneric #-}
43
{-# LANGUAGE FlexibleContexts #-}
54
{-# LANGUAGE PatternSynonyms #-}
65
{-# LANGUAGE RankNTypes #-}
76
{-# LANGUAGE ViewPatterns #-}
87

9-
-----------------------------------------------------------------------------
10-
118
-- |
129
-- Module : Distribution.Simple.Setup.Clean
1310
-- Copyright : Isaac Jones 2003-2004

Cabal/src/Distribution/Simple/Setup/Common.hs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,8 @@
1-
{-# LANGUAGE CPP #-}
21
{-# LANGUAGE DataKinds #-}
32
{-# LANGUAGE DeriveGeneric #-}
43
{-# LANGUAGE FlexibleContexts #-}
54
{-# LANGUAGE RankNTypes #-}
65

7-
-----------------------------------------------------------------------------
8-
96
-- |
107
-- Module : Distribution.Simple.Setup.Common
118
-- Copyright : Isaac Jones 2003-2004

Cabal/src/Distribution/Simple/Setup/Copy.hs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,10 @@
1-
{-# LANGUAGE CPP #-}
21
{-# LANGUAGE DataKinds #-}
32
{-# LANGUAGE DeriveGeneric #-}
43
{-# LANGUAGE FlexibleContexts #-}
54
{-# LANGUAGE PatternSynonyms #-}
65
{-# LANGUAGE RankNTypes #-}
76
{-# LANGUAGE ViewPatterns #-}
87

9-
-----------------------------------------------------------------------------
10-
118
-- |
129
-- Module : Distribution.Simple.Setup.Copy
1310
-- Copyright : Isaac Jones 2003-2004

Cabal/src/Distribution/Simple/Setup/Global.hs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,8 @@
1-
{-# LANGUAGE CPP #-}
21
{-# LANGUAGE DataKinds #-}
32
{-# LANGUAGE DeriveGeneric #-}
43
{-# LANGUAGE FlexibleContexts #-}
54
{-# LANGUAGE RankNTypes #-}
65

7-
-----------------------------------------------------------------------------
8-
96
-- |
107
-- Module : Distribution.Simple.Setup.Global
118
-- Copyright : Isaac Jones 2003-2004

Cabal/src/Distribution/Simple/Setup/Haddock.hs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,10 @@
1-
{-# LANGUAGE CPP #-}
21
{-# LANGUAGE DataKinds #-}
32
{-# LANGUAGE DeriveGeneric #-}
43
{-# LANGUAGE FlexibleContexts #-}
54
{-# LANGUAGE PatternSynonyms #-}
65
{-# LANGUAGE RankNTypes #-}
76
{-# LANGUAGE ViewPatterns #-}
87

9-
-----------------------------------------------------------------------------
10-
118
-- |
129
-- Module : Distribution.Simple.Setup.Haddock
1310
-- Copyright : Isaac Jones 2003-2004

Cabal/src/Distribution/Simple/Setup/Hscolour.hs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,10 @@
1-
{-# LANGUAGE CPP #-}
21
{-# LANGUAGE DataKinds #-}
32
{-# LANGUAGE DeriveGeneric #-}
43
{-# LANGUAGE FlexibleContexts #-}
54
{-# LANGUAGE PatternSynonyms #-}
65
{-# LANGUAGE RankNTypes #-}
76
{-# LANGUAGE ViewPatterns #-}
87

9-
-----------------------------------------------------------------------------
10-
118
-- |
129
-- Module : Distribution.Simple.Setup.Hscolour
1310
-- Copyright : Isaac Jones 2003-2004

Cabal/src/Distribution/Simple/Setup/Install.hs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,10 @@
1-
{-# LANGUAGE CPP #-}
21
{-# LANGUAGE DataKinds #-}
32
{-# LANGUAGE DeriveGeneric #-}
43
{-# LANGUAGE FlexibleContexts #-}
54
{-# LANGUAGE PatternSynonyms #-}
65
{-# LANGUAGE RankNTypes #-}
76
{-# LANGUAGE ViewPatterns #-}
87

9-
-----------------------------------------------------------------------------
10-
118
-- |
129
-- Module : Distribution.Simple.Setup.Install
1310
-- Copyright : Isaac Jones 2003-2004

Cabal/src/Distribution/Simple/Setup/Register.hs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,10 @@
1-
{-# LANGUAGE CPP #-}
21
{-# LANGUAGE DataKinds #-}
32
{-# LANGUAGE DeriveGeneric #-}
43
{-# LANGUAGE FlexibleContexts #-}
54
{-# LANGUAGE PatternSynonyms #-}
65
{-# LANGUAGE RankNTypes #-}
76
{-# LANGUAGE ViewPatterns #-}
87

9-
-----------------------------------------------------------------------------
10-
118
-- |
129
-- Module : Distribution.Simple.Setup.Register
1310
-- Copyright : Isaac Jones 2003-2004

Cabal/src/Distribution/Simple/Setup/Repl.hs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,10 @@
1-
{-# LANGUAGE CPP #-}
21
{-# LANGUAGE DataKinds #-}
32
{-# LANGUAGE DeriveGeneric #-}
43
{-# LANGUAGE FlexibleContexts #-}
54
{-# LANGUAGE PatternSynonyms #-}
65
{-# LANGUAGE RankNTypes #-}
76
{-# LANGUAGE ViewPatterns #-}
87

9-
-----------------------------------------------------------------------------
10-
118
-- |
129
-- Module : Distribution.Simple.Setup.Repl
1310
-- Copyright : Isaac Jones 2003-2004

Cabal/src/Distribution/Simple/Setup/SDist.hs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,10 @@
1-
{-# LANGUAGE CPP #-}
21
{-# LANGUAGE DataKinds #-}
32
{-# LANGUAGE DeriveGeneric #-}
43
{-# LANGUAGE FlexibleContexts #-}
54
{-# LANGUAGE PatternSynonyms #-}
65
{-# LANGUAGE RankNTypes #-}
76
{-# LANGUAGE ViewPatterns #-}
87

9-
-----------------------------------------------------------------------------
10-
118
-- |
129
-- Module : Distribution.Simple.Setup.SDist
1310
-- Copyright : Isaac Jones 2003-2004

Cabal/src/Distribution/Simple/Setup/Test.hs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,10 @@
1-
{-# LANGUAGE CPP #-}
21
{-# LANGUAGE DataKinds #-}
32
{-# LANGUAGE DeriveGeneric #-}
43
{-# LANGUAGE FlexibleContexts #-}
54
{-# LANGUAGE PatternSynonyms #-}
65
{-# LANGUAGE RankNTypes #-}
76
{-# LANGUAGE ViewPatterns #-}
87

9-
-----------------------------------------------------------------------------
10-
118
-- |
129
-- Module : Distribution.Simple.Test
1310
-- Copyright : Isaac Jones 2003-2004

Cabal/src/Distribution/Utils/MapAccum.hs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
{-# LANGUAGE CPP #-}
2-
31
module Distribution.Utils.MapAccum (mapAccumM) where
42

53
import Distribution.Compat.Prelude

Cabal/src/Distribution/Utils/Progress.hs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
{-# LANGUAGE CPP #-}
21
{-# LANGUAGE DeriveFunctor #-}
32

43
-- Note: This module was copied from cabal-install.

cabal-install/src/Distribution/Client/Check.hs

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,3 @@
1-
{-# LANGUAGE CPP #-}
2-
3-
-----------------------------------------------------------------------------
4-
5-
-----------------------------------------------------------------------------
6-
71
-- |
82
-- Module : Distribution.Client.Check
93
-- Copyright : (c) Lennart Kolmodin 2008

cabal-install/src/Distribution/Client/CmdOutdated.hs

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,6 @@
1-
{-# LANGUAGE CPP #-}
21
{-# LANGUAGE NamedFieldPuns #-}
32
{-# LANGUAGE RecordWildCards #-}
43

5-
-----------------------------------------------------------------------------
6-
7-
-----------------------------------------------------------------------------
8-
94
-- |
105
-- Module : Distribution.Client.CmdOutdated
116
-- Maintainer : [email protected]

cabal-install/src/Distribution/Client/CmdPath.hs

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,6 @@
1-
{-# LANGUAGE CPP #-}
21
{-# LANGUAGE LambdaCase #-}
32
{-# LANGUAGE RecordWildCards #-}
43

5-
-----------------------------------------------------------------------------
6-
7-
-----------------------------------------------------------------------------
8-
94
-- |
105
-- Module : Distribution.Client.CmdPath
116
-- Maintainer : [email protected]

0 commit comments

Comments
 (0)