On Fri, Mar 8, 2013 at 8:26 AM, Nicolas Frisby <span dir="ltr">&lt;<a href="mailto:nicolas.frisby@gmail.com" target="_blank">nicolas.frisby@gmail.com</a>&gt;</span> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><div class="im">On Fri, Mar 8, 2013 at 9:39 AM, Simon Peyton-Jones <span dir="ltr">&lt;<a href="mailto:simonpj@microsoft.com" target="_blank">simonpj@microsoft.com</a>&gt;</span> wrote:<br>



</div><div class="im"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;padding-left:1ex;border-left-color:rgb(204,204,204);border-left-width:1px;border-left-style:solid">





<div lang="EN-GB" vlink="purple" link="blue">
<div><div>
<p>What I would like to see is something like:<u></u><u></u></p>
<p><span style="font-family:&quot;Courier New&quot;">HsApp (HsApp (HsApp (HsVar &quot;foldl&#39;&quot;) (HsVar &quot;+&quot;)) (HsLit 0)) (HsVar &quot;xs&quot;)</span><u></u><u></u></p>
<p><span style="color:rgb(31,73,125);font-family:&quot;Verdana&quot;,&quot;sans-serif&quot;;font-size:11pt">We could derive ‘Show’ on everything but that would generate a LOT of new code, that would seldom be used.  Also ‘Show’ doesn’t pretty-print so the result would
 be illegible. <u></u><u></u></span></p></div>
<p><span style="color:rgb(31,73,125);font-family:&quot;Verdana&quot;,&quot;sans-serif&quot;;font-size:11pt"><u></u></span></p></div></div></blockquote></div><div><div>If plugins could be used before the conversion to Core, such a plugin might be a tidy way to workaround the issue of bloating GHC&#39;s binary size with all that Show code.</div>



<div> </div><div>This previous email thread <a href="http://www.haskell.org/pipermail/glasgow-haskell-users/2012-March/022076.html" target="_blank"><font color="#0066cc">http://www.haskell.org/pipermail/glasgow-haskell-users/2012-March/022076.html</font></a> seems relevant, and Marlow&#39;s comment there makes it sound like a pretty easy change.</div>



</div></div></div></div>
</blockquote></div><br><div>I&#39;m currently writing a ShowInstances module with orphan Show instances for all GHC data types. I will just import that during development, but not include it in the final code. It will hopefully satisfy my current need.</div>

<div><br></div>