Skip to content

Instantly share code, notes, and snippets.

@rob-b
Last active August 29, 2015 14:27
Show Gist options
  • Save rob-b/6183a3d954afa2c48776 to your computer and use it in GitHub Desktop.
Save rob-b/6183a3d954afa2c48776 to your computer and use it in GitHub Desktop.
Watch all `.hs` files and run `stack build` when any of them are modified
#!/usr/bin/env zsh
setopt EXTENDED_GLOB
echo Watching **/*.hs~dist*
hobbes "*.hs" | while read fname; do
echo $fname
stack build
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment