I'd really like to rethink this for a 2.0 release.
See e.g. this runLifxUntilSuccess function. It's a bit awkward with the ExceptT. Maybe we should allow throwing arbitrary IO errors in LifxT IO? And I don't like that this has to recreate the monadic context anyway. We could probably provide MonadCatch or an ad-hoc catching function for LifxT.
I'd really like to rethink this for a 2.0 release.
See e.g. this
runLifxUntilSuccess
function. It's a bit awkward with theExceptT
. Maybe we should allow throwing arbitrary IO errors inLifxT IO
? And I don't like that this has to recreate the monadic context anyway. We could probably provideMonadCatch
or an ad-hoc catching function forLifxT
.Somewhat related: https://github.com/georgefst/lifx-lan/issues/26.