You can use the functions in UnliftIO.Exception, in the unliftio package

https://www.stackage.org/package/unliftio

On Wed, Apr 25, 2018 at 2:26 PM, waldmann <johannes.waldmann@htwk-leipzig.de> wrote:
Dear Cafe,

I wonder what's the recommended way to catch an exception,
clean up resources, etc., in a yesod Handler.
I was using Control.Monad.Catch.bracket_ in legacy code but now I get
"No instance for (Control.Monad.Catch.MonadMask (HandlerFor App))"

- J
_______________________________________________
Haskell-Cafe mailing list
To (un)subscribe, modify options or view archives go to:
http://mail.haskell.org/cgi-bin/mailman/listinfo/haskell-cafe
Only members subscribed via the mailman list are allowed to post.