Skip to content

Commit 218506f

Browse files
committed
Fix mapEither usage
1 parent b146245 commit 218506f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Data/Map/Misc.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ diffMap olds news = flip Map.mapMaybe (align olds news) $ \case
4646
-- See also 'Reflex.Patch.Map' and 'Reflex.Patch.MapWithMove'.
4747
applyMap :: Ord k => Map k (Maybe v) -> Map k v -> Map k v
4848
applyMap patch old = insertions `Map.union` (old `Map.difference` deletions)
49-
where (deletions, insertions) = Map.mapEither id $ maybeToEither <$> patch
49+
where (deletions, insertions) = Map.mapEither maybeToEither patch
5050
maybeToEither = \case
5151
Nothing -> Left ()
5252
Just r -> Right r

0 commit comments

Comments
 (0)