[Haskell-cafe] how to catch/bracket in yesod-1.6?

Michael Snoyman michael at snoyman.com
Wed Apr 25 12:19:07 UTC 2018

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


On Wed, Apr 25, 2018 at 2:26 PM, waldmann <johannes.waldmann at 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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.haskell.org/pipermail/haskell-cafe/attachments/20180425/cb540bdd/attachment.html>

More information about the Haskell-Cafe mailing list