File tree Expand file tree Collapse file tree 2 files changed +2
-1
lines changed Expand file tree Collapse file tree 2 files changed +2
-1
lines changed Original file line number Diff line number Diff line change 5
5
* Data.WeakBag.traverse and Data.FastWeakBag.traverse have been
6
6
renamed to Data.WeakBag.traverse_ and Data.FastWeakBag.traverse_
7
7
respectively.
8
+ * Fixes a bug in ` Reflex.Patch.MapWithMove.patchThatSortsMapWith ` that was producing invalid ` PatchMapWithMove ` .
8
9
9
10
## 0.6.2.4
10
11
Original file line number Diff line number Diff line change @@ -155,7 +155,7 @@ patchThatSortsMapWith cmp m = PatchMapWithMove $ Map.fromList $ catMaybes $ zipW
155
155
Just (from, to)
156
156
reverseMapping = Map. fromList $ catMaybes $ zipWith f unsorted sorted
157
157
g (to, _) (from, _) = if to == from then Nothing else
158
- let Just movingTo = Map. lookup from reverseMapping
158
+ let Just movingTo = Map. lookup to reverseMapping
159
159
in Just (to, NodeInfo (From_Move from) $ Just movingTo)
160
160
161
161
-- | Create a 'PatchMapWithMove' that, if applied to the first 'Map' provided,
You can’t perform that action at this time.
0 commit comments