fpco / unliftio

The MonadUnliftIO typeclass for unlifting monads to IO
Other
151 stars 51 forks source link

Functor instance for Handler #89

Closed anpryl closed 1 year ago

anpryl commented 3 years ago

Handler from safe-exceptions has Functor instance: https://hackage.haskell.org/package/safe-exceptions-0.1.7.2/docs/Control-Exception-Safe.html#t:Handler

Is it possible to add Functor to unliftios Handler?

snoyberg commented 3 years ago

I don't see a problem with that, PR welcome.

LiamGoodacre commented 1 year ago

Looks like the safe-exceptions Handler is re-exported now (since https://github.com/fpco/unliftio/commit/9c1f2750d8bc69f33b47ac9716e49b2b5dfca222), so this can prolly be closed

snoyberg commented 1 year ago

Cool, thanks!