
4 Jun
2013
4 Jun
'13
4:57 a.m.
Oops.
Ben Gamari
To be perfectly clear, ByteString and Text target much different use-cases and are hardly interchangeable. While ByteString is, as the name suggests, a string of bytes, Text is a string of characters in a Unicode encoding. When you are talking about unstructured binary data, you should most certainly be using ByteString.
Why create a special case? Right now you should use ByteString, yes, but I wish I could just use a generic array of Word8.