<div class="gmail_quote">On Fri, Oct 8, 2010 at 8:00 AM, Ross Paterson <span dir="ltr">&lt;<a href="mailto:ross@soi.city.ac.uk">ross@soi.city.ac.uk</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"><br></div>
text        base      bytestring     type in text (or equivalent if absent)<br>
---------------------------------------------------------------------------<br>
break       -         breakSubstring Text -&gt; Text -&gt; (Text, Text)<br>
breakBy     break     break          (Char -&gt; Bool) -&gt; Text -&gt; (Text, Text)<br>
<div class="im">breakEnd    -         -              Text -&gt; Text -&gt; (Text, Text)<br>
</div>-           -         breakEnd       (Char -&gt; Bool) -&gt; Text -&gt; (Text, Text)<br>
count       -         -              Text -&gt; Text -&gt; Int<br>
-           -         count          Char -&gt; Text -&gt; Int<br>
<div class="im">find        -         -              Text -&gt; Text -&gt; [(Text, Text)]<br>
</div>findBy      find      find           (Char -&gt; Bool) -&gt; Text -&gt; Maybe Char<br>
partitionBy partition -              (Char -&gt; Bool) -&gt; Text -&gt; (Text, Text)<br>
replicate   -         -              Int -&gt; Text -&gt; Text<br>
-           replicate replicate      Int -&gt; Char -&gt; Text<br>
spanBy      span      span           (Char -&gt; Bool) -&gt; Text -&gt; (Text, Text)<br>
split       -         -              Text -&gt; Text -&gt; [Text]<br>
-           -         split          Char -&gt; Text -&gt; [Text]<br>
splitBy     -         splitWith      (Char -&gt; Bool) -&gt; Text -&gt; [Text]<br>
<div class="im">unfoldrN    -         -              Int -&gt; (a -&gt; Maybe (Char, a)) -&gt; a -&gt; Text<br>
</div>-           -         unfoldrN       Int -&gt; (a -&gt; Maybe (Char, a)) -&gt; a -&gt; (Text, Maybe a)<br>
zipWith     zipWith   -              (Char -&gt; Char -&gt; Char) -&gt; Text -&gt; Text -&gt; Text<br>
-           zipWith   zipWith        (Char -&gt; Char -&gt; a) -&gt; Text -&gt; Text -&gt; [a]<br>
<br>
* The -By suffix has been used for predicate versions in 5 cases here,<br>
  but not for filter and findIndex.<br></blockquote><div><br></div><div>In the case of filter, that&#39;s because a filter function that didn&#39;t accept a predicate wouldn&#39;t be useful. I added findIndex for completeness back when that was the tack I was taking, but it arguably shouldn&#39;t be present at all, since it&#39;s subsumed by find.</div>
<div><br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
* The find function has no connection with findBy.  It ought to have a<br>
  name that is the plural of the name of the break function.</blockquote><div><br></div><div>Again, this is present for completeness, and makes little obvious sense to retain.</div></div>