Skip to content

Commit a22d299

Browse files
committed
not using older GHCs
1 parent 28b3041 commit a22d299

File tree

1 file changed

+15
-73
lines changed

1 file changed

+15
-73
lines changed

language-dickinson.cabal

+15-73
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,9 @@ library
5252
autogen-modules: Paths_language_dickinson
5353
default-language: Haskell2010
5454
ghc-options: -Wall
55+
-Wincomplete-uni-patterns -Wincomplete-record-updates
56+
-Wredundant-constraints -Widentities
57+
-Wmissing-export-lists -Wcpp-undef -Wunused-packages
5558
build-depends:
5659
base >=4.19.0.0 && <5,
5760
dickinson
@@ -67,20 +70,6 @@ library
6770
template-haskell,
6871
text
6972

70-
if impl(ghc >=8.0)
71-
ghc-options:
72-
-Wincomplete-uni-patterns -Wincomplete-record-updates
73-
-Wredundant-constraints -Widentities
74-
75-
if impl(ghc >=8.4)
76-
ghc-options: -Wmissing-export-lists
77-
78-
if impl(ghc >=8.2)
79-
ghc-options: -Wcpp-undef
80-
81-
if impl(ghc >=8.10)
82-
ghc-options: -Wunused-packages
83-
8473
library dickinson
8574
exposed-modules:
8675
Language.Dickinson.Lexer
@@ -128,6 +117,11 @@ library dickinson
128117
TransformListComp
129118

130119
ghc-options: -Wall -O2 -fstatic-argument-transformation
120+
-Wincomplete-uni-patterns -Wincomplete-record-updates
121+
-Wredundant-constraints -Widentities
122+
-Wmissing-export-lists -Wcpp-undef -Wunused-packages
123+
-Wno-x-partial
124+
131125
build-depends:
132126
base >=4.9 && <5,
133127
array,
@@ -150,23 +144,6 @@ library dickinson
150144
if !flag(cross)
151145
build-tool-depends: alex:alex >=3.5.0.0, happy:happy >=1.17.1
152146

153-
if !impl(ghc >=8.0)
154-
build-depends: semigroups
155-
156-
if impl(ghc >=8.0)
157-
ghc-options:
158-
-Wincomplete-uni-patterns -Wincomplete-record-updates
159-
-Wredundant-constraints -Widentities
160-
161-
if impl(ghc >=8.4)
162-
ghc-options: -Wmissing-export-lists
163-
164-
if impl(ghc >=8.2)
165-
ghc-options: -Wcpp-undef
166-
167-
if impl(ghc >=8.10)
168-
ghc-options: -Wunused-packages
169-
170147
executable emd
171148
main-is: Main.hs
172149
hs-source-dirs: run
@@ -182,6 +159,10 @@ executable emd
182159
other-extensions: FlexibleContexts OverloadedStrings TupleSections
183160
ghc-options:
184161
-Wall -rtsopts -with-rtsopts=-A4M -fstatic-argument-transformation
162+
-Wincomplete-uni-patterns -Wincomplete-record-updates
163+
-Wredundant-constraints -Widentities
164+
-Wmissing-export-lists -Wcpp-undef -Wunused-packages
165+
-Wno-x-partial
185166

186167
build-depends:
187168
base,
@@ -208,20 +189,6 @@ executable emd
208189
cpp-options: -DZSTD
209190
build-depends: zstd
210191

211-
if impl(ghc >=8.0)
212-
ghc-options:
213-
-Wincomplete-uni-patterns -Wincomplete-record-updates
214-
-Wredundant-constraints -Widentities
215-
216-
if impl(ghc >=8.4)
217-
ghc-options: -Wmissing-export-lists
218-
219-
if impl(ghc >=8.2)
220-
ghc-options: -Wcpp-undef
221-
222-
if impl(ghc >=8.10)
223-
ghc-options: -Wunused-packages
224-
225192
test-suite dickinson-test
226193
type: exitcode-stdio-1.0
227194
main-is: Spec.hs
@@ -236,6 +203,9 @@ test-suite dickinson-test
236203
default-language: Haskell2010
237204
other-extensions: OverloadedStrings TemplateHaskell
238205
ghc-options: -threaded -rtsopts "-with-rtsopts=-N -K1K" -Wall
206+
-Wincomplete-uni-patterns -Wincomplete-record-updates
207+
-Wredundant-constraints -Widentities
208+
-Wmissing-export-lists -Wcpp-undef -Wunused-packages
239209
build-depends:
240210
base,
241211
dickinson,
@@ -249,20 +219,6 @@ test-suite dickinson-test
249219
pretty-simple >=4.0.0.0,
250220
language-dickinson
251221

252-
if impl(ghc >=8.0)
253-
ghc-options:
254-
-Wincomplete-uni-patterns -Wincomplete-record-updates
255-
-Wredundant-constraints -Widentities
256-
257-
if impl(ghc >=8.4)
258-
ghc-options: -Wmissing-export-lists
259-
260-
if impl(ghc >=8.2)
261-
ghc-options: -Wcpp-undef
262-
263-
if impl(ghc >=8.10)
264-
ghc-options: -Wunused-packages
265-
266222
benchmark dickinson-bench
267223
type: exitcode-stdio-1.0
268224
main-is: Bench.hs
@@ -278,17 +234,3 @@ benchmark dickinson-bench
278234
criterion,
279235
bytestring,
280236
text
281-
282-
if impl(ghc >=8.0)
283-
ghc-options:
284-
-Wincomplete-uni-patterns -Wincomplete-record-updates
285-
-Wredundant-constraints -Widentities
286-
287-
if impl(ghc >=8.4)
288-
ghc-options: -Wmissing-export-lists
289-
290-
if impl(ghc >=8.2)
291-
ghc-options: -Wcpp-undef
292-
293-
if impl(ghc >=8.10)
294-
ghc-options: -Wunused-packages

0 commit comments

Comments
 (0)