rts/Printer.c

Bernard James POPE bjpop@cs.mu.OZ.AU
Sun, 17 Mar 2002 18:22:55 +1100 (EST)


Hi all,

I'm looking at extending my debugger for Haskell to GHC (currently only
works for Hugs, which is a pity). 

I have a couple of questions about printing data structures from the
GHC heap.

Is there a way to compile the RTS so that the names of data constructors
are retained? 

It looks like Printer.c has some hooks for printing data structures, is
it feasible to make a primitive that allows Haskell code to call
into this? I'm thinking in particular of calling something like printClosure() 
from Haskell code. 

Unfortunately my understanding of the rts and the layout of
data structures is fading.

Cheers,
Bernie.