I am getting a collision with &quot;Internal&quot; .... sigh.<br><br><br>vasili<br><br><div class="gmail_quote">On Tue, Dec 2, 2008 at 5:59 PM, Duncan Coutts <span dir="ltr">&lt;<a href="mailto:duncan.coutts@worc.ox.ac.uk">duncan.coutts@worc.ox.ac.uk</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div><div></div><div class="Wj3C7c">On Tue, 2008-12-02 at 17:43 -0600, Galchin, Vasili wrote:<br>

&gt; Hello,<br>
&gt;<br>
&gt; &nbsp; &nbsp; &nbsp;Some mention is made in corresponding web pages about<br>
&gt; implementation difference of these three different DataString impl.<br>
&gt; Any advice?<br>
<br>
</div></div>Perhaps you need to ask a more specific question.<br>
<br>
Data.ByteString is a simple strict sequence of bytes (as Word8). That<br>
means the whole thing is in memory at once in one big block.<br>
<br>
Data.ByteString.Char8 provides the same type as Data.ByteString but the<br>
operations are in terms of 8-bit Chars. This is for use in files and<br>
protocols that contain ASCII as a subset. This is particularly useful<br>
for protocols containing mixed text and binary content. It should not be<br>
used instead of proper Unicode.<br>
<br>
<br>
Data.ByteString.Lazy is a different representation. As the name<br>
suggests, it&#39;s lazy like a lazy list. So like a list the whole thing<br>
does not need to be in memory if it can be processed incrementally. It<br>
supports lazy IO, like getContents does for String. It is particularly<br>
useful for handling long or unbounded streams of data in a pure style.<br>
<br>
Data.ByteString.Lazy.Char8 is the Char8 equivalent.<br>
<font color="#888888"><br>
Duncan<br>
<br>
</font></blockquote></div><br>