holy-project/auto-update
2013-11-20 22:08:22 +01:00

16 lines
438 B
Bash
Executable file

#!/usr/bin/env zsh
relaunchCompilation() {
while read line; do
if (( $( print -- $line | grep '.cabal-sandbox' | wc -l) == 0 )); then
print "$line"
cabal install
./.cabal-sandbox/bin/test-holy-project
fi
done
}
# launch a cabal install and cabal test after each
# small haskell file modification
{hobbes "*.hs" | relaunchCompilation } &
hobbes "*.cabal" | relaunchCompilation