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
_______________________________________________
Glasgow-haskell-users mailing list
[EMAIL PROTECTED]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-users

Reply via email to