mirror of
https://github.com/simonmichael/hledger.git
synced 2024-10-06 10:57:30 +03:00
;tools:ghci :rmain
This commit is contained in:
parent
a4d3573d29
commit
6e54de12b2
3
.ghci
3
.ghci
@ -20,6 +20,9 @@ setEnv "NO_COLOR" "1"
|
|||||||
-- -- :reload and run commands in .ghci2
|
-- -- :reload and run commands in .ghci2
|
||||||
-- :def R \_ -> return ":reload\n:script .ghci2"
|
-- :def R \_ -> return ":reload\n:script .ghci2"
|
||||||
|
|
||||||
|
-- Reload (to flush cached unsafe IO values) and run main with the given args
|
||||||
|
:def rmain \args -> return $ ":reload\n:main "<>args
|
||||||
|
|
||||||
-- -- run commands from a file, .ghci2 by default
|
-- -- run commands from a file, .ghci2 by default
|
||||||
-- :def s \f -> readFile $ if null f then ".ghci2" else f
|
-- :def s \f -> readFile $ if null f then ".ghci2" else f
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user