We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b146245 commit 218506fCopy full SHA for 218506f
src/Data/Map/Misc.hs
@@ -46,7 +46,7 @@ diffMap olds news = flip Map.mapMaybe (align olds news) $ \case
46
-- See also 'Reflex.Patch.Map' and 'Reflex.Patch.MapWithMove'.
47
applyMap :: Ord k => Map k (Maybe v) -> Map k v -> Map k v
48
applyMap patch old = insertions `Map.union` (old `Map.difference` deletions)
49
- where (deletions, insertions) = Map.mapEither id $ maybeToEither <$> patch
+ where (deletions, insertions) = Map.mapEither maybeToEither patch
50
maybeToEither = \case
51
Nothing -> Left ()
52
Just r -> Right r
0 commit comments