traceM and traceShowM

Simon Marlow marlowsd at gmail.com
Wed Nov 4 10:40:06 EST 2009


On 16/10/2009 14:22, Martijn van Steenbergen 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

is traceShowM really necessary?  It doesn't save many characters, and 
fails the "don't name a composition" test.

Cheers,
	Simon


More information about the Libraries mailing list