Hello,
When I compile a program that contains a lambda, the compiler assigns it
a name like LAMBDA245. Is there any simple way to retrieve the body of
the lambda, in an automated way, perhaps by modifying the compiler?

I'm building a tracer/debugger that shows the structure of the heap,
using a redex trail-like data structure, and it describes indirections
in the heap well, except when lambdas are involved. In the latter case,
the compiler-generated names obviously mean nothing to the user and
don't help him identify which of the lambdas in the code was evaluated.
Is there any easy way to map the name of the lambda to its body (as
Haskell source, not bytecode) without doing a source-to-source
transformation? Thanks.

-Kartik
-- 
Blogs: http://kartik-log.blogspot.com, http://randomkart.blogspot.com

begin:vcard
fn:Kartik Vaddadi
n:Vaddadi;Kartik
org:IIT-Bombay;CSE
adr:;;IIT, Powai;Mumbai;Maharastra;400076;India
email;internet:[EMAIL PROTECTED]
title:Graduate Student
tel;cell:+91-9833003598
x-mozilla-html:TRUE
url:http://www.cse.iitb.ac.in/~kart
version:2.1
end:vcard

_______________________________________________
Yhc mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/yhc

Reply via email to