Skip to content

Commit 7db3869

Browse files
committed
Merge hls-test-utils into hls
1 parent 6bedcb2 commit 7db3869

File tree

1 file changed

+72
-58
lines changed

1 file changed

+72
-58
lines changed

haskell-language-server.cabal

Lines changed: 72 additions & 58 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,12 @@ flag dynamic
8080
default: True
8181
manual: True
8282

83+
----------------------------
84+
----------------------------
85+
-- PLUGINS
86+
----------------------------
87+
----------------------------
88+
8389
-----------------------------
8490
-- cabal-fmt plugin
8591
-----------------------------
@@ -125,8 +131,7 @@ test-suite hls-cabal-fmt-plugin-tests
125131
, base
126132
, directory
127133
, 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}
130135

131136
if flag(isolateCabalfmtTests)
132137
build-tool-depends: cabal-fmt:cabal-fmt ^>=0.1.6
@@ -202,8 +207,7 @@ test-suite hls-cabal-plugin-tests
202207
, bytestring
203208
, Cabal-syntax >= 3.7
204209
, 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}
207211
, lens
208212
, lsp
209213
, lsp-types
@@ -266,8 +270,7 @@ test-suite hls-class-plugin-tests
266270
, base
267271
, filepath
268272
, 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}
271274
, lens
272275
, lsp-types
273276
, row-types
@@ -323,8 +326,7 @@ test-suite hls-call-hierarchy-plugin-tests
323326
, containers
324327
, extra
325328
, 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}
328330
, ghcide:ghcide-test-utils
329331
, lens
330332
, lsp
@@ -407,9 +409,8 @@ test-suite hls-eval-plugin-tests
407409
, containers
408410
, extra
409411
, filepath
410-
, haskell-language-server:hls-eval-plugin
412+
, haskell-language-server:{hls-eval-plugin, hls-test-utils}
411413
, hls-plugin-api
412-
, hls-test-utils == 2.6.0.0
413414
, lens
414415
, lsp-types
415416
, text
@@ -462,8 +463,7 @@ test-suite hls-explicit-imports-plugin-tests
462463
, base
463464
, extra
464465
, filepath
465-
, haskell-language-server:hls-explicit-imports-plugin
466-
, hls-test-utils
466+
, haskell-language-server:{hls-explicit-imports-plugin, hls-test-utils}
467467
, lens
468468
, lsp-types
469469
, row-types
@@ -521,8 +521,7 @@ test-suite hls-rename-plugin-tests
521521
, containers
522522
, filepath
523523
, 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}
526525

527526
-----------------------------
528527
-- retrie plugin
@@ -581,8 +580,7 @@ test-suite hls-retrie-plugin-tests
581580
, containers
582581
, filepath
583582
, 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}
586584
, text
587585

588586
-----------------------------
@@ -650,9 +648,8 @@ test-suite hls-hlint-plugin-tests
650648
, base
651649
, containers
652650
, filepath
653-
, haskell-language-server:hls-hlint-plugin
651+
, haskell-language-server:{hls-hlint-plugin, hls-test-utils}
654652
, hls-plugin-api
655-
, hls-test-utils == 2.6.0.0
656653
, lens
657654
, lsp-types
658655
, row-types
@@ -721,9 +718,8 @@ test-suite hls-stan-plugin-tests
721718
, base
722719
, containers
723720
, filepath
724-
, haskell-language-server:hls-stan-plugin
721+
, haskell-language-server:{hls-stan-plugin, hls-test-utils}
725722
, hls-plugin-api
726-
, hls-test-utils == 2.6.0.0
727723
, lens
728724
, lsp-types
729725
, text
@@ -770,8 +766,7 @@ test-suite hls-module-name-plugin-tests
770766
build-depends:
771767
, base
772768
, 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}
775770

776771
-----------------------------
777772
-- pragmas plugin
@@ -812,8 +807,7 @@ test-suite hls-pragmas-plugin-tests
812807
, aeson
813808
, base
814809
, 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}
817811
, lens
818812
, lsp-types
819813
, text
@@ -873,8 +867,7 @@ test-suite hls-splice-plugin-tests
873867
build-depends:
874868
, base
875869
, 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}
878871
, text
879872
, row-types
880873

@@ -928,8 +921,7 @@ test-suite hls-alternate-number-format-plugin-tests
928921
build-depends:
929922
, base >=4.12 && < 5
930923
, 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}
933925
, regex-tdfa
934926
, tasty-quickcheck
935927
, text
@@ -987,8 +979,7 @@ test-suite hls-qualify-imported-names-plugin-tests
987979
, base
988980
, text
989981
, 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}
992983

993984
-----------------------------
994985
-- code range plugin
@@ -1039,8 +1030,7 @@ test-suite hls-code-range-plugin-tests
10391030
, base
10401031
, bytestring
10411032
, 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}
10441034
, lens
10451035
, lsp
10461036
, lsp-test
@@ -1094,8 +1084,7 @@ test-suite hls-change-type-signature-plugin-tests
10941084
build-depends:
10951085
, base >=4.12 && < 5
10961086
, 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}
10991088
, regex-tdfa
11001089
, text
11011090
default-extensions:
@@ -1150,8 +1139,7 @@ test-suite hls-gadt-plugin-tests
11501139
build-depends:
11511140
, base
11521141
, 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}
11551143
, text
11561144

11571145
-----------------------------
@@ -1194,8 +1182,7 @@ test-suite hls-explicit-fixity-plugin-tests
11941182
build-depends:
11951183
, base
11961184
, 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}
11991186
, text
12001187

12011188
-----------------------------
@@ -1241,8 +1228,7 @@ test-suite hls-explicit-record-fields-plugin-tests
12411228
, base
12421229
, filepath
12431230
, 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}
12461232

12471233
-----------------------------
12481234
-- overloaded record dot plugin
@@ -1287,8 +1273,7 @@ test-suite hls-overloaded-record-dot-plugin-tests
12871273
, base
12881274
, filepath
12891275
, 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}
12921277

12931278

12941279
-----------------------------
@@ -1327,8 +1312,7 @@ test-suite hls-floskell-plugin-tests
13271312
build-depends:
13281313
, base
13291314
, 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}
13321316

13331317
-----------------------------
13341318
-- fourmolu plugin
@@ -1375,9 +1359,8 @@ test-suite hls-fourmolu-plugin-tests
13751359
, base >=4.12 && <5
13761360
, aeson
13771361
, filepath
1378-
, haskell-language-server:hls-fourmolu-plugin
1362+
, haskell-language-server:{hls-fourmolu-plugin, hls-test-utils}
13791363
, hls-plugin-api
1380-
, hls-test-utils == 2.6.0.0
13811364
, lsp-test
13821365

13831366
-----------------------------
@@ -1424,9 +1407,8 @@ test-suite hls-ormolu-plugin-tests
14241407
, base
14251408
, aeson
14261409
, filepath
1427-
, haskell-language-server:hls-ormolu-plugin
1410+
, haskell-language-server:{hls-ormolu-plugin, hls-test-utils}
14281411
, hls-plugin-api
1429-
, hls-test-utils == 2.6.0.0
14301412
, lsp-types
14311413
, ormolu
14321414

@@ -1469,8 +1451,7 @@ test-suite hls-stylish-haskell-plugin-tests
14691451
build-depends:
14701452
, base
14711453
, 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}
14741455

14751456
-----------------------------
14761457
-- refactor plugin
@@ -1565,8 +1546,7 @@ test-suite hls-refactor-plugin-tests
15651546
build-depends:
15661547
, base
15671548
, 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}
15701550
, lens
15711551
, lsp-types
15721552
, text
@@ -1651,8 +1631,7 @@ test-suite hls-semantic-tokens-plugin-tests
16511631
, containers
16521632
, extra
16531633
, 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}
16561635
, ghcide:ghcide-test-utils
16571636
, hls-plugin-api
16581637
, lens
@@ -1668,9 +1647,11 @@ test-suite hls-semantic-tokens-plugin-tests
16681647
, template-haskell
16691648
, data-default
16701649

1671-
-----------------------------
1650+
----------------------------
1651+
----------------------------
16721652
-- HLS
1673-
-----------------------------
1653+
----------------------------
1654+
----------------------------
16741655

16751656
library
16761657
import: defaults
@@ -1863,7 +1844,7 @@ test-suite func-test
18631844
, lens
18641845
, lens-aeson
18651846
, ghcide:{ghcide, ghcide-test-utils}
1866-
, hls-test-utils == 2.6.0.0
1847+
, haskell-language-server:hls-test-utils
18671848
, lsp-types
18681849
, aeson
18691850
, hls-plugin-api
@@ -1909,7 +1890,7 @@ test-suite wrapper-test
19091890

19101891
build-depends:
19111892
process
1912-
, hls-test-utils
1893+
, haskell-language-server:hls-test-utils
19131894

19141895
hs-source-dirs: test/wrapper
19151896
main-is: Main.hs
@@ -1955,3 +1936,36 @@ benchmark benchmark
19551936
shake,
19561937
shake-bench == 0.2.*,
19571938
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

Comments
 (0)