Skip to content

Commit 4ce8f99

Browse files
authored
Remove unused build-depends and install warnings (#3155)
* Remove unused build-depends and install warnings * Remove -Werror
1 parent 5d35a74 commit 4ce8f99

File tree

3 files changed

+14
-17
lines changed

3 files changed

+14
-17
lines changed

ghcide/ghcide.cabal

+8-14
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,6 @@ library
7171
hiedb == 0.4.2.*,
7272
lsp-types ^>= 1.6.0.0,
7373
lsp ^>= 1.6.0.0 ,
74-
monoid-subclasses,
7574
mtl,
7675
optparse-applicative,
7776
parallel,
@@ -230,6 +229,9 @@ library
230229
exposed-modules:
231230
Development.IDE.GHC.Compat.CPP
232231

232+
if impl(ghc >= 9)
233+
ghc-options: -Wunused-packages
234+
233235
if flag(ekg)
234236
build-depends:
235237
ekg-wai,
@@ -271,28 +273,15 @@ executable ghcide
271273
"-with-rtsopts=-I0 -A128M -T"
272274
main-is: Main.hs
273275
build-depends:
274-
hiedb,
275-
aeson,
276276
base == 4.*,
277277
data-default,
278-
directory,
279278
extra,
280-
filepath,
281279
gitrev,
282-
safe-exceptions,
283-
ghc,
284-
hashable,
285280
lsp,
286281
lsp-types,
287-
heapsize,
288-
hie-bios,
289282
hls-plugin-api,
290283
ghcide,
291-
lens,
292284
optparse-applicative,
293-
hls-graph,
294-
text,
295-
unordered-containers,
296285
other-modules:
297286
Arguments
298287
Paths_ghcide
@@ -322,6 +311,9 @@ executable ghcide
322311
ekg-wai,
323312
ekg-core,
324313
cpp-options: -DMONITORING_EKG
314+
if impl(ghc >= 9)
315+
ghc-options: -Wunused-packages
316+
325317

326318
test-suite ghcide-tests
327319
type: exitcode-stdio-1.0
@@ -378,6 +370,8 @@ test-suite ghcide-tests
378370
record-hasfield
379371
if impl(ghc < 9.3)
380372
build-depends: ghc-typelits-knownnat
373+
if impl(ghc >= 9)
374+
ghc-options: -Wunused-packages
381375
hs-source-dirs: test/cabal test/exe test/src
382376
ghc-options: -threaded -Wall -Wno-name-shadowing -O0 -Wno-unticked-promoted-constructors
383377
main-is: Main.hs

hls-graph/hls-graph.cabal

+4-2
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,6 @@ library
7676
, js-flot
7777
, js-jquery
7878
, list-t
79-
, primitive
8079
, stm
8180
, stm-containers
8281
, time
@@ -91,7 +90,8 @@ library
9190
template-haskell
9291
if flag(stm-stats)
9392
cpp-options: -DSTM_STATS
94-
93+
if impl(ghc >= 9)
94+
ghc-options: -Wunused-packages
9595

9696
ghc-options:
9797
-Wall -Wredundant-constraints -Wno-name-shadowing
@@ -136,3 +136,5 @@ test-suite tests
136136
, text
137137
, unordered-containers
138138
build-tool-depends: hspec-discover:hspec-discover -any
139+
if impl(ghc >= 9)
140+
ghc-options: -Wunused-packages

hls-plugin-api/hls-plugin-api.cabal

+2-1
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,6 @@ library
5252
, lsp ^>=1.6.0.0
5353
, opentelemetry >=0.4
5454
, optparse-applicative
55-
, process
5655
, regex-tdfa >=1.3.1.0
5756
, text
5857
, transformers
@@ -70,6 +69,8 @@ library
7069

7170
if flag(pedantic)
7271
ghc-options: -Werror
72+
if impl(ghc >= 9)
73+
ghc-options: -Wunused-packages
7374

7475
default-language: Haskell2010
7576
default-extensions:

0 commit comments

Comments
 (0)