
11 Jan
2015
11 Jan
'15
1:18 p.m.
On 2015-01-11 at 01:22:34 +0100, Brandon Allbery wrote: [...]
The "ByteString" in the SYstem.Posix.*.ByteString modules applies to the pathnames (POSIX pathnames are byte strings, and there's lots of ways to cause problems if you insist on pretending that they are in any particular encoding), not the values being read/written, so functions like that are basically carried along just to provide a mostly compatible API.
I would expect to find functions working with ByteString values under Data.ByteString.
However those take [Char] as FilePath argument... where would you look if you wanted to functions that used ByteStrings for both, filepaths and content? Cheers, hvr