You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is there any obstacle preventing addition of MoandMask instance for GenHaxl u w ? It already has MonadThrow and MonadCatch instances.
My usecase for this is that I would like to dump caches to file at the end of GenHaxl computation, to be able to reproduce any problem that ocurred. I would really like to use finally there, but it requires MonadMask instance.
The text was updated successfully, but these errors were encountered:
Yeah I suspect this would be quite difficult. Haxl computations don't execute in a nicely scoped way like IO does, you would have to mask/unmask when suspending and resuming fragments of the computation. Sounds messy and probably has a performance impact.
Is there any obstacle preventing addition of
MoandMask
instance forGenHaxl u w
? It already hasMonadThrow
andMonadCatch
instances.My usecase for this is that I would like to dump caches to file at the end of
GenHaxl
computation, to be able to reproduce any problem that ocurred. I would really like to usefinally
there, but it requiresMonadMask
instance.The text was updated successfully, but these errors were encountered: