debugtracehelpers Re: traceM and traceShowM
Thomas Hartman
tphyahoo at gmail.com
Mon Oct 19 16:51:30 EDT 2009
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 Steenbergen <martijn at van.steenbergen.nl>:
> Hello,
>
> 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.
>
> Martijn.
> _______________________________________________
> Libraries mailing list
> Libraries at haskell.org
> http://www.haskell.org/mailman/listinfo/libraries
>
More information about the Libraries
mailing list