Comment Comment by throwaway858 I'm not sure why the parent was downvoted, this sounds exactly like the Haskell conduit library (or indeed plain laziness if you don't need IO). parent throwaway858 3 years ago