@@ -60,7 +60,6 @@ library
6060 filepath,
6161 fingertree,
6262 focus,
63- ghc-exactprint < 1 || >= 1.4 ,
6463 ghc-trace-events,
6564 Glob,
6665 haddock-library >= 1.8 && < 1.11 ,
@@ -74,16 +73,13 @@ library
7473 lsp ^>= 1.5.0.0 ,
7574 monoid-subclasses,
7675 mtl,
77- network-uri,
7876 optparse-applicative,
7977 parallel,
8078 prettyprinter-ansi-terminal,
8179 prettyprinter >= 1.6 ,
8280 random,
8381 regex-tdfa >= 1.3.1.0 ,
84- retrie,
8582 text-rope,
86- safe,
8783 safe-exceptions,
8884 hls-graph ^>= 1.7 ,
8985 sorted-list,
@@ -95,9 +91,7 @@ library
9591 time,
9692 transformers,
9793 unordered-containers >= 0.2.10.0 ,
98- utf8-string,
9994 vector,
100- vector-algorithms,
10195 hslogger,
10296 Diff ^>= 0.4.0 ,
10397 vector,
@@ -114,9 +108,6 @@ library
114108 hie-bios ^>= 0.9.1 ,
115109 implicit-hie-cradle ^>= 0.3.0.5 || ^>= 0.5 ,
116110 base16-bytestring >= 0.1.1 && < 1.1
117- if impl(ghc >= 9.2 )
118- build-depends :
119- ghc-exactprint >= 1.4
120111 if os(windows)
121112 build-depends :
122113 Win32
@@ -172,7 +163,6 @@ library
172163 Development.IDE.GHC.Compat
173164 Development.IDE.GHC.Compat.Core
174165 Development.IDE.GHC.Compat.Env
175- Development.IDE.GHC.Compat.ExactPrint
176166 Development.IDE.GHC.Compat.Iface
177167 Development.IDE.GHC.Compat.Logger
178168 Development.IDE.GHC.Compat.Outputable
@@ -182,9 +172,7 @@ library
182172 Development.IDE.GHC.Compat.Util
183173 Development.IDE.Core.Compile
184174 Development.IDE.GHC.CoreFile
185- Development.IDE.GHC.Dump
186175 Development.IDE.GHC.Error
187- Development.IDE.GHC.ExactPrint
188176 Development.IDE.GHC.Orphans
189177 Development.IDE.GHC.Util
190178 Development.IDE.Import.DependencyInformation
@@ -214,8 +202,6 @@ library
214202 Development.IDE.Plugin
215203 Development.IDE.Plugin.Completions
216204 Development.IDE.Plugin.Completions.Types
217- Development.IDE.Plugin.CodeAction
218- Development.IDE.Plugin.CodeAction.ExactPrint
219205 Development.IDE.Plugin.HLS
220206 Development.IDE.Plugin.HLS.GhcIde
221207 Development.IDE.Plugin.Test
@@ -226,8 +212,6 @@ library
226212 Development.IDE.Core.FileExists
227213 Development.IDE.GHC.CPP
228214 Development.IDE.GHC.Warnings
229- Development.IDE.Plugin.CodeAction.PositionIndexed
230- Development.IDE.Plugin.CodeAction.Args
231215 Development.IDE.Plugin.Completions.Logic
232216 Development.IDE.Session.VersionCheck
233217 Development.IDE.Types.Action
@@ -365,6 +349,7 @@ test-suite ghcide-tests
365349 ghc,
366350 --------------------------------------------------------------
367351 ghcide,
352+ ghcide-test-utils,
368353 ghc-typelits-knownnat,
369354 lsp,
370355 lsp-types,
@@ -393,12 +378,10 @@ test-suite ghcide-tests
393378 build-depends :
394379 record-dot-preprocessor,
395380 record-hasfield
396- hs-source-dirs : test/cabal test/exe test/src bench/lib
381+ hs-source-dirs : test/cabal test/exe bench/lib
397382 ghc-options : -threaded -Wall -Wno-name-shadowing -O0 -Wno-unticked-promoted-constructors
398383 main-is : Main.hs
399384 other-modules :
400- Development.IDE.Test
401- Development.IDE.Test.Diagnostic
402385 Development.IDE.Test.Runfiles
403386 FuzzySearch
404387 Progress
@@ -418,3 +401,42 @@ test-suite ghcide-tests
418401 TupleSections
419402 TypeApplications
420403 ViewPatterns
404+
405+ library ghcide-test-utils
406+ visibility : public
407+ default-language : Haskell2010
408+ build-depends :
409+ aeson,
410+ base,
411+ containers,
412+ data-default,
413+ directory,
414+ extra,
415+ filepath,
416+ ghcide,
417+ lsp-types,
418+ hls-plugin-api,
419+ lens,
420+ lsp-test ^>= 0.14 ,
421+ tasty-hunit >= 0.10 ,
422+ text,
423+ hs-source-dirs : test/src
424+ ghc-options : -Wunused-packages
425+ exposed-modules :
426+ Development.IDE.Test
427+ Development.IDE.Test.Diagnostic
428+ default-extensions :
429+ BangPatterns
430+ DeriveFunctor
431+ DeriveGeneric
432+ FlexibleContexts
433+ GeneralizedNewtypeDeriving
434+ LambdaCase
435+ NamedFieldPuns
436+ OverloadedStrings
437+ RecordWildCards
438+ ScopedTypeVariables
439+ StandaloneDeriving
440+ TupleSections
441+ TypeApplications
442+ ViewPatterns
0 commit comments