<div dir="ltr">I personally use tuple sections a fair bit, though admittedly mostly for simple (,a) or (a,) cases.</div><div class="gmail_extra"><br><br><div class="gmail_quote">On Fri, May 17, 2013 at 3:01 PM, Ian Lynagh <span dir="ltr">&lt;<a href="mailto:ian@well-typed.com" target="_blank">ian@well-typed.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im">On Fri, May 17, 2013 at 02:04:44PM -0400, Edward Kmett wrote:<br>
&gt; My main concern is its a really weird corner case for the grammar to<br>
&gt; remember for tuple sections and it does have very weird grammar<br>
&gt; specification issues.<br>
<br>
</div>Tuple sections could look like<br>
    (True, _)<br>
rather than<br>
    (True,)<br>
<br>
Does anyone know how common tuple sections are, incidentally? They&#39;ve<br>
been around since GHC 6.12, so it would be interesting to know if people<br>
are actually using them.<br>
<div class="im"><br>
&gt; I really have no objection to it for the other cases. It&#39;d make export<br>
&gt; lists cleaner,<br>
<br>
</div>Actually, you are already allowed an extra trailing comma in import and<br>
export lists.<br>
<div class="im"><br>
&gt; maybe a few other cases, but how often can you really say<br>
&gt; you can meaningfully comment out one field of a tuple have have the<br>
&gt; surrounding code make any sense?<br>
<br>
</div>It happens occasionally, especially when simplifying code while<br>
debugging.<br>
<br>
Commenting out list items is much more common, though.<br>
<br>
I&#39;d be in favour of allowing a trailing or leading comma anywhere that<br>
comma is used as a separator. TupleSections would need to be changed or<br>
removed, though.<br>
<br>
<br>
Thanks<br>
<span class="HOEnZb"><font color="#888888">Ian<br>
--<br>
Ian Lynagh, Haskell Consultant<br>
Well-Typed LLP, <a href="http://www.well-typed.com/" target="_blank">http://www.well-typed.com/</a><br>
</font></span><div class="HOEnZb"><div class="h5"><br>
<br>
_______________________________________________<br>
Haskell-prime mailing list<br>
<a href="mailto:Haskell-prime@haskell.org">Haskell-prime@haskell.org</a><br>
<a href="http://www.haskell.org/mailman/listinfo/haskell-prime" target="_blank">http://www.haskell.org/mailman/listinfo/haskell-prime</a><br>
</div></div></blockquote></div><br></div>