<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>
&gt; So the current idea is:<br>
&gt;<br>
&gt;&gt; withTrace :: Show a =&gt; a -&gt; a<br>
&gt;&gt; withTrace x = trace (show x) x<br>
&gt;<br>
</div><div class="im">&gt; Does anyone have anything else to add?<br>
<br>
</div>I would expect<br>
<br>
withTrace :: Show a =&gt; String -&gt; a -&gt; a<br>
withTrace str x = trace (str ++ show x) x<br>
<br>
to be more useful.<br>
</blockquote><div><br>I agree. It&#39;s easy enough to do withTrace &quot;&quot; if you don&#39;t want a message.<br><br>Sean <br></div></div>