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
Memorizing an action to compute a field of the HKD type t is done only when it's queried using hitchF. Because gather calls actions directly, evaluating gather can perform the action for a field up to 2 times (the field itself and as a dependency via hitchF.)
Unless it's going to be removed, I think one way to get rid of the duplications in gather is requiring a record of lenses to the field itself, like this:
Memorizing an action to compute a field of the HKD type
t
is done only when it's queried usinghitchF
. Becausegather
calls actions directly, evaluatinggather
can perform the action for a field up to 2 times (the field itself and as a dependency viahitchF
.)Unless it's going to be removed, I think one way to get rid of the duplications in
gather
is requiring a record of lenses to the field itself, like this:HasSelfLenses
is very ad hoc of course. I'm not very confident, but they seem to be related to Representable.The text was updated successfully, but these errors were encountered: