Proposal: add ByteString support to unix:System.Posix.IO API
Gábor Lehel
illissius at gmail.com
Thu Mar 3 19:18:14 CET 2011
2011/3/3 Bryan O'Sullivan <bos at serpentine.com>:
> 2011/3/3 Gábor Lehel <illissius at gmail.com>
>>
>> What is the benefit from removing String versions (as opposed to just
>> adding ByteString (and/or Text) ones alongside them)?
>
> Strings are unicode. A file descriptor handles bytes.
>
I understand, and agree that ByteStrings are more appropriate. I'm not
particularly attached to Strings. It might nonetheless make sense to
keep the String versions around for the convenience of people who
happen to have gotten a String from somewhere (there are, after all,
quite a few such places), and wish to output it to a file descriptor.
--
Work is punishment for failing to procrastinate effectively.
More information about the Libraries
mailing list