georgefst / lifx-lan

https://hackage.haskell.org/package/lifx-lan
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

Improvements to `LifxT` monadic interface #31

Open georgefst opened 1 year ago

georgefst commented 1 year ago

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.

Somewhat related: https://github.com/georgefst/lifx-lan/issues/26.