
4 Feb
2010
4 Feb
'10
4:05 p.m.
Am Donnerstag 04 Februar 2010 21:46:39 schrieb Hong Yang:
Hi,
What is the difference between show and unpack when the function arguments are of ByteString type? I thought they are the same, but they are not interchangeable at compile time.
Thanks,
Hong
If you're using Data.ByteString, unpack has type ByteString -> [Word8] unpack and show are the same (perhaps excepting efficiency) if you use Data.ByteString.Char8 (ditto for Data.ByteString.Lazy[.Char8]).