Skip to content
This repository was archived by the owner on Dec 14, 2025. It is now read-only.

Commit f0d41b3

Browse files
committed
chore: Update justfile to use ghciwatch
1 parent e94c482 commit f0d41b3

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

justfile

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,10 @@ docs:
1010
repl *ARGS:
1111
cabal repl {{ ARGS }}
1212

13-
# Run ghcid -- auto-recompile and run `main` function
13+
# Run ghciwatch to watch for changes and reload
14+
# There's no reason this command should be as long as it is, cabal is dumb
1415
run:
15-
ghcid -c cabal repl app/Main.hs -T :main
16+
ghciwatch --command "cabal v2-repl --repl-no-load" \
17+
--watch src --watch app \
18+
--after-startup-ghci ":load app/Main.hs" \
19+
--test-ghci "main"

0 commit comments

Comments
 (0)