Skip to content

Commit d863a48

Browse files
authored
Remove prune-juice and unused Cabal dependencies (#3929)
1 parent 9e20913 commit d863a48

File tree

3 files changed

+6
-30
lines changed

3 files changed

+6
-30
lines changed

waspc/dev-tool.project

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,7 @@ constraints:
99
cabal-gild ==1.5.0.1,
1010
ormolu ==0.7.2.0,
1111
stan ==0.2.1.0,
12-
hlint ==3.6.1,
13-
prune-juice ==0.7
12+
hlint ==3.6.1
1413

1514
-- See cabal.project.
1615
index-state: 2025-11-01T14:29:27Z

waspc/run

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,6 @@ function dev_tool_path() {
100100
}
101101
STAN_CMD="$BUILD_HS_FULL_CMD && $(install_dev_tool stan) && $(dev_tool_path stan) report ${ARGS[@]}"
102102
HLINT_CMD="$(install_dev_tool hlint) && $(dev_tool_path hlint) . ${ARGS[@]}"
103-
PRUNE_JUICE_CMD="$(install_dev_tool prune-juice) && $(dev_tool_path prune-juice) ${ARGS[@]}"
104103
PRETTIER_CHECK_CMD="(cd .. && npm ci && npm run check:prettier)"
105104
PRETTIER_FORMAT_CMD="(cd .. && npm ci && npm run format:prettier)"
106105
ORMOLU_BASE_CMD="$(install_dev_tool ormolu) && $(dev_tool_path ormolu) --color always --check-idempotence"
@@ -192,8 +191,6 @@ print_usage() {
192191
"Runs static code analysis on the code, generating stan.html. Builds the project first if needed."
193192
print_usage_cmd "hlint <args>" \
194193
"Runs linter on the codebase."
195-
print_usage_cmd "prune-juice <args>" \
196-
"Runs prune-juice on the codebase, which detects unused dependencies."
197194
print_usage_cmd "format" \
198195
"Runs all code formatters (ormolu, cabal-gild, prettier) and formats the code in place."
199196
print_usage_cmd "check" \
@@ -307,9 +304,6 @@ case $COMMAND in
307304
hlint)
308305
echo_and_eval "$HLINT_CMD"
309306
;;
310-
prune-juice)
311-
echo_and_eval "$PRUNE_JUICE_CMD"
312-
;;
313307
format)
314308
echo_and_eval "$ORMOLU_FORMAT_CMD"
315309
echo_and_eval "$CABAL_GILD_FORMAT_CMD"

waspc/waspc.cabal

Lines changed: 5 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,7 @@ common common-all
9090
-- -fwrite-ide-info and -hiedir=.hie tell GHC to write compile-time information about the code
9191
-- to .hie directory. This information can then be used by other tools, e.g. stan (static analyzer).
9292
-Wall
93+
-Wunused-packages
9394
-optP-Wno-nonportable-include-path
9495
-fwrite-ide-info
9596
-hiedir=.hie
@@ -136,15 +137,12 @@ library
136137
conduit-extra ^>=1.3.7,
137138
containers ^>=0.6.7,
138139
cryptohash-sha256 ^>=0.11.102,
139-
cryptonite ^>=0.30,
140140
deepseq ^>=1.4.8,
141-
dir-traverse ^>=0.2.3,
142141
directory ^>=1.3.8,
143142
dotenv ^>=0.11.0,
144143
exceptions ^>=0.10.7,
145144
extra ^>=1.7.16,
146145
filepath ^>=1.4.301,
147-
fsnotify ^>=0.4.2,
148146
http-conduit ^>=2.3.9,
149147
http-types ^>=0.12.4,
150148
megaparsec ^>=9.5.0,
@@ -158,7 +156,6 @@ library
158156
pretty-simple ^>=4.1.3,
159157
process ^>=1.6.19,
160158
regex-tdfa ^>=1.3.2,
161-
selective ^>=0.7.0,
162159
split ^>=0.2.5,
163160
strong-path ^>=1.2.0,
164161
template-haskell ^>=2.20.0,
@@ -167,7 +164,6 @@ library
167164
unliftio ^>=0.2.25,
168165
unordered-containers ^>=0.2.20,
169166
utf8-string ^>=1.0.2,
170-
uuid ^>=1.3.15,
171167
validation-selective ^>=0.2.0,
172168

173169
other-modules: Paths_waspc
@@ -515,11 +511,9 @@ library waspls
515511
-- NOTE: We're not keeping lsp and lsp-types up to date since it's too much
516512
-- work and we plan to deprecate the DSL and Wasp LSP soon.
517513
aeson,
518-
aeson-pretty,
519514
async,
520515
base,
521516
data-default ^>=0.7.1,
522-
deepseq,
523517
directory,
524518
filepath,
525519
hashable ^>=1.4.7,
@@ -537,7 +531,6 @@ library waspls
537531
transformers ^>=0.6.1,
538532
unliftio-core,
539533
unordered-containers,
540-
utf8-string,
541534
waspc,
542535

543536
library cli-lib
@@ -550,31 +543,26 @@ library cli-lib
550543
base,
551544
bytestring,
552545
containers,
553-
cryptonite,
546+
cryptonite ^>=0.30,
554547
directory,
555548
exceptions,
556549
filepath,
557-
fsnotify,
550+
fsnotify ^>=0.4.2,
558551
http-conduit,
559-
http-types,
560552
lens,
561553
lens-aeson ^>=1.2.3,
562554
mtl,
563555
neat-interpolation,
564556
optparse-applicative ^>=0.18.1,
565-
path,
566557
path-io,
567-
pretty-simple,
568558
process,
569559
strong-path,
570560
tar ^>=0.6.3,
571561
temporary ^>=1.3,
572562
text,
573563
time,
574-
unliftio,
575-
unordered-containers,
576564
utf8-string,
577-
uuid,
565+
uuid ^>=1.3.15,
578566
waspc,
579567
waspls,
580568
zlib ^>=0.7.1,
@@ -680,7 +668,6 @@ test-suite waspc-tests
680668
megaparsec,
681669
mtl,
682670
neat-interpolation,
683-
parsec,
684671
path,
685672
split,
686673
strong-path,
@@ -777,7 +764,6 @@ test-suite waspls-tests
777764
filepath,
778765
hspec,
779766
lens,
780-
lsp,
781767
lsp-types,
782768
mtl,
783769
tasty,
@@ -803,12 +789,9 @@ test-suite wasp-cli-tests
803789
QuickCheck,
804790
base,
805791
cli-lib,
806-
containers,
807-
generic-arbitrary,
808792
hspec,
809793
tasty,
810794
tasty-hspec,
811-
tasty-quickcheck,
812795
time,
813796
waspc,
814797

@@ -833,7 +816,7 @@ test-suite waspc-e2e-tests
833816
base,
834817
base64-bytestring,
835818
bytestring,
836-
dir-traverse,
819+
dir-traverse ^>=0.2.3,
837820
directory,
838821
filepath,
839822
hspec,

0 commit comments

Comments
 (0)