Proposal: add ByteString support to unix:System.Posix.IO API

wren ng thornton wren at freegeek.org
Tue Mar 1 10:29:03 CET 2011


On 3/1/11 1:35 AM, Bryan O'Sullivan wrote:
> I want to see four entry points for writing:
>
> fdWrite :: Strict.ByteString ->  IO Int
> fdWriteAll :: Strict.ByteString ->  IO ()
> fdWritev :: [Strict.ByteString] ->  IO Int -- turn the list into an iovec,
> then call writev
> fdWritevAll :: [Strict.ByteString] ->  IO ()
>
> People would normally use the 'All' variants, but there are times when you
> really do want to know if you've performed a short write so that you can
> handle it yourself.

What's an "iovec"?

-- 
Live well,
~wren



More information about the Libraries mailing list