fpco / unliftio

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

throwSTM missing #54

Open lehins opened 4 years ago

lehins commented 4 years ago

Is throwSTM not exported from UnliftIO.STM on purpose, or was just forgotten about? If it is the former, I could supply a PR with adding it.

snoyberg commented 4 years ago

I think it's because I'm not a fan of it; I don't like the idea of throwing an exception from inside STM. That said, I don't see a major problem with exporting it.