mirror of
https://github.com/simonmichael/hledger.git
synced 2024-12-30 22:02:20 +03:00
dbgAtM, monadic version of dbgAt
This commit is contained in:
parent
21575ed47b
commit
577ff7902c
@ -430,6 +430,9 @@ dbg = dbgppshow 1
|
||||
dbgAt :: Show a => Int -> String -> a -> a
|
||||
dbgAt lvl = dbgppshow lvl
|
||||
|
||||
dbgAtM :: Show a => Int -> String -> a -> IO ()
|
||||
dbgAtM lvl lbl x = dbgAt lvl lbl x `seq` return ()
|
||||
|
||||
-- | 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