On Tue, 12 Sep 2000, Simon Marlow wrote:
> hGetLine is strict, in that it keeps reading until a newline or EOF is
> found. Repeated hGetLine can be used to read the entire file.
>
> Alternatively you could use IOExts.hGetBuf and friends to slurp the data
> into a buffer and then convert the buffer into a string with one of the
> CString.unpackNBytes family.
>
All this is very useful to know. But us it documented somewhere? I had a
quick scan through the report and it isn't explicit about the
strictness/laziness of hGetLine (and some other operations as well).
It would be nice to have it documented somewhere. Especially since some
people seem to be bitten by the fact that some operations have an
unexpected behaviour.
/Josef