#2488: ByteString hGet documentation is incomplete
-------------------------+--------------------------------------------------
Reporter: cjs | Owner:
Type: bug | Status: new
Priority: normal | Component: libraries/base
Version: 6.8.3 | Severity: normal
Keywords: | Testcase:
Architecture: Multiple | Os: Multiple
-------------------------+--------------------------------------------------
All four versions of hGet for the various Data.!ByteString implementations
claim that it "[reads] n bytes into a !ByteString." This is not always the
case. For example, it appears that on EOF less than n bytes are read. The
conditions under which it will not succeed in reading n bytes into a
!ByteString (be it less than n, or it raising some sort of error) should
be documented.
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/2488>
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