@@ -110,7 +110,6 @@ executable hie
110
110
, hie-plugin-api
111
111
, hslogger
112
112
, optparse-simple
113
- , stm
114
113
ghc-options : -threaded -rtsopts -with-rtsopts=-N -Wall -Wredundant-constraints
115
114
-with-rtsopts=-T
116
115
if flag(pedantic)
@@ -137,11 +136,33 @@ executable hie-wrapper
137
136
ghc-options : -Werror
138
137
default-language : Haskell2010
139
138
139
+ library hie-test-utils
140
+ hs-source-dirs : test/utils
141
+ exposed-modules : TestUtils
142
+ build-depends : base
143
+ , haskell-ide-engine
144
+ , haskell-lsp
145
+ , hie-plugin-api
146
+ , aeson
147
+ , containers
148
+ , data-default
149
+ , directory
150
+ , filepath
151
+ , ghc-mod-core
152
+ , hslogger
153
+ , hspec
154
+ , stm
155
+ , text
156
+ , unordered-containers
157
+ , yaml
158
+ ghc-options : -Wall -Wredundant-constraints
159
+ if flag(pedantic)
160
+ ghc-options : -Werror
161
+ default-language : Haskell2010
140
162
141
163
test-suite unit-test
142
164
type : exitcode-stdio-1.0
143
165
hs-source-dirs : test/unit
144
- , test/utils
145
166
main-is : Main.hs
146
167
other-modules : ApplyRefactPluginSpec
147
168
BrittanySpec
@@ -154,8 +175,6 @@ test-suite unit-test
154
175
HooglePluginSpec
155
176
JsonSpec
156
177
Spec
157
-
158
- TestUtils
159
178
build-depends : QuickCheck
160
179
, aeson
161
180
, base
@@ -164,25 +183,16 @@ test-suite unit-test
164
183
, directory
165
184
, filepath
166
185
, free
167
- , haskell-lsp
168
186
, haskell-ide-engine
169
- -- , hie-test-utils
187
+ , haskell-lsp-types >= 0.4
188
+ , hie-test-utils
170
189
, hie-plugin-api
171
190
, hoogle > 5.0.11
172
191
, hspec
173
192
, quickcheck-instances
174
- , stm
175
193
, text
176
194
, unordered-containers
177
195
178
- -- remove these once hie-test-utils is reinstated
179
- , data-default
180
- , hie-plugin-api
181
- , ghc-mod-core
182
- , hslogger
183
- , yaml
184
- -- don't multithread i.e. --with-rtsopts=-N
185
- -- otherwise ghc-mod operations become super slow on CircleCI
186
196
ghc-options : -Wall -Wredundant-constraints
187
197
if flag(pedantic)
188
198
ghc-options : -Werror
@@ -192,31 +202,22 @@ test-suite unit-test
192
202
test-suite dispatcher-test
193
203
type : exitcode-stdio-1.0
194
204
hs-source-dirs : test/dispatcher
195
- test/utils
196
205
main-is : Main.hs
197
- other-modules : TestUtils
198
206
build-depends : base
199
207
, aeson
200
- , containers
201
208
, data-default
202
209
, directory
203
210
, filepath
204
211
, ghc
205
- , haskell-lsp
206
212
, haskell-ide-engine
207
- -- , hie-test-utils
213
+ , haskell-lsp-types
214
+ , hie-test-utils
208
215
, hie-plugin-api
209
216
, hspec
210
217
, stm
211
218
, text
212
219
, unordered-containers
213
220
214
- -- remove these once hie-test-utils is reinstated
215
- , hie-plugin-api
216
- , ghc-mod-core
217
- , hslogger
218
- , unordered-containers
219
- , yaml
220
221
ghc-options : -threaded -rtsopts -with-rtsopts=-N -Wall -Wredundant-constraints
221
222
if flag(pedantic)
222
223
ghc-options : -Werror
@@ -226,63 +227,25 @@ test-suite dispatcher-test
226
227
test-suite plugin-dispatcher-test
227
228
type : exitcode-stdio-1.0
228
229
hs-source-dirs : test/plugin-dispatcher
229
- test/utils
230
230
main-is : Main.hs
231
- other-modules : TestUtils
232
231
build-depends : base
233
- , aeson
234
- , containers
235
232
, data-default
236
- , directory
237
- , filepath
238
- , ghc
239
- , haskell-lsp
240
233
, haskell-ide-engine
241
- -- , hie-test-utils
234
+ , haskell-lsp-types
242
235
, hie-plugin-api
236
+ , hie-test-utils
243
237
, hspec
244
238
, stm
245
239
, text
246
- , unordered-containers
247
240
248
- -- remove these once hie-test-utils is reinstated
249
- , hie-plugin-api
250
- , ghc-mod-core
251
- , hslogger
252
- , unordered-containers
253
- , yaml
254
241
ghc-options : -threaded -rtsopts -with-rtsopts=-N -Wall -Wredundant-constraints
255
242
if flag(pedantic)
256
243
ghc-options : -Werror
257
244
default-language : Haskell2010
258
245
259
- -- library hie-test-utils
260
- -- hs-source-dirs: test/utils
261
- -- exposed-modules: TestUtils
262
- -- build-depends: base
263
- -- , haskell-ide-engine
264
- -- , haskell-lsp
265
- -- , hie-plugin-api
266
- -- , aeson
267
- -- , containers
268
- -- , data-default
269
- -- , directory
270
- -- , filepath
271
- -- , ghc-mod-core
272
- -- , hslogger
273
- -- , hspec
274
- -- , text
275
- -- , unordered-containers
276
- -- , yaml
277
- -- ghc-options: -Wall -Wredundant-constraints
278
- -- if flag(pedantic)
279
- -- ghc-options: -Werror
280
- -- default-language: Haskell2010
281
-
282
246
test-suite func-test
283
247
type : exitcode-stdio-1.0
284
248
hs-source-dirs : test/functional
285
- , test/utils
286
249
main-is : Main.hs
287
250
other-modules : CompletionSpec
288
251
, CommandSpec
@@ -301,33 +264,22 @@ test-suite func-test
301
264
, RenameSpec
302
265
, SymbolsSpec
303
266
, Utils
304
-
305
- , TestUtils
306
267
-- This cannot currently be handled by hie (cabal-helper)
307
268
-- build-tool-depends: haskell-ide-engine:hie
308
269
build-depends : aeson
309
270
, base
310
- , containers
311
271
, data-default
312
272
, directory
313
273
, filepath
314
274
, lsp-test == 0.5. *
315
275
, haskell-ide-engine
316
- -- , hie-test-utils
276
+ , haskell-lsp-types >= 0.4
277
+ , hie-test-utils
317
278
, hie-plugin-api
318
279
, hspec
319
280
, lens
320
- , stm
321
281
, text
322
282
, unordered-containers
323
-
324
- -- remove these once hie-test-utils is reinstated
325
- , hie-plugin-api
326
- , ghc-mod-core
327
- , hslogger
328
- , unordered-containers
329
- , yaml
330
- , haskell-lsp
331
283
ghc-options : -threaded -rtsopts -with-rtsopts=-N -Wall -Wredundant-constraints
332
284
if flag(pedantic)
333
285
ghc-options : -Werror
0 commit comments