[Haskell-cafe] debugtracehelpers Re: traceM and traceShowM
jgbailey at gmail.com
Tue Oct 20 12:13:02 EDT 2009
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 <tphyahoo at gmail.com> wrote:
> I have this and a couple other handy functions in
> 2009/10/16 Martijn van Steenbergen <martijn at van.steenbergen.nl>:
>> I propose the addition of the following two functions to module Debug.Trace:
>>> traceM :: Monad m => String -> m ()
>>> traceM msg = trace msg (return ())
>>> traceShowM :: (Show a, Monad m) => a -> m ()
>>> traceShowM = traceM . show
>> These functions allow tracing in any do-block. I often define them myself; I
>> think they are useful in general.
>> Deadline: 23 October 2009.
>> Libraries mailing list
>> Libraries at haskell.org
> Haskell-Cafe mailing list
> Haskell-Cafe at haskell.org
More information about the Haskell-Cafe