Skip to content

Commit 0e4afba

Browse files
committed
Warning flags -W... rather than -fwarn...
1 parent 68ece86 commit 0e4afba

File tree

1 file changed

+11
-6
lines changed

1 file changed

+11
-6
lines changed

hackage-server.cabal

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -162,11 +162,13 @@ common defaults
162162

163163
ghc-options:
164164
-funbox-strict-fields
165-
-Wall -fwarn-tabs -fno-warn-unused-do-bind -fno-warn-deprecated-flags
166-
-Werror=incomplete-patterns -Werror=missing-methods
167-
168-
if impl(ghc >= 8.10)
169-
ghc-options: -Wno-unused-record-wildcards
165+
-Wall
166+
-Wtabs
167+
-Wno-deprecated-flags
168+
-Wno-unused-do-bind
169+
-Wno-unused-record-wildcards
170+
-Werror=incomplete-patterns
171+
-Werror=missing-methods
170172

171173
default-extensions: LambdaCase, TupleSections
172174
other-extensions: CPP, TemplateHaskell
@@ -538,7 +540,10 @@ common test-defaults
538540

539541
build-depends: hackage-server
540542
hs-source-dirs: tests
541-
ghc-options: -threaded -rtsopts -fno-warn-orphans
543+
ghc-options:
544+
-threaded
545+
-rtsopts
546+
-Wno-orphans
542547

543548
other-modules: Paths_hackage_server
544549
autogen-modules: Paths_hackage_server

0 commit comments

Comments
 (0)