[Haskell-cafe] [Byte8] <-> ByteString

Luke Palmer lrpalmer at gmail.com
Tue Dec 23 01:49:02 EST 2008

2008/12/22 Galchin, Vasili <vigalchin at gmail.com>

> Hello,
>       I have been reading through Data->ByteString. What is the is most
> elegant and efficient way to map/unmap [Byte8] <-> ByteString?

pack and unpack.  You might need a fromIntegral in there, depending on
whether Byte8 and Word8 are the same.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.haskell.org/pipermail/haskell-cafe/attachments/20081222/39ee4b0e/attachment-0001.htm

More information about the Haskell-Cafe mailing list