<div dir="ltr">You can use the functions in UnliftIO.Exception, in the unliftio package<br><br><a href="https://www.stackage.org/package/unliftio">https://www.stackage.org/package/unliftio</a><br></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Apr 25, 2018 at 2:26 PM, waldmann <span dir="ltr"><<a href="mailto:johannes.waldmann@htwk-leipzig.de" target="_blank">johannes.waldmann@htwk-leipzig.de</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Dear Cafe,<br>
<br>
I wonder what's the recommended way to catch an exception,<br>
clean up resources, etc., in a yesod Handler.<br>
I was using Control.Monad.Catch.bracket_ in legacy code but now I get<br>
"No instance for (Control.Monad.Catch.MonadMask (HandlerFor App))"<br>
<br>
- J<br>
______________________________<wbr>_________________<br>
Haskell-Cafe mailing list<br>
To (un)subscribe, modify options or view archives go to:<br>
<a href="http://mail.haskell.org/cgi-bin/mailman/listinfo/haskell-cafe" rel="noreferrer" target="_blank">http://mail.haskell.org/cgi-<wbr>bin/mailman/listinfo/haskell-<wbr>cafe</a><br>
Only members subscribed via the mailman list are allowed to post.</blockquote></div><br></div>