Since the files are large I&#39;m using ByteString, but that leads me<br>
to wonder what is the best way to handle clashes between Prelude<br>
functions like putStrLn and the ByteString versions?<br>
<br>
Anyone have any suggestions for doing this as neatly as possible?<br></blockquote></div></div><br>Use qualified imports, like so:<br><br>import qualified Data.ByteString as B<br> </blockquote><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
main = B.putStrLn $ B.pack &quot;test&quot;<br>

<br></blockquote><div>If you want to pack a String into a ByteString, you&#39;ll need to import Data.ByteString.Char8 instead.</div><div><br></div><div>Michael </div></div></div>