You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
With -XTypeApplications you can do this with base's try: try @HttpException $ do... which is pretty handy. But with safe-exceptions you must do try @IO @HttpException. If the type parameters were explicitly ordered the other way around, the @IO could be "curried", i.e. left for type inference, more easily.
The text was updated successfully, but these errors were encountered:
@bitemyapp I should have mentioned that. I thought it required -XPartialTypeSignatures but I see that it does not. That certainly helps. Ideally, though, I think one would be able to simply change the import Control.Exception (...) import to import Control.Exception.Safe (...) and not have to change anything else.
I'm pretty terrified at how easily we can introduce breaking changes into the public API of a package thanks to TypeApplications. I'm not too terribly excited about supporting this workflow as a result, but I'll accept a PR with the change.
With
-XTypeApplications
you can do this with base'stry
:try @HttpException $ do...
which is pretty handy. But withsafe-exceptions
you must dotry @IO @HttpException
. If the type parameters were explicitly ordered the other way around, the@IO
could be "curried", i.e. left for type inference, more easily.The text was updated successfully, but these errors were encountered: