Skip to content

Commit cde0a0c

Browse files
committed
Get rid of common deps
1 parent e8b8576 commit cde0a0c

File tree

1 file changed

+48
-38
lines changed

1 file changed

+48
-38
lines changed

haskell-language-server.cabal

Lines changed: 48 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -42,15 +42,6 @@ common defaults
4242
common test-defaults
4343
ghc-options: -threaded -rtsopts -with-rtsopts=-N
4444

45-
common common-deps
46-
build-depends:
47-
, base >=4.16 && <5
48-
, directory
49-
, extra
50-
, filepath
51-
, text
52-
, prettyprinter >= 1.7
53-
5445
-- Default warnings in HLS
5546
common warnings
5647
ghc-options: -Wall
@@ -434,7 +425,7 @@ flag importLens
434425
manual: True
435426

436427
library hls-explicit-imports-plugin
437-
import: defaults, warnings
428+
import: defaults, pedantic, warnings
438429
exposed-modules: Ide.Plugin.ExplicitImports
439430
hs-source-dirs: plugins/hls-explicit-imports-plugin/src
440431
build-depends:
@@ -928,7 +919,7 @@ common qualifyImportedNames
928919
cpp-options: -Dhls_qualifyImportedNames
929920

930921
library hls-qualify-imported-names-plugin
931-
import: defaults, pedantic, warnings
922+
import: defaults, warnings
932923
exposed-modules: Ide.Plugin.QualifyImportedNames
933924
hs-source-dirs: plugins/hls-qualify-imported-names-plugin/src
934925
build-depends:
@@ -1616,7 +1607,6 @@ test-suite hls-semantic-tokens-plugin-tests
16161607

16171608
library
16181609
import: defaults
1619-
, common-deps
16201610
, warnings
16211611
, pedantic
16221612
-- plugins
@@ -1658,22 +1648,27 @@ library
16581648
autogen-modules: Paths_haskell_language_server
16591649
hs-source-dirs: src
16601650
build-depends:
1651+
, aeson-pretty
1652+
, base >=4.16 && <5
16611653
, data-default
1654+
, directory
1655+
, extra
1656+
, filepath
16621657
, ghc
16631658
, ghcide == 2.6.0.0
16641659
, githash >=0.1.6.1
16651660
, hie-bios
16661661
, hls-plugin-api == 2.6.0.0
16671662
, optparse-applicative
16681663
, optparse-simple
1664+
, prettyprinter >= 1.7
16691665
, process
1670-
, aeson-pretty
1666+
, text
16711667

16721668
default-extensions: DataKinds
16731669

16741670
executable haskell-language-server
16751671
import: defaults
1676-
, common-deps
16771672
, warnings
16781673
, pedantic
16791674
main-is: Main.hs
@@ -1700,15 +1695,17 @@ executable haskell-language-server
17001695
ghc-options: -dynamic
17011696

17021697
build-depends:
1698+
, base >=4.16 && <5
17031699
, haskell-language-server
1704-
, lsp
17051700
, hls-plugin-api
1701+
, lsp
1702+
, prettyprinter >= 1.7
1703+
, text
17061704

17071705
default-extensions: DataKinds
17081706

17091707
executable haskell-language-server-wrapper
17101708
import: defaults
1711-
, common-deps
17121709
, warnings
17131710
, pedantic
17141711
main-is: Wrapper.hs
@@ -1724,14 +1721,18 @@ executable haskell-language-server-wrapper
17241721
"-with-rtsopts=-I0 -A128M"
17251722

17261723
build-depends:
1724+
, base >=4.16 && <5
17271725
, data-default
1728-
, ghc
1726+
, directory
1727+
, extra
1728+
, filepath
17291729
, ghcide
17301730
, haskell-language-server
17311731
, hie-bios
17321732
, hls-plugin-api
17331733
, lsp
17341734
, lsp-types
1735+
, text
17351736
, transformers
17361737
, unliftio-core
17371738
if !os(windows)
@@ -1744,7 +1745,6 @@ executable haskell-language-server-wrapper
17441745
test-suite func-test
17451746
import: defaults
17461747
, test-defaults
1747-
, common-deps
17481748
, warnings
17491749
, pedantic
17501750
, refactor
@@ -1754,18 +1754,22 @@ test-suite func-test
17541754
ghcide:ghcide-test-preprocessor
17551755

17561756
build-depends:
1757+
, aeson
1758+
, base >=4.16 && <5
17571759
, bytestring
1760+
, containers
17581761
, deepseq
1759-
, hashable
1760-
, lens
1762+
, extra
1763+
, filepath
17611764
, ghcide
17621765
, ghcide-test-utils
1763-
, hls-test-utils == 2.6.0.0
1764-
, lsp-types
1765-
, aeson
1766+
, hashable
17661767
, hls-plugin-api
1768+
, hls-test-utils == 2.6.0.0
1769+
, lens
17671770
, lsp-test
1768-
, containers
1771+
, lsp-types
1772+
, text
17691773
, unordered-containers
17701774

17711775
hs-source-dirs: test/functional test/utils
@@ -1796,7 +1800,6 @@ test-suite func-test
17961800

17971801
test-suite wrapper-test
17981802
import: defaults
1799-
, common-deps
18001803
, warnings
18011804
, pedantic
18021805
type: exitcode-stdio-1.0
@@ -1805,14 +1808,16 @@ test-suite wrapper-test
18051808
haskell-language-server:haskell-language-server
18061809

18071810
build-depends:
1808-
process
1811+
, base >=4.16 && <5
1812+
, extra
18091813
, hls-test-utils
1814+
, process
18101815

18111816
hs-source-dirs: test/wrapper
18121817
main-is: Main.hs
18131818

18141819
benchmark benchmark
1815-
import: defaults, warnings, common-deps
1820+
import: defaults, warnings
18161821
-- Depends on shake-bench which is unbuildable after this point
18171822
if impl(ghc >= 9.5)
18181823
buildable: False
@@ -1830,14 +1835,19 @@ benchmark benchmark
18301835
ViewPatterns
18311836

18321837
build-depends:
1833-
aeson,
1834-
containers,
1835-
data-default,
1836-
ghcide-bench,
1837-
haskell-language-server,
1838-
hls-plugin-api,
1839-
lens,
1840-
lens-aeson,
1841-
shake,
1842-
shake-bench == 0.2.*,
1843-
yaml
1838+
, aeson
1839+
, base >=4.16 && <5
1840+
, containers
1841+
, data-default
1842+
, directory
1843+
, extra
1844+
, filepath
1845+
, ghcide-bench
1846+
, haskell-language-server
1847+
, hls-plugin-api
1848+
, lens
1849+
, lens-aeson
1850+
, shake
1851+
, shake-bench == 0.2.*
1852+
, text
1853+
, yaml

0 commit comments

Comments
 (0)