Skip to content

Commit dcb4c29

Browse files
authored
Merge branch 'develop' into quickref-runwithreplace
2 parents 76357d1 + f34c906 commit dcb4c29

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

ChangeLog.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
* Data.WeakBag.traverse and Data.FastWeakBag.traverse have been
66
renamed to Data.WeakBag.traverse_ and Data.FastWeakBag.traverse_
77
respectively.
8+
* Fixes a bug in `Reflex.Patch.MapWithMove.patchThatSortsMapWith` that was producing invalid `PatchMapWithMove`.
89

910
## 0.6.2.4
1011

src/Reflex/Patch/MapWithMove.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ patchThatSortsMapWith cmp m = PatchMapWithMove $ Map.fromList $ catMaybes $ zipW
155155
Just (from, to)
156156
reverseMapping = Map.fromList $ catMaybes $ zipWith f unsorted sorted
157157
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
159159
in Just (to, NodeInfo (From_Move from) $ Just movingTo)
160160

161161
-- | Create a 'PatchMapWithMove' that, if applied to the first 'Map' provided,

0 commit comments

Comments
 (0)