Skip to content

Commit acd5b6a

Browse files
committed
Merge branch 'no-fromJust' into patch-map-inner-patch-desugar
2 parents 4fb60c4 + 9f0f5f9 commit acd5b6a

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/Data/Patch/MapWithPatchingMove.hs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -268,7 +268,9 @@ patchThatChangesMap oldByIndex newByIndex = patch
268268
putRemainingKeys $ Set.delete k fromKs
269269
return $ NodeInfo (From_Move k mempty) $ Just undefined -- There's an existing value, and it's here, so no patch necessary
270270
else do
271-
(fromK, remainingKeys) <- return . fromMaybe (error "patchThatChangesMap: impossible: fromKs was empty") $ Set.minView fromKs -- There's an existing value, but it's not here; move it here
271+
(fromK, remainingKeys) <- return $
272+
fromMaybe (error "PatchMapWithPatchingMove.patchThatChangesMap: impossible: fromKs was empty") $
273+
Set.minView fromKs -- There's an existing value, but it's not here; move it here
272274
putRemainingKeys remainingKeys
273275
return $ NodeInfo (From_Move fromK mempty) $ Just undefined
274276
Map.traverseWithKey f newByIndex

0 commit comments

Comments
 (0)