<div dir="ltr"><div>here is a very comprehensive explanation of lazy evaluation:</div><div><br></div><a href="https://github.com/takenobu-hs/lazy_evaluation">https://github.com/takenobu-hs/lazy_evaluation</a><br>​<div>I understand < 5% of this so can't add to it.</div><div><br></div><div>about your particular problem, I would not try to rely on lazy evaluation (regardless of how it actually works) but instead break data in chunks, serialize and write the chunks to disk using libraries. This should work.</div></div>