mirror of
https://github.com/simonmichael/hledger.git
synced 2024-11-08 07:09:28 +03:00
lib: note debugLevel gotcha in GHCI
This commit is contained in:
parent
7aab544cf6
commit
dd77ac4c0a
@ -70,8 +70,10 @@ ptrace msg = do
|
||||
-- @--debug@ command line flag sets it to 1, or @--debug=N@ sets it to
|
||||
-- a higher value (note: not @--debug N@ for some reason). This uses
|
||||
-- unsafePerformIO and can be accessed from anywhere and before normal
|
||||
-- command-line processing. After command-line processing, it is also
|
||||
-- available as the @debug_@ field of 'Hledger.Cli.CliOptions.CliOpts'.
|
||||
-- command-line processing. When running with :main in GHCI, you must
|
||||
-- touch and reload this module to see the effect of a new --debug option.
|
||||
-- After command-line processing, it is also available as the @debug_@
|
||||
-- field of 'Hledger.Cli.CliOptions.CliOpts'.
|
||||
-- {-# OPTIONS_GHC -fno-cse #-}
|
||||
-- {-# NOINLINE debugLevel #-}
|
||||
debugLevel :: Int
|
||||
|
Loading…
Reference in New Issue
Block a user