2008/12/22 Galchin, Vasili <vigalc...@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
_______________________________________________
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe

Reply via email to