<div dir="ltr">Felipe, I&#39;m trying to use your Hipmunk package. :)<div style>The resources I need to keep around are the objects used for the simulation.</div><div style>Do you recomend using &quot;resourcet&quot; to handle this or something else?</div>

<div style><br></div><div style>Thanks.</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">2013/1/30 Felipe Almeida Lessa <span dir="ltr">&lt;<a href="mailto:felipe.lessa@gmail.com" target="_blank">felipe.lessa@gmail.com</a>&gt;</span><br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Everything that Johan Tibell said + you may be interested in the<br>
resourcet package [1] (which is used by conduit to handle resources).<br>
<br>
Cheers,<br>
<br>
[1] <a href="http://hackage.haskell.org/package/resourcet" target="_blank">http://hackage.haskell.org/package/resourcet</a><br>
<div class="im"><br>
On Tue, Jan 29, 2013 at 8:59 PM, Thiago Negri &lt;<a href="mailto:evohunz@gmail.com">evohunz@gmail.com</a>&gt; wrote:<br>
</div><div><div class="h5">&gt; `Control.Exception.bracket` is a nice function to acquire and release a<br>
&gt; resource in a small context.<br>
&gt;<br>
&gt; But, how should I handle resources that are hold for a long time?<br>
&gt;<br>
&gt; Should I put `Control.Exception.finally` on every single line of my<br>
&gt; finalizers?<br>
&gt; What exceptions may occur on an IO operation?<br>
&gt; Every IO function has the risk of throwing an exception?<br>
&gt;<br>
&gt; Thanks,<br>
&gt; Thiago.<br>
&gt;<br>
&gt;<br>
</div></div>&gt; _______________________________________________<br>
&gt; Haskell-Cafe mailing list<br>
&gt; <a href="mailto:Haskell-Cafe@haskell.org">Haskell-Cafe@haskell.org</a><br>
&gt; <a href="http://www.haskell.org/mailman/listinfo/haskell-cafe" target="_blank">http://www.haskell.org/mailman/listinfo/haskell-cafe</a><br>
&gt;<br>
<span class="HOEnZb"><font color="#888888"><br>
<br>
<br>
--<br>
Felipe.<br>
</font></span></blockquote></div><br></div>