@@ -317,6 +317,86 @@ test-suite hls-cabal-plugin-tests
317
317
, text
318
318
, hls-plugin-api
319
319
320
+ -----------------------------
321
+ -- cabal project plugin
322
+ -----------------------------
323
+
324
+ flag cabalProject
325
+ description : Enable cabalProject plugin
326
+ default : True
327
+ manual : True
328
+
329
+ common cabalProject
330
+ if flag(cabalProject)
331
+ build-depends : haskell-language-server :hls-cabal-project-plugin
332
+ cpp-options : -Dhls_cabal_project
333
+
334
+ library hls-cabal-project-plugin
335
+ import : defaults, pedantic, warnings
336
+ if !flag(cabalProject)
337
+ buildable : False
338
+ exposed-modules :
339
+ Ide.Plugin.CabalProject
340
+ Ide.Plugin.CabalProject.Parse
341
+ Ide.Plugin.CabalProject.Diagnostics
342
+ Ide.Plugin.CabalProject.Types
343
+
344
+ build-depends :
345
+ , bytestring
346
+ , Cabal-syntax >= 3.7
347
+ , containers
348
+ , deepseq
349
+ , directory
350
+ , filepath
351
+ , extra >= 1.7.4
352
+ , ghcide == 2.11.0.0
353
+ , hashable
354
+ , hls-plugin-api == 2.11.0.0
355
+ , hls-graph == 2.11.0.0
356
+ , lens
357
+ , lsp ^>= 2.7
358
+ , lsp-types ^>= 2.3
359
+ , regex-tdfa ^>= 1.3.1
360
+ , text
361
+ , text-rope
362
+ , transformers
363
+ , unordered-containers >= 0.2.10.0
364
+ , containers
365
+ , process
366
+ , aeson
367
+ , Cabal
368
+ , pretty
369
+ , cabal-install
370
+ , cabal-install-solver
371
+ , haskell-language-server :hls-cabal-plugin
372
+ , base16-bytestring
373
+ , cryptohash-sha1
374
+
375
+ hs-source-dirs : plugins/hls-cabal-project-plugin/src
376
+
377
+ test-suite hls-cabal-project-plugin-tests
378
+ import : defaults, pedantic, test-defaults, warnings
379
+ if !flag(cabalProject)
380
+ buildable : False
381
+ type : exitcode-stdio-1.0
382
+ hs-source-dirs : plugins/hls-cabal-project-plugin/test
383
+ main-is : Main.hs
384
+ other-modules :
385
+ Utils
386
+ build-depends :
387
+ , bytestring
388
+ , Cabal-syntax >= 3.7
389
+ , extra
390
+ , filepath
391
+ , ghcide
392
+ , haskell-language-server :hls-cabal-project-plugin
393
+ , hls-test-utils == 2.11.0.0
394
+ , lens
395
+ , lsp-types
396
+ , text
397
+ , hls-plugin-api
398
+ , cabal-install
399
+
320
400
-----------------------------
321
401
-- class plugin
322
402
-----------------------------
@@ -1830,6 +1910,7 @@ library
1830
1910
, pedantic
1831
1911
-- plugins
1832
1912
, cabal
1913
+ , cabalProject
1833
1914
, callHierarchy
1834
1915
, cabalfmt
1835
1916
, cabalgild
0 commit comments