
6 Sep
2004
6 Sep
'04
6:01 a.m.
On 02 September 2004 17:31, MR K P SCHUPKE wrote:
When writing code in the compiler, how do you use pprTrace?
I want to print out the type of a "SigD" from HsDecl?
There are plenty of examples to be found in the compiler, but briefly you'd use it something like this: myFunction sigd = pprTrace "myFunction" (ppr sigd) $ ... Cheers, Simon