<p>You should look up bytestring and friends on hackage.</p>
<p>If it is something quite simple you can use the lazy variants and provided that you don&#39;t try to hold onto the input you should get nice constant space without trying too hard.</p>
<p>I recommend the early chapters on IO in real world haskell if you want more info on lazy IO.</p>
<div class="gmail_quote">On 24 Sep 2011 03:06, &quot;anyzhen&quot; &lt;<a href="mailto:jiangzhen3s@qq.com">jiangzhen3s@qq.com</a>&gt; wrote:<br type="attribution">&gt; consider this :<br>&gt; i want load a 4G file(or some bigger file) ,and the process  data operation just like  010 to 101( XOR bits  ) , is it some efficient function down it ?<br>
&gt; such  hPutStr  hPutChar is Char layer   , is exist bit layer operations?<br>&gt; <br>&gt; <br>&gt; thanks for any help <br>&gt; <br>&gt; <br>&gt; <a href="mailto:jiangzhen3s@qq.com">jiangzhen3s@qq.com</a><br></div>