imp: cli, web: disable ghc 9.10+'s stack traces here too

Starting to see them also from hledger now.
This commit is contained in:
Simon Michael 2024-10-19 18:33:58 -10:00
parent 62e1c020cf
commit b6a5687a38
2 changed files with 2 additions and 4 deletions

View File

@ -55,8 +55,7 @@ hledgerWebMain = withGhcDebug' $ do
#if MIN_VERSION_base(4,20,0)
-- Control ghc 9.10+'s stack traces.
-- hledger-web isn't showing many yet; leave this enabled for now.
setBacktraceMechanismState HasCallStackBacktrace True
setBacktraceMechanismState HasCallStackBacktrace False
#endif
-- try to encourage user's $PAGER to properly display ANSI (in command line help)

View File

@ -196,8 +196,7 @@ main = withGhcDebug' $ do
#if MIN_VERSION_base(4,20,0)
-- Control ghc 9.10+'s stack traces.
-- hledger isn't showing many yet; leave this enabled for now
setBacktraceMechanismState HasCallStackBacktrace True
setBacktraceMechanismState HasCallStackBacktrace False
-- CostCentreBacktrace - collect cost-centre stack backtraces (only available when built with profiling)
-- HasCallStackBacktrace - collect HasCallStack backtraces
-- ExecutionBacktrace - collect backtraces from native execution stack unwinding