<br><br><div class="gmail_quote">On Thu, Oct 22, 2009 at 19:44, Ian Lynagh wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div class="im">
On Wed, Oct 21, 2009 at 09:36:55AM +0200, Martijn van Steenbergen wrote:<br>
> So the current idea is:<br>
><br>
>> withTrace :: Show a => a -> a<br>
>> withTrace x = trace (show x) x<br>
><br>
</div><div class="im">> Does anyone have anything else to add?<br>
<br>
</div>I would expect<br>
<br>
withTrace :: Show a => String -> a -> a<br>
withTrace str x = trace (str ++ show x) x<br>
<br>
to be more useful.<br>
</blockquote><div><br>I agree. It's easy enough to do withTrace "" if you don't want a message.<br><br>Sean <br></div></div>