traceSeqN
lib.traceSeqN
Docs pulled from | This Revision | 17 minutes ago
Like traceSeq
, but only evaluate down to depth n.
This is very useful because lots of traceSeq
usages
lead to an infinite recursion.
Inputs
depth
-
1. Function argument
x
-
2. Function argument
y
-
3. Function argument
Type
traceSeqN :: Int -> a -> b -> b
Examples
lib.debug.traceSeqN
usage example
traceSeqN 2 { a.b.c = 3; } null
trace: { a = { b = {…}; }; }
=> null