Simon Marlow simonmar at microsoft.com
Mon Sep 6 06:01:07 EDT 2004

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) $ ...


More information about the Glasgow-haskell-users mailing list