
On 2013-11-21 02:55, Simon Marlow wrote:
However, I'm not totally sure from that, whether the type-sigs
fdRead :: Fd -> ByteCount -- ^How many bytes to read -> IO (String, ByteCount) -- ^ The bytes read, how many bytes were read.
fdWrite :: Fd -> String -> IO ByteCount
were really intended to be that way.
Simon, maybe you can provide some insight here?
Brandon's reply is correct, the ByteString variant of the POSIX API is intended to change the representation of file paths only.
These two functions are totally useless and we need better versions anyway.
Regarding the path type issue, I wonder if it wouldn't be easier to settle on something like newtype PosixFilePath = PosixFilePath ByteString instance IsString PosixFilePath where ... -- Ashley