This commit is contained in:
Simon Michael 2014-04-02 04:47:32 -07:00
parent 784e9eff8a
commit a05810f8e0

View File

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