@@ -80,6 +80,12 @@ flag dynamic
80
80
default : True
81
81
manual : True
82
82
83
+ ----------------------------
84
+ ----------------------------
85
+ -- PLUGINS
86
+ ----------------------------
87
+ ----------------------------
88
+
83
89
-----------------------------
84
90
-- cabal-fmt plugin
85
91
-----------------------------
@@ -125,8 +131,7 @@ test-suite hls-cabal-fmt-plugin-tests
125
131
, base
126
132
, directory
127
133
, filepath
128
- , haskell-language-server :hls-cabal-fmt-plugin
129
- , hls-test-utils == 2.6.0.0
134
+ , haskell-language-server :{hls-cabal-fmt-plugin, hls-test-utils}
130
135
131
136
if flag(isolateCabalfmtTests)
132
137
build-tool-depends : cabal-fmt :cabal-fmt ^>= 0.1.6
@@ -202,8 +207,7 @@ test-suite hls-cabal-plugin-tests
202
207
, bytestring
203
208
, Cabal-syntax >= 3.7
204
209
, filepath
205
- , haskell-language-server :hls-cabal-plugin
206
- , hls-test-utils == 2.6.0.0
210
+ , haskell-language-server :{hls-cabal-plugin, hls-test-utils}
207
211
, lens
208
212
, lsp
209
213
, lsp-types
@@ -266,8 +270,7 @@ test-suite hls-class-plugin-tests
266
270
, base
267
271
, filepath
268
272
, ghcide
269
- , haskell-language-server :hls-class-plugin
270
- , hls-test-utils == 2.6.0.0
273
+ , haskell-language-server :{hls-class-plugin, hls-test-utils}
271
274
, lens
272
275
, lsp-types
273
276
, row-types
@@ -323,8 +326,7 @@ test-suite hls-call-hierarchy-plugin-tests
323
326
, containers
324
327
, extra
325
328
, filepath
326
- , haskell-language-server :hls-call-hierarchy-plugin
327
- , hls-test-utils == 2.6.0.0
329
+ , haskell-language-server :{hls-call-hierarchy-plugin, hls-test-utils}
328
330
, ghcide :ghcide-test-utils
329
331
, lens
330
332
, lsp
@@ -407,9 +409,8 @@ test-suite hls-eval-plugin-tests
407
409
, containers
408
410
, extra
409
411
, filepath
410
- , haskell-language-server :hls-eval-plugin
412
+ , haskell-language-server :{ hls-eval-plugin, hls-test-utils}
411
413
, hls-plugin-api
412
- , hls-test-utils == 2.6.0.0
413
414
, lens
414
415
, lsp-types
415
416
, text
@@ -462,8 +463,7 @@ test-suite hls-explicit-imports-plugin-tests
462
463
, base
463
464
, extra
464
465
, filepath
465
- , haskell-language-server :hls-explicit-imports-plugin
466
- , hls-test-utils
466
+ , haskell-language-server :{hls-explicit-imports-plugin, hls-test-utils}
467
467
, lens
468
468
, lsp-types
469
469
, row-types
@@ -521,8 +521,7 @@ test-suite hls-rename-plugin-tests
521
521
, containers
522
522
, filepath
523
523
, hls-plugin-api
524
- , haskell-language-server :hls-rename-plugin
525
- , hls-test-utils == 2.6.0.0
524
+ , haskell-language-server :{hls-rename-plugin, hls-test-utils}
526
525
527
526
-----------------------------
528
527
-- retrie plugin
@@ -581,8 +580,7 @@ test-suite hls-retrie-plugin-tests
581
580
, containers
582
581
, filepath
583
582
, hls-plugin-api
584
- , haskell-language-server :{hls-refactor-plugin, hls-retrie-plugin}
585
- , hls-test-utils == 2.6.0.0
583
+ , haskell-language-server :{hls-refactor-plugin, hls-retrie-plugin, hls-test-utils}
586
584
, text
587
585
588
586
-----------------------------
@@ -650,9 +648,8 @@ test-suite hls-hlint-plugin-tests
650
648
, base
651
649
, containers
652
650
, filepath
653
- , haskell-language-server :hls-hlint-plugin
651
+ , haskell-language-server :{ hls-hlint-plugin, hls-test-utils}
654
652
, hls-plugin-api
655
- , hls-test-utils == 2.6.0.0
656
653
, lens
657
654
, lsp-types
658
655
, row-types
@@ -721,9 +718,8 @@ test-suite hls-stan-plugin-tests
721
718
, base
722
719
, containers
723
720
, filepath
724
- , haskell-language-server :hls-stan-plugin
721
+ , haskell-language-server :{ hls-stan-plugin, hls-test-utils}
725
722
, hls-plugin-api
726
- , hls-test-utils == 2.6.0.0
727
723
, lens
728
724
, lsp-types
729
725
, text
@@ -770,8 +766,7 @@ test-suite hls-module-name-plugin-tests
770
766
build-depends :
771
767
, base
772
768
, filepath
773
- , haskell-language-server :hls-module-name-plugin
774
- , hls-test-utils == 2.6.0.0
769
+ , haskell-language-server :{hls-module-name-plugin, hls-test-utils}
775
770
776
771
-----------------------------
777
772
-- pragmas plugin
@@ -812,8 +807,7 @@ test-suite hls-pragmas-plugin-tests
812
807
, aeson
813
808
, base
814
809
, filepath
815
- , haskell-language-server :hls-pragmas-plugin
816
- , hls-test-utils == 2.6.0.0
810
+ , haskell-language-server :{hls-pragmas-plugin, hls-test-utils}
817
811
, lens
818
812
, lsp-types
819
813
, text
@@ -873,8 +867,7 @@ test-suite hls-splice-plugin-tests
873
867
build-depends :
874
868
, base
875
869
, filepath
876
- , haskell-language-server :hls-splice-plugin
877
- , hls-test-utils == 2.6.0.0
870
+ , haskell-language-server :{hls-splice-plugin, hls-test-utils}
878
871
, text
879
872
, row-types
880
873
@@ -928,8 +921,7 @@ test-suite hls-alternate-number-format-plugin-tests
928
921
build-depends :
929
922
, base >= 4.12 && < 5
930
923
, filepath
931
- , haskell-language-server :hls-alternate-number-format-plugin
932
- , hls-test-utils == 2.6.0.0
924
+ , haskell-language-server :{hls-alternate-number-format-plugin, hls-test-utils}
933
925
, regex-tdfa
934
926
, tasty-quickcheck
935
927
, text
@@ -987,8 +979,7 @@ test-suite hls-qualify-imported-names-plugin-tests
987
979
, base
988
980
, text
989
981
, filepath
990
- , haskell-language-server :hls-qualify-imported-names-plugin
991
- , hls-test-utils == 2.6.0.0
982
+ , haskell-language-server :{hls-qualify-imported-names-plugin, hls-test-utils}
992
983
993
984
-----------------------------
994
985
-- code range plugin
@@ -1039,8 +1030,7 @@ test-suite hls-code-range-plugin-tests
1039
1030
, base
1040
1031
, bytestring
1041
1032
, filepath
1042
- , haskell-language-server :hls-code-range-plugin
1043
- , hls-test-utils == 2.6.0.0
1033
+ , haskell-language-server :{hls-code-range-plugin, hls-test-utils}
1044
1034
, lens
1045
1035
, lsp
1046
1036
, lsp-test
@@ -1094,8 +1084,7 @@ test-suite hls-change-type-signature-plugin-tests
1094
1084
build-depends :
1095
1085
, base >= 4.12 && < 5
1096
1086
, filepath
1097
- , haskell-language-server :hls-change-type-signature-plugin
1098
- , hls-test-utils == 2.6.0.0
1087
+ , haskell-language-server :{hls-change-type-signature-plugin, hls-test-utils}
1099
1088
, regex-tdfa
1100
1089
, text
1101
1090
default-extensions :
@@ -1150,8 +1139,7 @@ test-suite hls-gadt-plugin-tests
1150
1139
build-depends :
1151
1140
, base
1152
1141
, filepath
1153
- , haskell-language-server :hls-gadt-plugin
1154
- , hls-test-utils == 2.6.0.0
1142
+ , haskell-language-server :{hls-gadt-plugin, hls-test-utils}
1155
1143
, text
1156
1144
1157
1145
-----------------------------
@@ -1194,8 +1182,7 @@ test-suite hls-explicit-fixity-plugin-tests
1194
1182
build-depends :
1195
1183
, base
1196
1184
, filepath
1197
- , haskell-language-server :hls-explicit-fixity-plugin
1198
- , hls-test-utils == 2.6.0.0
1185
+ , haskell-language-server :{hls-explicit-fixity-plugin, hls-test-utils}
1199
1186
, text
1200
1187
1201
1188
-----------------------------
@@ -1241,8 +1228,7 @@ test-suite hls-explicit-record-fields-plugin-tests
1241
1228
, base
1242
1229
, filepath
1243
1230
, text
1244
- , haskell-language-server :hls-explicit-record-fields-plugin
1245
- , hls-test-utils
1231
+ , haskell-language-server :{hls-explicit-record-fields-plugin, hls-test-utils}
1246
1232
1247
1233
-----------------------------
1248
1234
-- overloaded record dot plugin
@@ -1287,8 +1273,7 @@ test-suite hls-overloaded-record-dot-plugin-tests
1287
1273
, base
1288
1274
, filepath
1289
1275
, text
1290
- , haskell-language-server :hls-overloaded-record-dot-plugin
1291
- , hls-test-utils
1276
+ , haskell-language-server :{hls-overloaded-record-dot-plugin, hls-test-utils}
1292
1277
1293
1278
1294
1279
-----------------------------
@@ -1327,8 +1312,7 @@ test-suite hls-floskell-plugin-tests
1327
1312
build-depends :
1328
1313
, base
1329
1314
, filepath
1330
- , haskell-language-server :hls-floskell-plugin
1331
- , hls-test-utils == 2.6.0.0
1315
+ , haskell-language-server :{hls-floskell-plugin, hls-test-utils}
1332
1316
1333
1317
-----------------------------
1334
1318
-- fourmolu plugin
@@ -1375,9 +1359,8 @@ test-suite hls-fourmolu-plugin-tests
1375
1359
, base >= 4.12 && < 5
1376
1360
, aeson
1377
1361
, filepath
1378
- , haskell-language-server :hls-fourmolu-plugin
1362
+ , haskell-language-server :{ hls-fourmolu-plugin, hls-test-utils}
1379
1363
, hls-plugin-api
1380
- , hls-test-utils == 2.6.0.0
1381
1364
, lsp-test
1382
1365
1383
1366
-----------------------------
@@ -1424,9 +1407,8 @@ test-suite hls-ormolu-plugin-tests
1424
1407
, base
1425
1408
, aeson
1426
1409
, filepath
1427
- , haskell-language-server :hls-ormolu-plugin
1410
+ , haskell-language-server :{ hls-ormolu-plugin, hls-test-utils}
1428
1411
, hls-plugin-api
1429
- , hls-test-utils == 2.6.0.0
1430
1412
, lsp-types
1431
1413
, ormolu
1432
1414
@@ -1469,8 +1451,7 @@ test-suite hls-stylish-haskell-plugin-tests
1469
1451
build-depends :
1470
1452
, base
1471
1453
, filepath
1472
- , haskell-language-server :hls-stylish-haskell-plugin
1473
- , hls-test-utils == 2.6.0.0
1454
+ , haskell-language-server :{hls-stylish-haskell-plugin, hls-test-utils}
1474
1455
1475
1456
-----------------------------
1476
1457
-- refactor plugin
@@ -1565,8 +1546,7 @@ test-suite hls-refactor-plugin-tests
1565
1546
build-depends :
1566
1547
, base
1567
1548
, filepath
1568
- , haskell-language-server :hls-refactor-plugin
1569
- , hls-test-utils == 2.6.0.0
1549
+ , haskell-language-server :{hls-refactor-plugin, hls-test-utils}
1570
1550
, lens
1571
1551
, lsp-types
1572
1552
, text
@@ -1651,8 +1631,7 @@ test-suite hls-semantic-tokens-plugin-tests
1651
1631
, containers
1652
1632
, extra
1653
1633
, filepath
1654
- , haskell-language-server :hls-semantic-tokens-plugin
1655
- , hls-test-utils == 2.6.0.0
1634
+ , haskell-language-server :{hls-semantic-tokens-plugin, hls-test-utils}
1656
1635
, ghcide :ghcide-test-utils
1657
1636
, hls-plugin-api
1658
1637
, lens
@@ -1668,9 +1647,11 @@ test-suite hls-semantic-tokens-plugin-tests
1668
1647
, template-haskell
1669
1648
, data-default
1670
1649
1671
- -----------------------------
1650
+ ----------------------------
1651
+ ----------------------------
1672
1652
-- HLS
1673
- -----------------------------
1653
+ ----------------------------
1654
+ ----------------------------
1674
1655
1675
1656
library
1676
1657
import : defaults
@@ -1863,7 +1844,7 @@ test-suite func-test
1863
1844
, lens
1864
1845
, lens-aeson
1865
1846
, ghcide :{ghcide, ghcide-test-utils}
1866
- , hls-test-utils == 2.6.0.0
1847
+ , haskell-language-server : hls-test-utils
1867
1848
, lsp-types
1868
1849
, aeson
1869
1850
, hls-plugin-api
@@ -1909,7 +1890,7 @@ test-suite wrapper-test
1909
1890
1910
1891
build-depends :
1911
1892
process
1912
- , hls-test-utils
1893
+ , haskell-language-server : hls-test-utils
1913
1894
1914
1895
hs-source-dirs : test/wrapper
1915
1896
main-is : Main.hs
@@ -1955,3 +1936,36 @@ benchmark benchmark
1955
1936
shake,
1956
1937
shake-bench == 0.2. *,
1957
1938
yaml
1939
+
1940
+ library hls-test-utils
1941
+ import : defaults, warnings, pedantic
1942
+ exposed-modules :
1943
+ Test.Hls
1944
+ Test.Hls.Util
1945
+ Test.Hls.FileSystem
1946
+
1947
+ hs-source-dirs : hls-test-utils/src
1948
+ build-depends :
1949
+ , aeson
1950
+ , async
1951
+ , base >= 4.12 && < 5
1952
+ , bytestring
1953
+ , containers
1954
+ , data-default
1955
+ , directory
1956
+ , extra
1957
+ , filepath
1958
+ , ghcide == 2.6.0.0
1959
+ , hls-plugin-api == 2.6.0.0
1960
+ , lens
1961
+ , lsp-test ^>= 0.16
1962
+ , lsp-types ^>= 2.1
1963
+ , tasty
1964
+ , tasty-expected-failure
1965
+ , tasty-golden
1966
+ , tasty-hunit
1967
+ , tasty-rerun
1968
+ , temporary
1969
+ , text
1970
+ , row-types
1971
+
0 commit comments