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
ioverA :: Arrow ar => IndexedLens i s t a b -> ar (i,a) b -> ar s t
ioverA l p = arr (\x -> (x, iview x)) >>> second p >>> arr (\(x, b) -> storing l b x)
where
iview s = getConst $ l (Indexed $ \i -> Const #. (,) i) s
Given the arrowized version of
over
currently in theControl.Lens.Lens
moduleoverA :: Arrow ar => LensLike (Context a b) s t a b -> ar a b -> ar s t
Is there a technical reason for the absence of an indexed version with the obvious type signature ?
The text was updated successfully, but these errors were encountered: