@@ -205,8 +205,39 @@ executable haskell-language-server-wrapper
205
205
, process
206
206
default-language : Haskell2010
207
207
208
+ -- This common stanza simulates a previous private lib
209
+ -- We removed it due to issues with stack when loading the project using a stack based hie.yaml
210
+ -- See https://github.com/haskell/haskell-language-server/issues/114
211
+ common hls-test-utils
212
+ import : agpl
213
+ hs-source-dirs : test/utils
214
+ other-modules : Test.Hls.Util
215
+ build-depends : base
216
+ , haskell-language-server
217
+ , haskell-lsp
218
+ , hie-bios
219
+ , aeson
220
+ , blaze-markup
221
+ , containers
222
+ , data-default
223
+ , directory
224
+ , filepath
225
+ , hslogger
226
+ , hspec
227
+ , hspec-core
228
+ , lsp-test
229
+ , stm
230
+ , tasty-hunit
231
+ , text
232
+ , unordered-containers
233
+ , yaml
234
+ ghc-options : -Wall -Wredundant-constraints
235
+ if flag(pedantic)
236
+ ghc-options : -Werror
237
+ default-language : Haskell2010
238
+
208
239
test-suite func-test
209
- import : agpl
240
+ import : agpl, hls-test-utils
210
241
type : exitcode-stdio-1.0
211
242
default-language : Haskell2010
212
243
build-tool-depends : haskell-language-server :haskell-language-server
@@ -219,7 +250,6 @@ test-suite func-test
219
250
, haskell-language-server
220
251
, haskell-lsp
221
252
, haskell-lsp-types
222
- , hls-test-utils
223
253
, hspec-expectations
224
254
, lens
225
255
, lsp-test >= 0.10.0.0
@@ -253,31 +283,3 @@ test-suite func-test
253
283
-threaded -rtsopts -with-rtsopts=-N
254
284
if flag(pedantic)
255
285
ghc-options : -Werror -Wredundant-constraints
256
-
257
- library hls-test-utils
258
- import : agpl
259
- hs-source-dirs : test/utils
260
- exposed-modules : Test.Hls.Util
261
- build-depends : base
262
- , haskell-language-server
263
- , haskell-lsp
264
- , hie-bios
265
- , aeson
266
- , blaze-markup
267
- , containers
268
- , data-default
269
- , directory
270
- , filepath
271
- , hslogger
272
- , hspec
273
- , hspec-core
274
- , lsp-test
275
- , stm
276
- , tasty-hunit
277
- , text
278
- , unordered-containers
279
- , yaml
280
- ghc-options : -Wall -Wredundant-constraints
281
- if flag(pedantic)
282
- ghc-options : -Werror
283
- default-language : Haskell2010
0 commit comments