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 _______________________________________________ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe