This commit is contained in:
crumbtoo
2024-01-12 17:53:53 -07:00
parent 681a394312
commit 2496589346
4 changed files with 143 additions and 17 deletions

16
.ghci
View File

@@ -1,2 +1,18 @@
:set -XOverloadedStrings
:set -package process
:{
import System.Exit qualified
import System.Process qualified
_reload_and_make _ = do
p <- System.Process.spawnCommand "make -f Makefile_happysrcs"
r <- System.Process.waitForProcess p
case r of
System.Exit.ExitSuccess -> pure ":reload"
_ -> pure ""
:}
:def! r _reload_and_make