Home
Reading
Searching
Subscribe
Sponsors
Statistics
Posting
Contact
Spam
Lists
Links
About
Hosting
Filtering
Features Download
Marketing
Archives
FAQ
Blog
 
Gmane
From: Simon Marlow <marlowsd <at> gmail.com>
Subject: Re: traceM and traceShowM
Newsgroups: gmane.comp.lang.haskell.libraries
Date: Wednesday 4th November 2009 15:40:06 UTC (over 7 years ago)
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
 
CD: 3ms