Safe Haskell | None |
---|---|
Language | Haskell2010 |
Documentation
Set to False and recompile in order to disable print statements with stack traces.
debugTraceIO :: (?loc :: CallStack) => String -> IO () Source
Prints message with a one line stack trace (formatted like a Java Exception for IDE usability). Meant to be a substitute for Debug.Trace.traceIO
fatalAssert :: (?loc :: CallStack) => Bool -> String -> IO () Source
Kills the application and prints the message with a one line stack trace (formatted like a Java Exception for IDE usability) if assertion is false and "debugMode" is True. Can be used as a substitute for "assert" when used in a Java based IDE or when the killing of the entire application is warranted.