@@ -52,6 +52,9 @@ library
52
52
autogen-modules : Paths_language_dickinson
53
53
default-language : Haskell2010
54
54
ghc-options : -Wall
55
+ -Wincomplete-uni-patterns -Wincomplete-record-updates
56
+ -Wredundant-constraints -Widentities
57
+ -Wmissing-export-lists -Wcpp-undef -Wunused-packages
55
58
build-depends :
56
59
base >= 4.19.0.0 && < 5 ,
57
60
dickinson
@@ -67,20 +70,6 @@ library
67
70
template-haskell,
68
71
text
69
72
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
-
84
73
library dickinson
85
74
exposed-modules :
86
75
Language.Dickinson.Lexer
@@ -128,6 +117,11 @@ library dickinson
128
117
TransformListComp
129
118
130
119
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
+
131
125
build-depends :
132
126
base >= 4.9 && < 5 ,
133
127
array,
@@ -150,23 +144,6 @@ library dickinson
150
144
if !flag(cross)
151
145
build-tool-depends : alex :alex >= 3.5.0.0 , happy :happy >= 1.17.1
152
146
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
-
170
147
executable emd
171
148
main-is : Main.hs
172
149
hs-source-dirs : run
@@ -182,6 +159,10 @@ executable emd
182
159
other-extensions : FlexibleContexts OverloadedStrings TupleSections
183
160
ghc-options :
184
161
-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
185
166
186
167
build-depends :
187
168
base,
@@ -208,20 +189,6 @@ executable emd
208
189
cpp-options : -DZSTD
209
190
build-depends : zstd
210
191
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
-
225
192
test-suite dickinson-test
226
193
type : exitcode-stdio-1.0
227
194
main-is : Spec.hs
@@ -236,6 +203,9 @@ test-suite dickinson-test
236
203
default-language : Haskell2010
237
204
other-extensions : OverloadedStrings TemplateHaskell
238
205
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
239
209
build-depends :
240
210
base,
241
211
dickinson,
@@ -249,20 +219,6 @@ test-suite dickinson-test
249
219
pretty-simple >= 4.0.0.0 ,
250
220
language-dickinson
251
221
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
-
266
222
benchmark dickinson-bench
267
223
type : exitcode-stdio-1.0
268
224
main-is : Bench.hs
@@ -278,17 +234,3 @@ benchmark dickinson-bench
278
234
criterion,
279
235
bytestring,
280
236
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