On 2004-11-01, Peter Simons <[EMAIL PROTECTED]> wrote: > Alexander N Kogan writes: > > > I'm newbie and I don't understand how to process large > > files in haskell with constant memory requirements. > > Read and process the file in blocks: > > http://cryp.to/blockio/docs/tutorial.html
I don't think that would really save much memory, and in fact, would likely just make the code a lot more complex. It seems like a simple wrapper around hGetContents over a file that uses block buffering would suffice. (The block buffering to boost performace.) -- John _______________________________________________ Haskell-Cafe mailing list [EMAIL PROTECTED] http://www.haskell.org/mailman/listinfo/haskell-cafe