Skip to content

Commit 8802544

Browse files
committed
cabal: remove -O2 (discouraged), add -Wcompat for GHC >= 8
1 parent f967427 commit 8802544

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

regex-posix.cabal

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -97,5 +97,12 @@ library
9797
if impl(ghc < 8)
9898
build-depends: fail == 4.9.*
9999

100-
ghc-options: -O2
101-
-Wall -fno-warn-unused-imports
100+
-- Warnings
101+
102+
ghc-options:
103+
-Wall
104+
-fno-warn-unused-imports
105+
106+
if impl(ghc >= 8)
107+
ghc-options:
108+
-Wcompat

0 commit comments

Comments
 (0)