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
|
-- @--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
|
-- a higher value (note: not @--debug N@ for some reason). This uses
|
||||||
-- unsafePerformIO and can be accessed from anywhere and before normal
|
-- unsafePerformIO and can be accessed from anywhere and before normal
|
||||||
-- command-line processing. After command-line processing, it is also
|
-- command-line processing. When running with :main in GHCI, you must
|
||||||
-- available as the @debug_@ field of 'Hledger.Cli.CliOptions.CliOpts'.
|
-- 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 #-}
|
-- {-# OPTIONS_GHC -fno-cse #-}
|
||||||
-- {-# NOINLINE debugLevel #-}
|
-- {-# NOINLINE debugLevel #-}
|
||||||
debugLevel :: Int
|
debugLevel :: Int
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user