Reliability of trace?

Isaac Dupree ml at
Tue Mar 10 10:57:00 EDT 2009

Colin Paul Adams wrote:
> I'm trying to use Debug.Trace to debug some tree-walking that I've
> written.
> It seems to me that I am missing some traces on intermediate function
> calls. I guess that ghc is re-arranging the code in such a way that
> some of these intermediate calls disappear. Anyway of stopping this? I
> already specify -O0.

right; with -O0 you get pretty much the exact amount of sharing that your code 

are you sure those traces are attached to expressions that are being evaluated 
at all?  Remember how lazy Haskell is...


More information about the Glasgow-haskell-users mailing list