Hello!

On Fri, Mar 10, 2000 at 01:42:01AM -0800, Simon Marlow wrote:
> [...]
> >   hPutBufBA  :: Handle -> ByteArray Int -> Int -> IO ()

> >   hPutBuf    :: Handle -> Addr -> Int -> IO ()
> [...]

Why are the output functions of return type IO () and not also
IO Int (or rather IO [some integral type large enough to cover C's size_t])?
There *is* possibility for partial writes on POSIX at least.

Regards, Hannah.

Reply via email to