Skip to content
Permalink
Browse files

;make [ghcid-]watch: a handy dev feedback command

  • Loading branch information
simonmichael committed Mar 1, 2020
1 parent c29b0c0 commit 9c4ef5815429a116d1c708a2eb9cacee66d2d7bd
Showing with 7 additions and 0 deletions.
  1. +7 −0 Makefile
@@ -330,6 +330,13 @@ ghcid-test-%: $(call def-help,ghcid-test-TESTPATTERN, start ghcid autobuilding a
ghcid-doctest: $(call def-help,ghcid-doctest, start ghcid autobuilding and running hledger-lib doctests)
ghcid -c 'cd hledger-lib; $(STACK) ghci hledger-lib:test:doctest' --test ':main' --reload hledger-lib

GHCIDRESTART=--restart Makefile --restart Makefile.local
GHCIDRELOAD=--reload t.j --reload t.timedot
GHCIDCMD=:main -f t.j bal date:today -S

ghcid-watch watch: $(call def-help,ghcid-watch, start ghcid autobuilding and running a custom GHCI command with reload/restart on certain files - customise this)
ghcid -c 'make ghci' --test '$(GHCIDCMD)' $(GHCIDRELOAD) $(GHCIDRESTART)

# keep synced with Shake.hs header
SHAKEDEPS= \
--package base-prelude \

0 comments on commit 9c4ef58

Please sign in to comment.
You can’t perform that action at this time.