<div dir="ltr">On Sat, Mar 24, 2012 at 16:16, Ian Lynagh <span dir="ltr">&lt;<a href="mailto:igloo@earth.li">igloo@earth.li</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 class="im">On Sat, Mar 24, 2012 at 11:50:10AM -0700, Johan Tibell wrote:<br>&gt; Using list-based operations on Strings are almost always wrong<br>
<br>
</div>Data.Text seems to think that many of them are worth reimplementing for<br>
Text. It looks like someone&#39;s systematically gone through Data.List.<br>
And in fact, very few functions there /don&#39;t/ look like they are<br>
directly equivalent to list functions.<br></blockquote><div><br></div><div>I was under the impression they have been very carefully designed to do the right thing with characters represented by multiple codepoints, which is something the String version *cannot* do.  It would help if Bryan were involved with this discussion, though.  (I&#39;m cc:ing him on this.)  Since the whole point of Data.Text is to handle stuff like this properly I would be surprised if your assertion that </div>
<div><br></div><blockquote class="gmail_quote" style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
<div class="im" style>&gt;     upcase :: String -&gt; String<br>&gt;     upcase = map toUpper<br><br></div><span style>This is no more incorrect than</span><br style><span style>   upcase = Data.Text.map toUpper</span><br style>
</blockquote></div><div><br></div><div>is correct.</div><div><br></div>-- <br>brandon s allbery                                      <a href="mailto:allbery.b@gmail.com" target="_blank">allbery.b@gmail.com</a><br>wandering unix systems administrator (available)     (412) 475-9364 vm/sms<br>
<br>
</div>