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 :: Show a => Int -> String -> a -> a
|
||||||
dbgAt lvl = dbgppshow lvl
|
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
|
-- | Print a showable value to the console, with a message, if the
|
||||||
-- debug level is at or above the specified level (uses
|
-- debug level is at or above the specified level (uses
|
||||||
-- unsafePerformIO).
|
-- unsafePerformIO).
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user