
Hi Michael,
On 6/14/06, Michael Marte
I wonder whether it is possible to print a "closure trace" similar to a stack trace in procedural programming. Say we have two modules A and B:
I wrote small (external) utility that does something like that for
ghc-built binaries.
It can print traces on user defined breakpoints. As there isn't much
use for it,
I haven't played with a while, but it might help or provide starting point.
darcs get http://tamelambda.net/darcs/tracer/
(requires ghc 6.4.2 and Windows to compile and use)
Example output for tracing "lines", of a program something like this:
getContents >>= mapM_ putStrLn . lines
Trace: Data.List.lines + 0