Skip to content

Commit 6bedcb2

Browse files
committed
Remove the separate ghcide-test-utils package
1 parent 598de16 commit 6bedcb2

File tree

7 files changed

+52
-76
lines changed

7 files changed

+52
-76
lines changed

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
@@ -77,8 +77,7 @@ library
7777
directory,
7878
extra,
7979
filepath,
80-
ghcide,
81-
ghcide-test-utils,
80+
ghcide:{ghcide, ghcide-test-utils},
8281
hashable,
8382
lens,
8483
lsp-test,

ghcide/ghcide.cabal

Lines changed: 47 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
@@ -316,6 +316,50 @@ executable ghcide
316316

317317
cpp-options: -DMONITORING_EKG
318318

319+
library ghcide-test-utils
320+
import: warnings
321+
visibility: public
322+
default-language: Haskell2010
323+
324+
hs-source-dirs: test/src test/cabal
325+
exposed-modules:
326+
Development.IDE.Test
327+
Development.IDE.Test.Runfiles
328+
Development.IDE.Test.Diagnostic
329+
330+
build-depends:
331+
aeson,
332+
base > 4.9 && < 5,
333+
containers,
334+
data-default,
335+
directory,
336+
extra,
337+
filepath,
338+
ghcide,
339+
lsp-types,
340+
hls-plugin-api,
341+
lens,
342+
lsp-test ^>= 0.16,
343+
tasty-hunit >= 0.10,
344+
text,
345+
row-types,
346+
347+
default-extensions:
348+
BangPatterns
349+
DeriveFunctor
350+
DeriveGeneric
351+
FlexibleContexts
352+
GeneralizedNewtypeDeriving
353+
LambdaCase
354+
NamedFieldPuns
355+
OverloadedStrings
356+
RecordWildCards
357+
ScopedTypeVariables
358+
StandaloneDeriving
359+
TupleSections
360+
TypeApplications
361+
ViewPatterns
362+
319363
test-suite ghcide-tests
320364
import: warnings
321365
type: exitcode-stdio-1.0
@@ -345,6 +389,7 @@ test-suite ghcide-tests
345389
--------------------------------------------------------------
346390
, ghc
347391
, ghcide
392+
, ghcide:ghcide-test-utils
348393
, hls-plugin-api
349394
, lens
350395
, list-t
@@ -374,7 +419,7 @@ test-suite ghcide-tests
374419
if impl(ghc <9.3)
375420
build-depends: ghc-typelits-knownnat
376421

377-
hs-source-dirs: test/cabal test/exe test/src
422+
hs-source-dirs: test/exe
378423
ghc-options: -threaded -O0 -Wno-name-shadowing
379424

380425
main-is: Main.hs
@@ -387,9 +432,6 @@ test-suite ghcide-tests
387432
CPPTests
388433
CradleTests
389434
DependentFileTest
390-
Development.IDE.Test
391-
Development.IDE.Test.Diagnostic
392-
Development.IDE.Test.Runfiles
393435
DiagnosticTests
394436
ExceptionTests
395437
FindDefinitionAndHoverTests

ghcide/test/ghcide-test-utils.cabal

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

haskell-language-server.cabal

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -325,7 +325,7 @@ test-suite hls-call-hierarchy-plugin-tests
325325
, filepath
326326
, haskell-language-server:hls-call-hierarchy-plugin
327327
, hls-test-utils == 2.6.0.0
328-
, ghcide-test-utils
328+
, ghcide:ghcide-test-utils
329329
, lens
330330
, lsp
331331
, lsp-test
@@ -1574,8 +1574,7 @@ test-suite hls-refactor-plugin-tests
15741574
, parser-combinators
15751575
, data-default
15761576
, extra
1577-
, ghcide
1578-
, ghcide-test-utils
1577+
, ghcide:{ghcide, ghcide-test-utils}
15791578
, shake
15801579
, hls-plugin-api
15811580
, lsp-test
@@ -1654,7 +1653,7 @@ test-suite hls-semantic-tokens-plugin-tests
16541653
, filepath
16551654
, haskell-language-server:hls-semantic-tokens-plugin
16561655
, hls-test-utils == 2.6.0.0
1657-
, ghcide-test-utils
1656+
, ghcide:ghcide-test-utils
16581657
, hls-plugin-api
16591658
, lens
16601659
, lsp
@@ -1863,8 +1862,7 @@ test-suite func-test
18631862
, hashable
18641863
, lens
18651864
, lens-aeson
1866-
, ghcide
1867-
, ghcide-test-utils
1865+
, ghcide:{ghcide, ghcide-test-utils}
18681866
, hls-test-utils == 2.6.0.0
18691867
, lsp-types
18701868
, aeson

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)