;tools: just: add ghci-echo, ghcitui

This commit is contained in:
Simon Michael 2024-11-05 19:00:05 -10:00
parent 1078c176bf
commit 4b1b97a6aa

View File

@ -347,11 +347,19 @@ TESTING:
@ghci *GHCIARGS:
$STACKGHCI exec -- $GHCI $BUILDFLAGS {{ GHCIARGS }} hledger/Hledger/Cli.hs
# echo the full command that just ghci would run
@ghci-echo *GHCIARGS:
echo $STACKGHCI exec -- $GHCI $BUILDFLAGS {{ GHCIARGS }} hledger/Hledger/Cli.hs
# run ghci on hledger-lib + hledger with profiling/call stack information
@ghci-prof *GHCIARGS:
stack build --profile hledger --only-dependencies
$STACKGHCI exec -- $GHCI $BUILDFLAGS -fexternal-interpreter -prof -fprof-auto {{ GHCIARGS }} hledger/Hledger/Cli.hs
# run ghcitui on hledger-lib + hledger
@ghcitui *GHCITUIARGS:
ghcitui --cmd "just ghci"
# # run ghci on hledger-lib + hledger + dev.hs script
# @ghci-dev:
# $STACKGHCI exec -- $GHCI $BUILDFLAGS -fno-warn-unused-imports -fno-warn-unused-binds dev.hs