dbgAtM, monadic version of dbgAt

This commit is contained in:
Simon Michael 2014-04-02 09:30:59 -07:00
parent 21575ed47b
commit 577ff7902c

View File

@ -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).