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
As explained on http://stackoverflow.com/a/34287498/477476 , RevState's MonadFix instance is too strict and is practically unusable as a result. The fix is a trivial matter of using an irrefutable pattern in the instance definition; i.e. going from
instance MonadFix m => MonadFix (StateT s m) where
mfix f = StateT $ \s -> mfix (\(x, _) -> runStateT (f x) s)
to
instance MonadFix m => MonadFix (StateT s m) where
mfix f = StateT $ \s -> mfix (\ ~(x, _) -> runStateT (f x) s)
The text was updated successfully, but these errors were encountered:
As explained on http://stackoverflow.com/a/34287498/477476 ,
RevState
'sMonadFix
instance is too strict and is practically unusable as a result. The fix is a trivial matter of using an irrefutable pattern in the instance definition; i.e. going fromto
The text was updated successfully, but these errors were encountered: