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.
source
share