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

Automatically load dependencies for ghcid scripts

parent 9a41d56f
No related branches found
No related tags found
No related merge requests found
Pipeline #2706 passed
......@@ -31,6 +31,7 @@
packages = [
pkgs.cabal-install
pkgs.ghcid
pkgs.entr
pkgs.haskell-language-server
];
}
......
#!/usr/bin/env zsh
#!/usr/bin/env -S nix shell . -c zsh
print -P %F{yellow}Cleaning repository%f
nix develop -c cabal clean
......
#!/usr/bin/env -S nix shell . -c zsh
print -P %F{yellow}Cleaning repository%f
nix develop -c cabal clean
(git ls-files test; git ls-files '*.cabal'; git ls-files 'flake.*') | \
entr -r \
nix develop -c \
ghcid \
"--command=cabal repl lib:quasar" \
"--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