aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile5
1 files changed, 4 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index cbe04d2..62f36a6 100644
--- a/Makefile
+++ b/Makefile
@@ -12,4 +12,7 @@ build:
@cabal run build
watch:
- @cabal run watch
+ @nodemon --watch src -e hs --exec 'make watch-command --silent'
+
+watch-command:
+ @(killall Cooking || :) && sleep 1 && cabal run watch