https://raw.github.com/afcowie/buildtools/master/inotifymake.sh

See related blog post:
http://blogs.operationaldynamics.com/andrew/software/haskell/rebuilding-
via-inotify