Skip to content

Commit a4650ab

Browse files
authored
Merge branch 'master' into jhrcek/remove-ghc-pre-0.9-workarounds
2 parents 15295b8 + 949f3b8 commit a4650ab

File tree

8 files changed

+58
-74
lines changed

8 files changed

+58
-74
lines changed

.github/workflows/test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ jobs:
101101
os: ${{ runner.os }}
102102

103103
- name: Build
104-
run: cabal build
104+
run: cabal build all
105105

106106
- name: Set test options
107107
# See https://github.com/ocharles/tasty-rerun/issues/22 for why we need

cabal.project

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ packages:
55
./hls-graph
66
./ghcide
77
./ghcide-bench
8-
./ghcide/test
98
./hls-plugin-api
109
./hls-test-utils
1110

ghcide-bench/ghcide-bench.cabal

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,8 +67,7 @@ library
6767
directory,
6868
extra,
6969
filepath,
70-
ghcide,
71-
ghcide-test-utils,
70+
ghcide:{ghcide, ghcide-test-utils},
7271
hashable,
7372
lens,
7473
lsp-test,

ghcide/ghcide.cabal

Lines changed: 37 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
cabal-version: 3.0
1+
cabal-version: 3.4
22
build-type: Simple
33
category: Development
44
name: ghcide
@@ -280,6 +280,40 @@ executable ghcide
280280
if !flag(executable)
281281
buildable: False
282282

283+
library ghcide-test-utils
284+
import: warnings
285+
visibility: public
286+
default-language: GHC2021
287+
288+
hs-source-dirs: test/src test/cabal
289+
exposed-modules:
290+
Development.IDE.Test
291+
Development.IDE.Test.Runfiles
292+
Development.IDE.Test.Diagnostic
293+
294+
build-depends:
295+
aeson,
296+
base > 4.9 && < 5,
297+
containers,
298+
data-default,
299+
directory,
300+
extra,
301+
filepath,
302+
ghcide,
303+
lsp-types,
304+
hls-plugin-api,
305+
lens,
306+
lsp-test ^>= 0.17,
307+
tasty-hunit >= 0.10,
308+
text,
309+
row-types,
310+
311+
default-extensions:
312+
LambdaCase
313+
OverloadedStrings
314+
RecordWildCards
315+
ViewPatterns
316+
283317
test-suite ghcide-tests
284318
import: warnings
285319
type: exitcode-stdio-1.0
@@ -301,6 +335,7 @@ test-suite ghcide-tests
301335
, filepath
302336
, fuzzy
303337
, ghcide
338+
, ghcide:ghcide-test-utils
304339
, hls-plugin-api
305340
, lens
306341
, list-t
@@ -330,7 +365,7 @@ test-suite ghcide-tests
330365
if impl(ghc <9.3)
331366
build-depends: ghc-typelits-knownnat
332367

333-
hs-source-dirs: test/cabal test/exe test/src
368+
hs-source-dirs: test/exe
334369
ghc-options: -threaded -O0
335370

336371
main-is: Main.hs
@@ -343,9 +378,6 @@ test-suite ghcide-tests
343378
CPPTests
344379
CradleTests
345380
DependentFileTest
346-
Development.IDE.Test
347-
Development.IDE.Test.Diagnostic
348-
Development.IDE.Test.Runfiles
349381
DiagnosticTests
350382
ExceptionTests
351383
FindDefinitionAndHoverTests

ghcide/test/ghcide-test-utils.cabal

Lines changed: 0 additions & 50 deletions
This file was deleted.

haskell-language-server.cabal

Lines changed: 19 additions & 13 deletions
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
-----------------------------
@@ -326,8 +332,8 @@ test-suite hls-call-hierarchy-plugin-tests
326332
, extra
327333
, filepath
328334
, haskell-language-server:hls-call-hierarchy-plugin
329-
, hls-test-utils == 2.6.0.0
330-
, ghcide-test-utils
335+
, hls-test-utils == 2.6.0.0
336+
, ghcide:ghcide-test-utils
331337
, lens
332338
, lsp
333339
, lsp-test
@@ -459,7 +465,7 @@ test-suite hls-explicit-imports-plugin-tests
459465
, extra
460466
, filepath
461467
, haskell-language-server:hls-explicit-imports-plugin
462-
, hls-test-utils
468+
, hls-test-utils == 2.6.0.0
463469
, lens
464470
, lsp-types
465471
, row-types
@@ -1194,7 +1200,7 @@ test-suite hls-explicit-record-fields-plugin-tests
11941200
, filepath
11951201
, text
11961202
, haskell-language-server:hls-explicit-record-fields-plugin
1197-
, hls-test-utils
1203+
, hls-test-utils == 2.6.0.0
11981204

11991205
-----------------------------
12001206
-- overloaded record dot plugin
@@ -1238,7 +1244,7 @@ test-suite hls-overloaded-record-dot-plugin-tests
12381244
, filepath
12391245
, text
12401246
, haskell-language-server:hls-overloaded-record-dot-plugin
1241-
, hls-test-utils
1247+
, hls-test-utils == 2.6.0.0
12421248

12431249

12441250
-----------------------------
@@ -1511,8 +1517,7 @@ test-suite hls-refactor-plugin-tests
15111517
, parser-combinators
15121518
, data-default
15131519
, extra
1514-
, ghcide
1515-
, ghcide-test-utils
1520+
, ghcide:{ghcide, ghcide-test-utils}
15161521
, shake
15171522
, hls-plugin-api
15181523
, lsp-test
@@ -1589,7 +1594,7 @@ test-suite hls-semantic-tokens-plugin-tests
15891594
, filepath
15901595
, haskell-language-server:hls-semantic-tokens-plugin
15911596
, hls-test-utils == 2.6.0.0
1592-
, ghcide-test-utils
1597+
, ghcide:ghcide-test-utils
15931598
, hls-plugin-api
15941599
, lens
15951600
, lsp
@@ -1602,9 +1607,11 @@ test-suite hls-semantic-tokens-plugin-tests
16021607
, data-default
16031608
, row-types
16041609

1605-
-----------------------------
1610+
----------------------------
1611+
----------------------------
16061612
-- HLS
1607-
-----------------------------
1613+
----------------------------
1614+
----------------------------
16081615

16091616
library
16101617
import: defaults
@@ -1763,8 +1770,7 @@ test-suite func-test
17631770
, deepseq
17641771
, extra
17651772
, filepath
1766-
, ghcide
1767-
, ghcide-test-utils
1773+
, ghcide:{ghcide, ghcide-test-utils}
17681774
, hashable
17691775
, hls-plugin-api
17701776
, hls-test-utils == 2.6.0.0
@@ -1812,7 +1818,7 @@ test-suite wrapper-test
18121818
build-depends:
18131819
, base >=4.16 && <5
18141820
, extra
1815-
, hls-test-utils
1821+
, hls-test-utils == 2.6.0.0
18161822
, process
18171823

18181824
hs-source-dirs: test/wrapper

stack-lts21.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ packages:
55
- ./hie-compat
66
- ./hls-graph
77
- ./ghcide/
8-
- ./ghcide/test
98
- ./hls-plugin-api
109
- ./hls-test-utils
1110
# - ./shake-bench

stack.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ packages:
55
- ./hie-compat
66
- ./hls-graph
77
- ./ghcide/
8-
- ./ghcide/test
98
- ./hls-plugin-api
109
- ./hls-test-utils
1110
# - ./shake-bench

0 commit comments

Comments
 (0)