traceM and traceShowM
Martijn van Steenbergen
martijn at van.steenbergen.nl
Tue Nov 3 02:42:35 EST 2009
I have submitted a trac ticket:
Thank you all for your input!
Martijn van Steenbergen wrote:
> I propose the addition of the following two functions to module
>> 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
More information about the Libraries