[Haskell-cafe] [Byte8] <-> ByteString
Galchin, Vasili
vigalchin at gmail.com
Tue Dec 23 02:12:47 EST 2008
sorry actually ByteString -> [Word8]....
On Tue, Dec 23, 2008 at 12:49 AM, Luke Palmer <lrpalmer at gmail.com> wrote:
> 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.
>
> Luke
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.haskell.org/pipermail/haskell-cafe/attachments/20081223/6a8a115f/attachment.htm
More information about the Haskell-Cafe
mailing list