<div class="gmail_quote">On Sat, Aug 14, 2010 at 10:07 PM, Donn Cave <span dir="ltr">&lt;<a href="mailto:donn@avvanta.com">donn@avvanta.com</a>&gt;</span> wrote:<br><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div class="im">Am I confused about this?  It&#39;s why I can&#39;t see Text ever being</div></blockquote><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
simply the obvious choice.  [Char] will continue to be the obvious<br>
choice if you want a functional data type that supports pattern<br>
matching etc.</blockquote><div><br></div><div>Actually, with view patterns, Text is pretty nice to pattern match against:</div><div><br></div><div>foo (uncons -&gt; Just (c,cs)) = &quot;whee&quot;</div><div><br></div><div>
despam (prefixed &quot;spam&quot; -&gt; Just suffix) = &quot;whee&quot; `mappend` suffix</div><div><br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">ByteString will continue to be the obvious choice<br>

for big data loads.</blockquote><div><br></div><div>Don&#39;t confuse &quot;I have big data&quot; with &quot;I need bytes&quot;. If you are working with bytes, use bytestring. If you are working with text, outside of a few narrow domains you should use text.</div>
<div><br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">  We&#39;ll have a three way choice between programming<br>
elegance, correctness and efficiency.  If Haskell were more than<br>
just a research language, this might be its most prominent open<br>
sore, don&#39;t you think?</blockquote><div><br></div><div>No, that&#39;s just FUD. </div></div>