Skip to content

Commit 3515aae

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

7 files changed

+52
-73
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 & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ library
7878
extra,
7979
filepath,
8080
ghcide,
81-
ghcide-test-utils,
81+
ghcide:ghcide-test-utils,
8282
hashable,
8383
lens,
8484
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 & 4 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
@@ -1575,7 +1575,7 @@ test-suite hls-refactor-plugin-tests
15751575
, data-default
15761576
, extra
15771577
, ghcide
1578-
, ghcide-test-utils
1578+
, ghcide:ghcide-test-utils
15791579
, shake
15801580
, hls-plugin-api
15811581
, lsp-test
@@ -1654,7 +1654,7 @@ test-suite hls-semantic-tokens-plugin-tests
16541654
, filepath
16551655
, haskell-language-server:hls-semantic-tokens-plugin
16561656
, hls-test-utils == 2.6.0.0
1657-
, ghcide-test-utils
1657+
, ghcide:ghcide-test-utils
16581658
, hls-plugin-api
16591659
, lens
16601660
, lsp
@@ -1864,7 +1864,7 @@ test-suite func-test
18641864
, lens
18651865
, lens-aeson
18661866
, ghcide
1867-
, ghcide-test-utils
1867+
, ghcide:ghcide-test-utils
18681868
, hls-test-utils == 2.6.0.0
18691869
, lsp-types
18701870
, 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)