Re: [Haskell-cafe] debugtracehelpers Re: traceM and traceShowM

2009-10-20 Thread Alberto G. Corona
I don't know why people use trace this way instead of in the reverse form: debug = flip trace this way I can isolate debug code in the right from normal code: main= do a <- getChar b <- getChar `debug` ("a="++ show a) let c= a+b`debu

Re: [Haskell-cafe] debugtracehelpers Re: traceM and traceShowM

2009-10-20 Thread Justin Bailey
These woudl be much more useful if they flushed the output handle after each message. Then you know your trace messages will be displayed/written to a file. On Mon, Oct 19, 2009 at 1:51 PM, Thomas Hartman wrote: > I have this and a couple other handy functions in > > DebugTraceHelpers: > > http:/

[Haskell-cafe] debugtracehelpers Re: traceM and traceShowM

2009-10-19 Thread Thomas Hartman
I have this and a couple other handy functions in DebugTraceHelpers: http://patch-tag.com/r/tphyahoo/DebugTraceHelpers/snapshot/current/content/pretty hackage: http://hackage.haskell.org/packages/archive/DebugTraceHelpers/0.12/doc/html/Debug-Trace-Helpers.html 2009/10/16 Martijn van Steenberg