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
Copy file name to clipboardExpand all lines: src/Reflex/Patch/DMapWithMove.hs
+5-5Lines changed: 5 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -73,13 +73,13 @@ instance {-# INCOHERENT #-} (GEq k, EqTag k v) => EqTag k (From k v) where
73
73
--|Structure describing a particular change to a key, be it inserting a new key (@From_Insert@), updating an existing key (@From_Insert@ again), deleting a
74
74
-- key (@From_Delete@), or moving a key (@From_Move@).
75
75
dataFrom (k::a->*) (v::a->*) ::a->*where
76
+
--|Insert a new or update an existing key with the given value @v a@
76
77
From_Insert::va->Fromkva
77
-
--^Insert a new or update an existing key with the given value @v a@
78
+
--|Delete the existing key
78
79
From_Delete::Fromkva
79
-
--^Delete the existing key
80
-
From_Move::!(ka) ->Fromkva
81
-
--^Move the value from the given key @k a@ to this key. The source key should also have an entry in the patch giving the current key as @_nodeInfo_to@,
80
+
--|Move the value from the given key @k a@ to this key. The source key should also have an entry in the patch giving the current key as @_nodeInfo_to@,
82
81
-- usually but not necessarily with @From_Delete@.
82
+
From_Move::!(ka) ->Fromkva
83
83
deriving (Show, Read, Eq, Ord)
84
84
85
85
--|Type alias for the "to" part of a 'NodeInfo'. @'ComposeMaybe' ('Just' k)@ means the key is moving to another key, @ComposeMaybe Nothing@ for any other
0 commit comments