Skip to content
Snippets Groups Projects
ghcid 536 B
Newer Older
Jens Nolte's avatar
Jens Nolte committed
#!/usr/bin/env 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 \
        --warnings \
        "--command=cabal repl lib:quasar-wayland" \
        "--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' \
        "