Skip to content

Instantly share code, notes, and snippets.

@gclaramunt
Last active October 20, 2021 21:49
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gclaramunt/5645153 to your computer and use it in GitHub Desktop.
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)
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