Skip to content
Snippets Groups Projects
Commit a7a70f1b authored by Jens Nolte's avatar Jens Nolte
Browse files

Update ghcid script

parent 7217b197
No related merge requests found
(git ls-files app; git ls-files test; git ls-files '*.cabal') | entr -r nix develop -c ghcid --warnings "--command=cabal repl lib:q" "--test=:! cabal test --test-show-details=direct --ghc-option -fdiagnostics-color=always && cabal build --ghc-option -fdiagnostics-color=always && zsh -c 'print -P %F{green}build and tests passed%f'"
#!/usr/bin/env zsh
print -P %F{yellow}Cleaning repository%f
nix develop -c cabal clean
(git ls-files test app '*.cabal' 'flake.*') | \
entr -r \
nix develop -c \
ghcid \
--warnings \
"--command=cabal repl lib:q" \
"--test=:! \
cabal test --disable-optimisation --enable-debug-info=2 --test-show-details=direct --ghc-option -fdiagnostics-color=always && \
cabal build --disable-optimisation --enable-debug-info=2 --ghc-option -fdiagnostics-color=always && \
zsh -c 'print -P %F{green}Build and tests passed%f' \
"
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment