1- cabal-version : 2.4
1+ cabal-version : 3.0
22build-type : Simple
33category : Development
44name : ghcide
@@ -59,7 +59,6 @@ library
5959 filepath,
6060 fingertree,
6161 focus,
62- ghc-exactprint < 1 || >= 1.4 ,
6362 ghc-trace-events,
6463 Glob,
6564 haddock-library >= 1.8 && < 1.11 ,
@@ -71,18 +70,14 @@ library
7170 hiedb == 0.4.1. *,
7271 lsp-types ^>= 1.4.0.1 ,
7372 lsp ^>= 1.4.0.0 ,
74- monoid-subclasses,
7573 mtl,
76- network-uri,
7774 optparse-applicative,
7875 parallel,
7976 prettyprinter-ansi-terminal,
8077 prettyprinter >= 1.6 ,
8178 random,
8279 regex-tdfa >= 1.3.1.0 ,
83- retrie,
8480 rope-utf16-splay,
85- safe,
8681 safe-exceptions,
8782 hls-graph ^>= 1.7 ,
8883 sorted-list,
@@ -94,9 +89,7 @@ library
9489 time,
9590 transformers,
9691 unordered-containers >= 0.2.10.0 ,
97- utf8-string,
9892 vector,
99- vector-algorithms,
10093 hslogger,
10194 Diff ^>= 0.4.0 ,
10295 vector,
@@ -113,9 +106,6 @@ library
113106 hie-bios ^>= 0.9.1 ,
114107 implicit-hie-cradle ^>= 0.3.0.5 || ^>= 0.5 ,
115108 base16-bytestring >= 0.1.1 && < 1.1
116- if impl(ghc >= 9.2 )
117- build-depends :
118- ghc-exactprint >= 1.4
119109 if os(windows)
120110 build-depends :
121111 Win32
@@ -171,7 +161,6 @@ library
171161 Development.IDE.GHC.Compat
172162 Development.IDE.GHC.Compat.Core
173163 Development.IDE.GHC.Compat.Env
174- Development.IDE.GHC.Compat.ExactPrint
175164 Development.IDE.GHC.Compat.Iface
176165 Development.IDE.GHC.Compat.Logger
177166 Development.IDE.GHC.Compat.Outputable
@@ -183,7 +172,6 @@ library
183172 Development.IDE.GHC.CoreFile
184173 Development.IDE.GHC.Dump
185174 Development.IDE.GHC.Error
186- Development.IDE.GHC.ExactPrint
187175 Development.IDE.GHC.Orphans
188176 Development.IDE.GHC.Util
189177 Development.IDE.Import.DependencyInformation
@@ -212,8 +200,6 @@ library
212200 Development.IDE.Plugin
213201 Development.IDE.Plugin.Completions
214202 Development.IDE.Plugin.Completions.Types
215- Development.IDE.Plugin.CodeAction
216- Development.IDE.Plugin.CodeAction.ExactPrint
217203 Development.IDE.Plugin.HLS
218204 Development.IDE.Plugin.HLS.GhcIde
219205 Development.IDE.Plugin.Test
@@ -225,8 +211,6 @@ library
225211 Development.IDE.GHC.CPP
226212 Development.IDE.GHC.Warnings
227213 Development.IDE.LSP.Notifications
228- Development.IDE.Plugin.CodeAction.PositionIndexed
229- Development.IDE.Plugin.CodeAction.Args
230214 Development.IDE.Plugin.Completions.Logic
231215 Development.IDE.Session.VersionCheck
232216 Development.IDE.Types.Action
@@ -405,6 +389,7 @@ test-suite ghcide-tests
405389 ghc,
406390 --------------------------------------------------------------
407391 ghcide,
392+ ghcide-test-utils,
408393 ghc-typelits-knownnat,
409394 haddock-library ,
410395 lsp,
@@ -442,12 +427,10 @@ test-suite ghcide-tests
442427 build-depends :
443428 record-dot-preprocessor,
444429 record-hasfield
445- hs-source-dirs : test/cabal test/exe test/src bench/lib
430+ hs-source-dirs : test/cabal test/exe bench/lib
446431 ghc-options : -threaded -Wall -Wno-name-shadowing -O0 -Wno-unticked-promoted-constructors
447432 main-is : Main.hs
448433 other-modules :
449- Development.IDE.Test
450- Development.IDE.Test.Diagnostic
451434 Development.IDE.Test.Runfiles
452435 Experiments
453436 Experiments.Types
@@ -470,6 +453,45 @@ test-suite ghcide-tests
470453 TypeApplications
471454 ViewPatterns
472455
456+ library ghcide-test-utils
457+ visibility : public
458+ default-language : Haskell2010
459+ build-depends :
460+ aeson,
461+ base,
462+ containers,
463+ data-default,
464+ directory,
465+ extra,
466+ filepath,
467+ ghcide,
468+ lsp-types,
469+ hls-plugin-api,
470+ lens,
471+ lsp-test ^>= 0.14 ,
472+ tasty-hunit >= 0.10 ,
473+ text,
474+ hs-source-dirs : test/src
475+ ghc-options : -Wunused-packages
476+ exposed-modules :
477+ Development.IDE.Test
478+ Development.IDE.Test.Diagnostic
479+ default-extensions :
480+ BangPatterns
481+ DeriveFunctor
482+ DeriveGeneric
483+ FlexibleContexts
484+ GeneralizedNewtypeDeriving
485+ LambdaCase
486+ NamedFieldPuns
487+ OverloadedStrings
488+ RecordWildCards
489+ ScopedTypeVariables
490+ StandaloneDeriving
491+ TupleSections
492+ TypeApplications
493+ ViewPatterns
494+
473495flag bench-exe
474496 description : Build the ghcide-bench executable
475497 default : True
0 commit comments