traceM and traceShowM
Lennart Augustsson
lennart at augustsson.net
Fri Oct 16 09:33:19 EDT 2009
+1
I use them all the time.
On Fri, Oct 16, 2009 at 3:22 PM, Martijn van Steenbergen
<martijn at van.steenbergen.nl> wrote:
> 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