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 
suggests

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

-Isaac

_______________________________________________
Glasgow-haskell-users mailing list
Glasgow-haskell-users@haskell.org
http://www.haskell.org/mailman/listinfo/glasgow-haskell-users

Reply via email to