<div dir="ltr">Felipe, I'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 "resourcet" 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"><<a href="mailto:felipe.lessa@gmail.com" target="_blank">felipe.lessa@gmail.com</a>></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 <<a href="mailto:evohunz@gmail.com">evohunz@gmail.com</a>> wrote:<br>
</div><div><div class="h5">> `Control.Exception.bracket` is a nice function to acquire and release a<br>
> resource in a small context.<br>
><br>
> But, how should I handle resources that are hold for a long time?<br>
><br>
> Should I put `Control.Exception.finally` on every single line of my<br>
> finalizers?<br>
> What exceptions may occur on an IO operation?<br>
> Every IO function has the risk of throwing an exception?<br>
><br>
> Thanks,<br>
> Thiago.<br>
><br>
><br>
</div></div>> _______________________________________________<br>
> Haskell-Cafe mailing list<br>
> <a href="mailto:Haskell-Cafe@haskell.org">Haskell-Cafe@haskell.org</a><br>
> <a href="http://www.haskell.org/mailman/listinfo/haskell-cafe" target="_blank">http://www.haskell.org/mailman/listinfo/haskell-cafe</a><br>
><br>
<span class="HOEnZb"><font color="#888888"><br>
<br>
<br>
--<br>
Felipe.<br>
</font></span></blockquote></div><br></div>