Recursive loop call column

Is there a generic function ( printCallStack) that will print a recursive loop call stack.

For instance,

printCallStack(length ([7, 1 'quot' 0])) 

displays a call stack:

enter image description here

+4
source share
1 answer

It seems that you are looking for something like Hat , which is a source level indicator for haskell, and perhaps specifically for hat-stack, which is a component of the stack trace.

Alternatively, you can use the debugger / tracer built into ghci. Not as good as a hat, but does not require recompiling your code, and it is easily accessible. If you're interested, this :traceis the ghci command.

+4
source

Source: https://habr.com/ru/post/1599486/


All Articles