Compile a project and re-compile every time a file changes

stack

stack build --file-watch

click the source code to copy install stack on any operating system with command-not-found.com