There is `Debug.Trace.trace' for this:
http://haskell.org/ghc/docs/latest/html/base/Debug.Trace.html
However, if you want to log as opposed to debug, you may want to have the output go to somewhere else but stdout. Hence, it might be useful to have a variant of the `trace' that takes an explicit file handle in the library.
Is there a list of problems anywhere with using trace? For example does it affect evaluation order? (I'm not sure of the semantics of unsafePerformIO!)
The output from "trace" goes to stderr by the way.
Cheers,
Andy
_______________________________________________ Haskell mailing list [EMAIL PROTECTED] http://www.haskell.org/mailman/listinfo/haskell
