Universum exports some functions from Control.Monad.Catch, e. g.: catch, catchAll, throwM. This function don't work well with async exceptions.
You can read about safe-exceptions package here: https://github.com/fpco/safe-exceptions#readme
I propose to export those version of functions.
One caveat is that if we want to define our own implementation of e. g. catch (which is part of MonadCatch), then we need import different thing. But it should be very rare case, so I think it's ok.
Universum
exports some functions fromControl.Monad.Catch
, e. g.:catch
,catchAll
,throwM
. This function don't work well with async exceptions. You can read aboutsafe-exceptions
package here: https://github.com/fpco/safe-exceptions#readme I propose to export those version of functions. One caveat is that if we want to define our own implementation of e. g.catch
(which is part ofMonadCatch
), then we need import different thing. But it should be very rare case, so I think it's ok.