[Haskell-cafe] How do I use ByteString?

Gregory Crosswhite gcross at phys.washington.edu
Mon Apr 5 21:32:31 EDT 2010

Look in Data.ByteString.Char8


On Apr 5, 2010, at 6:27 PM, Günther Schmidt wrote:

> Hi all,
> I've never found an easy way to deal with ByteStrings.
> I'm using the RSA library and it en- and decodes Data.ByteString.Lazy.ByteString.
> I initially start with Strings, ie. [Char], but there is no function to convert the 2 back and forth. There is however a function which takes [Word8] to BytesString and back.
> It all wouldn't be so confusing if there weren't several versions of ByteString in several modules to choose from. And a number of libraries requiring different types of ByteString.
> I am sure the designers of the bytestring package had good reason for this design, is there also a webpage which explains which one to use and under what circumstances?
> Günther
> _______________________________________________
> Haskell-Cafe mailing list
> Haskell-Cafe at haskell.org
> http://www.haskell.org/mailman/listinfo/haskell-cafe

More information about the Haskell-Cafe mailing list