How to best add logging/debugging code?

ketil+haskell at ii.uib.no ketil+haskell at ii.uib.no
Mon Nov 17 10:18:45 EST 2003


Johannes Waldmann <waldmann at imn.htwk-leipzig.de> writes:

> f x y = ( ... ) { info = parens $ fsep [ text "f", info x, info y ] }

Cool!

> that way you always know who built what.
> and it's cheap - if you don't use this information,
> then it's never created (due to laziness).

Uh..is that really true?  I would think it would keep a lot of data
from being garbage collected?

-kzm
-- 
If I haven't seen further, it is by standing in the footprints of giants


More information about the Haskell mailing list