Last active
October 20, 2021 21:49
-
-
Save gclaramunt/5645153 to your computer and use it in GitHub Desktop.
This is my stupid script to have sbt-like recompiling in Haskell (now with cabal)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
CALL=${1:-"cabal build"} | |
$CALL | |
while inotifywait -qq -r -e modify .; do | |
echo '<><><><> Starting build <><><><>'; | |
echo `date`; | |
$CALL; | |
echo '<><><><> Done <><><><>'; | |
sleep 1 | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment