Skip to content

Commit 4f8aeb2

Browse files
authored
Merge pull request #7352 from matthewbauer/turn-off-prepositive-qualified-module
Set -Wno-prepositive-qualified-module in Paths_*.hs
2 parents 174673d + de378ca commit 4f8aeb2

File tree

4 files changed

+2
-13
lines changed

4 files changed

+2
-13
lines changed

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

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,6 @@ generatePathsModule pkg_descr lbi clbi = Z.render Z.Z
4141
, Z.zVersionDigits = show $ versionNumbers $ packageVersion pkg_descr
4242
, Z.zSupportsCpp = supports_cpp
4343
, Z.zSupportsNoRebindableSyntax = supports_rebindable_syntax
44-
, Z.zSupportsNoMissingSafeHaskellMode = supports_missing_safehaskell
4544
, Z.zAbsolute = absolute
4645
, Z.zRelocatable = relocatable lbi
4746
, Z.zIsWindows = isWindows
@@ -62,7 +61,6 @@ generatePathsModule pkg_descr lbi clbi = Z.render Z.Z
6261
supports_cpp = supports_language_pragma
6362
supports_rebindable_syntax = ghc_newer_than (mkVersion [7,0,1])
6463
supports_language_pragma = ghc_newer_than (mkVersion [6,6,1])
65-
supports_missing_safehaskell = ghc_newer_than (mkVersion [8,10,1])
6664

6765
ghc_newer_than minVersion =
6866
case compilerCompatVersion GHC (compiler lbi) of

Cabal/src/Distribution/Simple/Build/PathsModule/Z.hs

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ data Z
66
zVersionDigits :: String,
77
zSupportsCpp :: Bool,
88
zSupportsNoRebindableSyntax :: Bool,
9-
zSupportsNoMissingSafeHaskellMode :: Bool,
109
zAbsolute :: Bool,
1110
zRelocatable :: Bool,
1211
zIsWindows :: Bool,
@@ -43,12 +42,7 @@ render z_root = execWriter $ do
4342
else do
4443
return ()
4544
tell "{-# OPTIONS_GHC -fno-warn-missing-import-lists #-}\n"
46-
if (zSupportsNoMissingSafeHaskellMode z_root)
47-
then do
48-
tell "{-# OPTIONS_GHC -Wno-missing-safe-haskell-mode #-}\n"
49-
return ()
50-
else do
51-
return ()
45+
tell "{-# OPTIONS_GHC -w #-}\n"
5246
tell "module Paths_"
5347
tell (zManglePkgName z_root (zPackageName z_root))
5448
tell " (\n"

cabal-dev-scripts/src/GenPathsModule.hs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@ $(capture "decls" [d|
2727
, zVersionDigits :: String
2828
, zSupportsCpp :: Bool
2929
, zSupportsNoRebindableSyntax :: Bool
30-
, zSupportsNoMissingSafeHaskellMode :: Bool
3130
, zAbsolute :: Bool
3231
, zRelocatable :: Bool
3332
, zIsWindows :: Bool

templates/Paths_pkg.template.hs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,7 @@
88
{-# LANGUAGE ForeignFunctionInterface #-}
99
{% endif %}
1010
{-# OPTIONS_GHC -fno-warn-missing-import-lists #-}
11-
{% if supportsNoMissingSafeHaskellMode %}
12-
{-# OPTIONS_GHC -Wno-missing-safe-haskell-mode #-}
13-
{% endif %}
11+
{-# OPTIONS_GHC -w #-}
1412
module Paths_{{ manglePkgName packageName }} (
1513
version,
1614
getBinDir, getLibDir, getDynLibDir, getDataDir, getLibexecDir,

0 commit comments

Comments
 (0)