Skip to content

Commit

Permalink
Remove the separate ghcide-test-utils package
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelpj committed Feb 1, 2024
1 parent 598de16 commit 6bedcb2
Show file tree
Hide file tree
Showing 7 changed files with 52 additions and 76 deletions.
1 change: 0 additions & 1 deletion cabal.project
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ packages:
./hls-graph
./ghcide
./ghcide-bench
./ghcide/test
./hls-plugin-api
./hls-test-utils

Expand Down
3 changes: 1 addition & 2 deletions ghcide-bench/ghcide-bench.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -77,8 +77,7 @@ library
directory,
extra,
filepath,
ghcide,
ghcide-test-utils,
ghcide:{ghcide, ghcide-test-utils},
hashable,
lens,
lsp-test,
Expand Down
52 changes: 47 additions & 5 deletions ghcide/ghcide.cabal
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
cabal-version: 3.0
cabal-version: 3.4
build-type: Simple
category: Development
name: ghcide
Expand Down Expand Up @@ -316,6 +316,50 @@ executable ghcide

cpp-options: -DMONITORING_EKG

library ghcide-test-utils
import: warnings
visibility: public
default-language: Haskell2010

hs-source-dirs: test/src test/cabal
exposed-modules:
Development.IDE.Test
Development.IDE.Test.Runfiles
Development.IDE.Test.Diagnostic

build-depends:
aeson,
base > 4.9 && < 5,
containers,
data-default,
directory,
extra,
filepath,
ghcide,
lsp-types,
hls-plugin-api,
lens,
lsp-test ^>= 0.16,
tasty-hunit >= 0.10,
text,
row-types,

default-extensions:
BangPatterns
DeriveFunctor
DeriveGeneric
FlexibleContexts
GeneralizedNewtypeDeriving
LambdaCase
NamedFieldPuns
OverloadedStrings
RecordWildCards
ScopedTypeVariables
StandaloneDeriving
TupleSections
TypeApplications
ViewPatterns

test-suite ghcide-tests
import: warnings
type: exitcode-stdio-1.0
Expand Down Expand Up @@ -345,6 +389,7 @@ test-suite ghcide-tests
--------------------------------------------------------------
, ghc
, ghcide
, ghcide:ghcide-test-utils
, hls-plugin-api
, lens
, list-t
Expand Down Expand Up @@ -374,7 +419,7 @@ test-suite ghcide-tests
if impl(ghc <9.3)
build-depends: ghc-typelits-knownnat

hs-source-dirs: test/cabal test/exe test/src
hs-source-dirs: test/exe
ghc-options: -threaded -O0 -Wno-name-shadowing

main-is: Main.hs
Expand All @@ -387,9 +432,6 @@ test-suite ghcide-tests
CPPTests
CradleTests
DependentFileTest
Development.IDE.Test
Development.IDE.Test.Diagnostic
Development.IDE.Test.Runfiles
DiagnosticTests
ExceptionTests
FindDefinitionAndHoverTests
Expand Down
60 changes: 0 additions & 60 deletions ghcide/test/ghcide-test-utils.cabal

This file was deleted.

10 changes: 4 additions & 6 deletions haskell-language-server.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -325,7 +325,7 @@ test-suite hls-call-hierarchy-plugin-tests
, filepath
, haskell-language-server:hls-call-hierarchy-plugin
, hls-test-utils == 2.6.0.0
, ghcide-test-utils
, ghcide:ghcide-test-utils
, lens
, lsp
, lsp-test
Expand Down Expand Up @@ -1574,8 +1574,7 @@ test-suite hls-refactor-plugin-tests
, parser-combinators
, data-default
, extra
, ghcide
, ghcide-test-utils
, ghcide:{ghcide, ghcide-test-utils}
, shake
, hls-plugin-api
, lsp-test
Expand Down Expand Up @@ -1654,7 +1653,7 @@ test-suite hls-semantic-tokens-plugin-tests
, filepath
, haskell-language-server:hls-semantic-tokens-plugin
, hls-test-utils == 2.6.0.0
, ghcide-test-utils
, ghcide:ghcide-test-utils
, hls-plugin-api
, lens
, lsp
Expand Down Expand Up @@ -1863,8 +1862,7 @@ test-suite func-test
, hashable
, lens
, lens-aeson
, ghcide
, ghcide-test-utils
, ghcide:{ghcide, ghcide-test-utils}
, hls-test-utils == 2.6.0.0
, lsp-types
, aeson
Expand Down
1 change: 0 additions & 1 deletion stack-lts21.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ packages:
- ./hie-compat
- ./hls-graph
- ./ghcide/
- ./ghcide/test
- ./hls-plugin-api
- ./hls-test-utils
# - ./shake-bench
Expand Down
1 change: 0 additions & 1 deletion stack.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ packages:
- ./hie-compat
- ./hls-graph
- ./ghcide/
- ./ghcide/test
- ./hls-plugin-api
- ./hls-test-utils
# - ./shake-bench
Expand Down

0 comments on commit 6bedcb2

Please sign in to comment.