Skip to content

Commit e747d58

Browse files
committed
Remove redundant OPTIONS_GHC pragmas from templates
(`-w` alone should be sufficient)
1 parent cef2fb4 commit e747d58

File tree

3 files changed

+0
-16
lines changed

3 files changed

+0
-16
lines changed

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

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@ render z_root = execWriter $ do
2222
return ()
2323
else do
2424
return ()
25-
tell "{-# OPTIONS_GHC -Wno-missing-import-lists #-}\n"
2625
tell "{-# OPTIONS_GHC -w #-}\n"
2726
tell "\n"
2827
tell "{-|\n"

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

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -43,15 +43,6 @@ render z_root = execWriter $ do
4343
return ()
4444
else do
4545
return ()
46-
if (zSupportsCpp z_root)
47-
then do
48-
tell "#if __GLASGOW_HASKELL__ >= 810\n"
49-
tell "{-# OPTIONS_GHC -Wno-prepositive-qualified-module #-}\n"
50-
tell "#endif\n"
51-
return ()
52-
else do
53-
return ()
54-
tell "{-# OPTIONS_GHC -Wno-missing-import-lists #-}\n"
5546
tell "{-# OPTIONS_GHC -w #-}\n"
5647
tell "\n"
5748
tell "{-|\n"

templates/Paths_pkg.template.hs

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,6 @@
77
{% if not absolute %}
88
{-# LANGUAGE ForeignFunctionInterface #-}
99
{% endif %}
10-
{% if supportsCpp %}
11-
#if __GLASGOW_HASKELL__ >= 810
12-
{-# OPTIONS_GHC -Wno-prepositive-qualified-module #-}
13-
#endif
14-
{% endif %}
15-
{-# OPTIONS_GHC -Wno-missing-import-lists #-}
1610
{-# OPTIONS_GHC -w #-}
1711

1812
{-|

0 commit comments

Comments
 (0)