[Haskell-cafe] lazy strings and parallel read
Duncan Coutts
duncan.coutts at worc.ox.ac.uk
Fri Sep 19 14:15:26 EDT 2008
On Fri, 2008-09-19 at 19:50 +0200, Manlio Perillo wrote:
> But if every function that reads the data uses pread, then this should
> no more be a problem.
>
> Or I'm missing some other thing?
If you used something like pread instead of hGetContents then yes that
would not involve semi-closing a handle or doing lazy IO. Of course
pread only works for seekable Handles like files, not terminals, pipes,
sockets etc etc.
Duncan
More information about the Haskell-Cafe
mailing list