Verified Commit e7563e78 authored by Camil Staps's avatar Camil Staps 🚀

Add Debug.Trace

parent 8f2b4519
Pipeline #14379 passed with stage
in 4 minutes and 47 seconds
definition module Debug.Trace
/**
* This module provides functions to trace values to output channels. Other
* useful functions can be found in StdEnv's {{StdDebug}}.
*/
/**
* Prints the value to stdout and returns it. Other than the functions in
* {{StdDebug}}, this does not require {{`toString`}}.
*/
trace_stdout :: !.a -> .a
implementation module Debug.Trace
trace_stdout :: !.a -> .a
trace_stdout _ = code {
push_a 0
.d 1 0
jsr _print_graph
.o 0 0
}
......@@ -122,6 +122,7 @@ import qualified Database.SQL.SQLite
import qualified Database.SQL._MySQL
import qualified Database.SQL._SQLite
import qualified Debug.Performance
import qualified Debug.Trace
import qualified Graphics.Layout
import qualified Graphics.Scalable.Image
import qualified Graphics.Scalable.Internal.Image`
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment