Skip to content

Commit bee1fcb

Browse files
committed
WIP
1 parent e74372c commit bee1fcb

File tree

1 file changed

+72
-59
lines changed

1 file changed

+72
-59
lines changed

haskell-language-server.cabal

+72-59
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,12 @@ flag dynamic
8484
default: True
8585
manual: True
8686

87+
----------------------------
88+
----------------------------
89+
-- PLUGINS
90+
----------------------------
91+
----------------------------
92+
8793
-----------------------------
8894
-- cabal-fmt plugin
8995
-----------------------------
@@ -129,8 +135,7 @@ test-suite hls-cabal-fmt-plugin-tests
129135
, base
130136
, directory
131137
, filepath
132-
, haskell-language-server:hls-cabal-fmt-plugin
133-
, hls-test-utils == 2.6.0.0
138+
, haskell-language-server:{hls-cabal-fmt-plugin, hls-test-utils}
134139

135140
if flag(isolateCabalfmtTests)
136141
build-tool-depends: cabal-fmt:cabal-fmt ^>=0.1.6
@@ -207,8 +212,7 @@ test-suite hls-cabal-plugin-tests
207212
, Cabal-syntax >= 3.7
208213
, filepath
209214
, ghcide
210-
, haskell-language-server:hls-cabal-plugin
211-
, hls-test-utils == 2.6.0.0
215+
, haskell-language-server:{hls-cabal-plugin, hls-test-utils}
212216
, lens
213217
, lsp-types
214218
, text
@@ -268,8 +272,7 @@ test-suite hls-class-plugin-tests
268272
build-depends:
269273
, base
270274
, filepath
271-
, haskell-language-server:hls-class-plugin
272-
, hls-test-utils == 2.6.0.0
275+
, haskell-language-server:{hls-class-plugin, hls-test-utils}
273276
, lens
274277
, lsp-types
275278
, row-types
@@ -325,8 +328,7 @@ test-suite hls-call-hierarchy-plugin-tests
325328
, containers
326329
, extra
327330
, filepath
328-
, haskell-language-server:hls-call-hierarchy-plugin
329-
, hls-test-utils == 2.6.0.0
331+
, haskell-language-server:{hls-call-hierarchy-plugin, hls-test-utils}
330332
, ghcide:ghcide-test-utils
331333
, lens
332334
, lsp
@@ -405,9 +407,8 @@ test-suite hls-eval-plugin-tests
405407
, containers
406408
, extra
407409
, filepath
408-
, haskell-language-server:hls-eval-plugin
410+
, haskell-language-server:{hls-eval-plugin, hls-test-utils}
409411
, hls-plugin-api
410-
, hls-test-utils == 2.6.0.0
411412
, lens
412413
, lsp-types
413414
, text
@@ -458,8 +459,7 @@ test-suite hls-explicit-imports-plugin-tests
458459
, base
459460
, extra
460461
, filepath
461-
, haskell-language-server:hls-explicit-imports-plugin
462-
, hls-test-utils
462+
, haskell-language-server:{hls-explicit-imports-plugin, hls-test-utils}
463463
, lens
464464
, lsp-types
465465
, row-types
@@ -514,8 +514,7 @@ test-suite hls-rename-plugin-tests
514514
, containers
515515
, filepath
516516
, hls-plugin-api
517-
, haskell-language-server:hls-rename-plugin
518-
, hls-test-utils == 2.6.0.0
517+
, haskell-language-server:{hls-rename-plugin, hls-test-utils}
519518

520519
-----------------------------
521520
-- retrie plugin
@@ -571,8 +570,7 @@ test-suite hls-retrie-plugin-tests
571570
, containers
572571
, filepath
573572
, hls-plugin-api
574-
, haskell-language-server:{hls-refactor-plugin, hls-retrie-plugin}
575-
, hls-test-utils == 2.6.0.0
573+
, haskell-language-server:{hls-refactor-plugin, hls-retrie-plugin, hls-test-utils}
576574
, text
577575

578576
-----------------------------
@@ -633,9 +631,8 @@ test-suite hls-hlint-plugin-tests
633631
, base
634632
, containers
635633
, filepath
636-
, haskell-language-server:hls-hlint-plugin
634+
, haskell-language-server:{hls-hlint-plugin, hls-test-utils}
637635
, hls-plugin-api
638-
, hls-test-utils == 2.6.0.0
639636
, lens
640637
, lsp-types
641638
, row-types
@@ -695,9 +692,8 @@ test-suite hls-stan-plugin-tests
695692
build-depends:
696693
, base
697694
, filepath
698-
, haskell-language-server:hls-stan-plugin
695+
, haskell-language-server:{hls-stan-plugin, hls-test-utils}
699696
, hls-plugin-api
700-
, hls-test-utils == 2.6.0.0
701697
, lens
702698
, lsp-types
703699
, text
@@ -743,8 +739,7 @@ test-suite hls-module-name-plugin-tests
743739
build-depends:
744740
, base
745741
, filepath
746-
, haskell-language-server:hls-module-name-plugin
747-
, hls-test-utils == 2.6.0.0
742+
, haskell-language-server:{hls-module-name-plugin, hls-test-utils}
748743

749744
-----------------------------
750745
-- pragmas plugin
@@ -785,8 +780,7 @@ test-suite hls-pragmas-plugin-tests
785780
, aeson
786781
, base
787782
, filepath
788-
, haskell-language-server:hls-pragmas-plugin
789-
, hls-test-utils == 2.6.0.0
783+
, haskell-language-server:{hls-pragmas-plugin, hls-test-utils}
790784
, lens
791785
, lsp-types
792786
, text
@@ -841,8 +835,7 @@ test-suite hls-splice-plugin-tests
841835
build-depends:
842836
, base
843837
, filepath
844-
, haskell-language-server:hls-splice-plugin
845-
, hls-test-utils == 2.6.0.0
838+
, haskell-language-server:{hls-splice-plugin, hls-test-utils}
846839
, text
847840
, row-types
848841

@@ -895,8 +888,7 @@ test-suite hls-alternate-number-format-plugin-tests
895888
build-depends:
896889
, base >=4.12 && < 5
897890
, filepath
898-
, haskell-language-server:hls-alternate-number-format-plugin
899-
, hls-test-utils == 2.6.0.0
891+
, haskell-language-server:{hls-alternate-number-format-plugin, hls-test-utils}
900892
, regex-tdfa
901893
, tasty-quickcheck
902894
, text
@@ -947,8 +939,7 @@ test-suite hls-qualify-imported-names-plugin-tests
947939
, base
948940
, text
949941
, filepath
950-
, haskell-language-server:hls-qualify-imported-names-plugin
951-
, hls-test-utils == 2.6.0.0
942+
, haskell-language-server:{hls-qualify-imported-names-plugin, hls-test-utils}
952943

953944
-----------------------------
954945
-- code range plugin
@@ -999,8 +990,7 @@ test-suite hls-code-range-plugin-tests
999990
, base
1000991
, bytestring
1001992
, filepath
1002-
, haskell-language-server:hls-code-range-plugin
1003-
, hls-test-utils == 2.6.0.0
993+
, haskell-language-server:{hls-code-range-plugin, hls-test-utils}
1004994
, lens
1005995
, lsp
1006996
, lsp-test
@@ -1050,8 +1040,7 @@ test-suite hls-change-type-signature-plugin-tests
10501040
build-depends:
10511041
, base >=4.12 && < 5
10521042
, filepath
1053-
, haskell-language-server:hls-change-type-signature-plugin
1054-
, hls-test-utils == 2.6.0.0
1043+
, haskell-language-server:{hls-change-type-signature-plugin, hls-test-utils}
10551044
, regex-tdfa
10561045
, text
10571046
default-extensions:
@@ -1104,8 +1093,7 @@ test-suite hls-gadt-plugin-tests
11041093
build-depends:
11051094
, base
11061095
, filepath
1107-
, haskell-language-server:hls-gadt-plugin
1108-
, hls-test-utils == 2.6.0.0
1096+
, haskell-language-server:{hls-gadt-plugin, hls-test-utils}
11091097
, text
11101098

11111099
-----------------------------
@@ -1148,8 +1136,7 @@ test-suite hls-explicit-fixity-plugin-tests
11481136
build-depends:
11491137
, base
11501138
, filepath
1151-
, haskell-language-server:hls-explicit-fixity-plugin
1152-
, hls-test-utils == 2.6.0.0
1139+
, haskell-language-server:{hls-explicit-fixity-plugin, hls-test-utils}
11531140
, text
11541141

11551142
-----------------------------
@@ -1195,8 +1182,7 @@ test-suite hls-explicit-record-fields-plugin-tests
11951182
, base
11961183
, filepath
11971184
, text
1198-
, haskell-language-server:hls-explicit-record-fields-plugin
1199-
, hls-test-utils
1185+
, haskell-language-server:{hls-explicit-record-fields-plugin, hls-test-utils}
12001186

12011187
-----------------------------
12021188
-- overloaded record dot plugin
@@ -1239,8 +1225,7 @@ test-suite hls-overloaded-record-dot-plugin-tests
12391225
, base
12401226
, filepath
12411227
, text
1242-
, haskell-language-server:hls-overloaded-record-dot-plugin
1243-
, hls-test-utils
1228+
, haskell-language-server:{hls-overloaded-record-dot-plugin, hls-test-utils}
12441229

12451230

12461231
-----------------------------
@@ -1279,8 +1264,7 @@ test-suite hls-floskell-plugin-tests
12791264
build-depends:
12801265
, base
12811266
, filepath
1282-
, haskell-language-server:hls-floskell-plugin
1283-
, hls-test-utils == 2.6.0.0
1267+
, haskell-language-server:{hls-floskell-plugin, hls-test-utils}
12841268

12851269
-----------------------------
12861270
-- fourmolu plugin
@@ -1327,9 +1311,8 @@ test-suite hls-fourmolu-plugin-tests
13271311
, base >=4.12 && <5
13281312
, aeson
13291313
, filepath
1330-
, haskell-language-server:hls-fourmolu-plugin
1314+
, haskell-language-server:{hls-fourmolu-plugin, hls-test-utils}
13311315
, hls-plugin-api
1332-
, hls-test-utils == 2.6.0.0
13331316
, lsp-test
13341317

13351318
-----------------------------
@@ -1376,9 +1359,8 @@ test-suite hls-ormolu-plugin-tests
13761359
, base
13771360
, aeson
13781361
, filepath
1379-
, haskell-language-server:hls-ormolu-plugin
1362+
, haskell-language-server:{hls-ormolu-plugin, hls-test-utils}
13801363
, hls-plugin-api
1381-
, hls-test-utils == 2.6.0.0
13821364
, lsp-types
13831365
, ormolu
13841366

@@ -1421,8 +1403,7 @@ test-suite hls-stylish-haskell-plugin-tests
14211403
build-depends:
14221404
, base
14231405
, filepath
1424-
, haskell-language-server:hls-stylish-haskell-plugin
1425-
, hls-test-utils == 2.6.0.0
1406+
, haskell-language-server:{hls-stylish-haskell-plugin, hls-test-utils}
14261407

14271408
-----------------------------
14281409
-- refactor plugin
@@ -1505,8 +1486,7 @@ test-suite hls-refactor-plugin-tests
15051486
build-depends:
15061487
, base
15071488
, filepath
1508-
, haskell-language-server:hls-refactor-plugin
1509-
, hls-test-utils == 2.6.0.0
1489+
, haskell-language-server:{hls-refactor-plugin, hls-test-utils}
15101490
, lens
15111491
, lsp-types
15121492
, text
@@ -1587,8 +1567,7 @@ test-suite hls-semantic-tokens-plugin-tests
15871567
, base
15881568
, containers
15891569
, filepath
1590-
, haskell-language-server:hls-semantic-tokens-plugin
1591-
, hls-test-utils == 2.6.0.0
1570+
, haskell-language-server:{hls-semantic-tokens-plugin, hls-test-utils}
15921571
, ghcide:ghcide-test-utils
15931572
, hls-plugin-api
15941573
, lens
@@ -1601,9 +1580,11 @@ test-suite hls-semantic-tokens-plugin-tests
16011580
, hls-plugin-api == 2.6.0.0
16021581
, data-default
16031582

1604-
-----------------------------
1583+
----------------------------
1584+
----------------------------
16051585
-- HLS
1606-
-----------------------------
1586+
----------------------------
1587+
----------------------------
16071588

16081589
library
16091590
import: defaults
@@ -1763,10 +1744,9 @@ test-suite func-test
17631744
, extra
17641745
, filepath
17651746
, ghcide:{ghcide, ghcide-test-utils}
1766-
, ghcide-test-utils
17671747
, hashable
17681748
, hls-plugin-api
1769-
, hls-test-utils == 2.6.0.0
1749+
, haskell-language-server:hls-test-utils
17701750
, lens
17711751
, lsp-test
17721752
, lsp-types
@@ -1811,7 +1791,7 @@ test-suite wrapper-test
18111791
build-depends:
18121792
, base >=4.16 && <5
18131793
, extra
1814-
, hls-test-utils
1794+
, haskell-language-server:hls-test-utils
18151795
, process
18161796

18171797
hs-source-dirs: test/wrapper
@@ -1852,3 +1832,36 @@ benchmark benchmark
18521832
, shake-bench == 0.2.*
18531833
, text
18541834
, yaml
1835+
1836+
library hls-test-utils
1837+
import: defaults, warnings, pedantic
1838+
exposed-modules:
1839+
Test.Hls
1840+
Test.Hls.Util
1841+
Test.Hls.FileSystem
1842+
1843+
hs-source-dirs: hls-test-utils/src
1844+
build-depends:
1845+
, aeson
1846+
, async
1847+
, base >=4.12 && <5
1848+
, bytestring
1849+
, containers
1850+
, data-default
1851+
, directory
1852+
, extra
1853+
, filepath
1854+
, ghcide == 2.6.0.0
1855+
, hls-plugin-api == 2.6.0.0
1856+
, lens
1857+
, lsp-test ^>=0.16
1858+
, lsp-types ^>=2.1
1859+
, tasty
1860+
, tasty-expected-failure
1861+
, tasty-golden
1862+
, tasty-hunit
1863+
, tasty-rerun
1864+
, temporary
1865+
, text
1866+
, row-types
1867+

0 commit comments

Comments
 (0)