Skip to content

Commit 246e131

Browse files
authored
Delete library ghcide test utils (#4274)
* cleanup * cleanup * stylish * remove library ghcide-test-utils entirely * fix * fix * stylish
1 parent 9f3e274 commit 246e131

File tree

3 files changed

+14
-32
lines changed

3 files changed

+14
-32
lines changed

ghcide/ghcide.cabal

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -265,21 +265,3 @@ executable ghcide
265265

266266
if !flag(executable)
267267
buildable: False
268-
269-
library ghcide-test-utils
270-
import: warnings
271-
visibility: public
272-
default-language: GHC2021
273-
274-
hs-source-dirs: test/cabal
275-
exposed-modules:
276-
Development.IDE.Test.Runfiles
277-
278-
build-depends:
279-
base > 4.9 && < 5
280-
281-
default-extensions:
282-
LambdaCase
283-
OverloadedStrings
284-
RecordWildCards
285-
ViewPatterns

ghcide/test/exe/NonLspCommandLine.hs

Lines changed: 13 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,17 @@
11

22
module NonLspCommandLine (tests) where
33

4-
import Control.Monad ((>=>))
5-
import Data.Foldable (for_)
6-
import Development.IDE.Test.Runfiles
7-
import Development.Shake (getDirectoryFilesIO)
8-
import System.Directory (copyFile,
9-
createDirectoryIfMissing)
10-
import System.Directory.Extra (canonicalizePath)
11-
import System.Environment.Blank (setEnv)
12-
import System.Exit (ExitCode (ExitSuccess))
13-
import System.FilePath (takeDirectory, (</>))
4+
import Control.Monad ((>=>))
5+
import Data.Foldable (for_)
6+
import Development.Shake (getDirectoryFilesIO)
7+
import System.Directory (copyFile, createDirectoryIfMissing)
8+
import System.Directory.Extra (canonicalizePath)
9+
import System.Environment.Blank (setEnv)
10+
import System.Exit (ExitCode (ExitSuccess))
11+
import System.FilePath (takeDirectory, (</>))
1412
import qualified System.IO.Extra
15-
import System.Process.Extra (CreateProcess (cwd), proc,
16-
readCreateProcessWithExitCode)
13+
import System.Process.Extra (CreateProcess (cwd), proc,
14+
readCreateProcessWithExitCode)
1715
import Test.Tasty
1816
import Test.Tasty.HUnit
1917

@@ -33,6 +31,9 @@ tests = testGroup "ghcide command line"
3331
ec @?= ExitSuccess
3432
]
3533

34+
locateGhcideExecutable :: IO FilePath
35+
locateGhcideExecutable = pure "ghcide"
36+
3637
-- | Version of 'System.IO.Extra.withTempDir' that canonicalizes the path
3738
-- Which we need to do on macOS since the $TMPDIR can be in @/private/var@ or
3839
-- @/var@

haskell-language-server.cabal

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2109,7 +2109,6 @@ test-suite ghcide-tests
21092109
, filepath
21102110
, fuzzy
21112111
, ghcide
2112-
, ghcide:ghcide-test-utils
21132112
, hls-plugin-api
21142113
, lens
21152114
, list-t
@@ -2237,7 +2236,7 @@ library ghcide-bench-lib
22372236
directory,
22382237
extra,
22392238
filepath,
2240-
ghcide:{ghcide, ghcide-test-utils},
2239+
ghcide:{ghcide},
22412240
hashable,
22422241
lens,
22432242
lsp-test,

0 commit comments

Comments
 (0)