georgefst / lifx-lan

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

Re-think error monad instances #26

Open georgefst opened 1 year ago

georgefst commented 1 year ago

I'm unsure about eee4e3164bb3aa48ff5631d3753b41f757bf62b3. It works nicely when m is IO, which is the common case. But, because of the way Haskell's type classes work, this presumably rules out instances where m doesn't have MonadError instance, even though we'd ideally have instance MonadError LifxError (LifxT m), i.e. the newtype-derivable one.