[Haskell-cafe] String vs ByteString
Michael Snoyman
michael at snoyman.com
Fri Aug 13 07:42:41 EDT 2010
Just import the ByteString module qualified. In other words:
import qualified Data.ByteString as S
or for lazy bytestrings:
import qualified Data.ByteString.Lazy as L
Cheers,
Michael
On Fri, Aug 13, 2010 at 2:32 PM, Erik de Castro Lopo
<mle+hs at mega-nerd.com<mle%2Bhs at mega-nerd.com>
> wrote:
> Hi all,
>
> I'm using Tagsoup to strip data out of some rather large XML files.
>
> Since the files are large I'm using ByteString, but that leads me
> to wonder what is the best way to handle clashes between Prelude
> functions like putStrLn and the ByteString versions?
>
> Anyone have any suggestions for doing this as neatly as possible?
>
> Erik
> --
> ----------------------------------------------------------------------
> Erik de Castro Lopo
> http://www.mega-nerd.com/
> _______________________________________________
> Haskell-Cafe mailing list
> Haskell-Cafe at haskell.org
> http://www.haskell.org/mailman/listinfo/haskell-cafe
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.haskell.org/pipermail/haskell-cafe/attachments/20100813/fffc0f93/attachment.html
More information about the Haskell-Cafe
mailing list