serokell / universum

:milky_way: Prelude written in @Serokell
MIT License
176 stars 28 forks source link

Export exceptions-related functions from safe-exceptions #62

Closed gromakovsky closed 7 years ago

gromakovsky commented 7 years ago

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.

gromakovsky commented 7 years ago

Made a PR #63.