Re: How to use `trace` while debuging GHC
Richard Eisenberg <eir <at> cis.upenn.edu>
2012-11-12 04:15:00 GMT
I've recently used the conveniently-typed (pprTrace :: String -> SDoc -> a -> a) for this purpose. You have
to compile with -DDEBUG, but it works great.
On Nov 11, 2012, at 8:36 PM, Ian Lynagh <ian <at> well-typed.com> wrote:
> On Sun, Nov 11, 2012 at 05:24:06PM -0800, Iavor Diatchki wrote:
>> There used to be a value called `tracingDynFlags` that I could use to dump
>> values, but it has disappeared... Did it get moved somewhere, or is there
>> a better way to get the same effect?
> There is now StaticFlags.unsafeGlobalDynFlags.
> Glasgow-haskell-users mailing list
> Glasgow-haskell-users <at> haskell.org