#1070: Add hPutNonBlocking to Data.ByteString
--------------------------------+-------------------------------------------
Reporter: guest | Owner: duncan
Type: feature request | Status: closed
Priority: high | Milestone: 7.2.1
Component: libraries (other) | Version: 6.6
Resolution: fixed | Keywords:
Testcase: | Blockedby:
Difficulty: Unknown | Os: Unknown/Multiple
Blocking: | Architecture: Unknown/Multiple
Failure: None/Unknown |
--------------------------------+-------------------------------------------
Changes (by duncan):
* status: new => closed
* resolution: => fixed
Comment:
I have decided to add the function with this type:
{{{
hPutNonBlocking :: Handle -> ByteString -> IO ByteString
}}}
That is, it returns the unwritten tail, if any. This generalised better to
the lazy bytestring case. In the lazy bytestring case, using the number of
bytes written would mean that any correct program would necessarily have a
space leak.
This change is now in the upstream darcs repo and will be in
bytestring-0.9.2.0 which will be released soonish.
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/1070#comment:7>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
_______________________________________________
Glasgow-haskell-bugs mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs