mirror of
https://github.com/simonmichael/hledger.git
synced 2024-11-08 07:09:28 +03:00
dbgAt
This commit is contained in:
parent
784e9eff8a
commit
a05810f8e0
@ -425,6 +425,11 @@ debugLevel = case snd $ break (=="--debug") args of
|
||||
dbg :: Show a => String -> a -> a
|
||||
dbg = dbgppshow 1
|
||||
|
||||
-- | Print a message and a showable value to the console if the global
|
||||
-- debug level is at or above the specified level. Uses unsafePerformIO.
|
||||
dbgAt :: Show a => Int -> String -> a -> a
|
||||
dbgAt lvl = dbgppshow lvl
|
||||
|
||||
-- | Print a showable value to the console, with a message, if the
|
||||
-- debug level is at or above the specified level (uses
|
||||
-- unsafePerformIO).
|
||||
|
Loading…
Reference in New Issue
Block a user