|
definition: |
hGetBinaryContents :: Handle -> IO [Byte]
hGetBinaryContents h = do
eof <- hIsEOF h
if eof then hClose h >> return []
else do b <- hGetByte h
bs <- hGetBinaryContents h
return (b:bs)
|
|
demand: |
no demanded arguments |
|
deterministic: |
deterministic operation |
|
documentation: |
Reads the complete contents from an input handle and closes the input handle before returning the contents. |
|
failfree: |
_ |
|
indeterministic: |
referentially transparent operation |
|
infix: |
no fixity defined |
|
iotype: |
{(_) |-> _}
|
|
name: |
hGetBinaryContents |
|
precedence: |
no precedence defined |
|
result-values: |
_ |
|
signature: |
System.IO.Handle -> Prelude.IO [Prelude.Int] |
|
solution-complete: |
operation might suspend on free variables |
|
terminating: |
possibly non-terminating |
|
totally-defined: |
reducible on all ground data terms |