<div dir="ltr"><div><div><div>Hi,<br><br>I&#39;m working on an rss file getter. I was wondering if I could get some help getting files to download and save without holding the entire file in memory in between. I chose Conduit&#39;s version of SimpleHttp only because it was recommended, and it was the quickest 
thing I could get to work correctly because I was eager to get started 
on this project, so I&#39;d be happy to switch.<br><br></div><div>Here&#39;s where I define the download and save functions:<br><br><a href="https://github.com/orblivion/feedGetter/blob/master/rss.hs#L107">https://github.com/orblivion/feedGetter/blob/master/rss.hs#L107</a><br>
<br></div><div>And here&#39;s where I use them, getting multiple at a time with async:<br></div><div><br><a href="https://github.com/orblivion/feedGetter/blob/master/rss.hs#L208">https://github.com/orblivion/feedGetter/blob/master/rss.hs#L208</a><br>
</div><div><br></div><div>What happens when I run this is that it outputs that it&#39;s &quot;Getting&quot; the file, waits a while (presumably to download the whole thing), then says it&#39;s &quot;Saving&quot;. And I checked the file system, it&#39;s not there during the pause. I&#39;m not entirely sure why. Is it my choice of libraries, or the way I&#39;m using them? Perhaps something to do with async? I just tried content &lt;- simpleHttp &quot;<a href="http://google.com">http://google.com</a>&quot; in ghci, and it does pause for a second, so I&#39;m guessing this is strict from the getgo. But I&#39;ve done almost no I/O before.<br>
</div><br>Is there a straightforward, canonical option? It seems like there perhaps should be. But if it comes down to using pipes or conduit, what the heck I&#39;ll try it out, I&#39;d like to learn pipes eventually.<br>
<br></div>Thanks a lot,<br><br></div>Dan<br></div>