mirror of
https://github.com/github/semantic.git
synced 2024-12-01 09:15:01 +03:00
LambdaCase.
This commit is contained in:
parent
38cff494e7
commit
0764de8320
@ -47,7 +47,7 @@ instance Bitraversable Edit where
|
||||
Compare a b -> Compare <$> f a <*> g b
|
||||
|
||||
instance Eq2 Edit where
|
||||
liftEq2 eqBefore eqAfter p1 p2 = case (p1, p2) of
|
||||
liftEq2 eqBefore eqAfter = curry $ \case
|
||||
(Delete a1, Delete a2) -> eqBefore a1 a2
|
||||
(Insert b1, Insert b2) -> eqAfter b1 b2
|
||||
(Compare a1 b1, Compare a2 b2) -> eqBefore a1 a2 && eqAfter b1 b2
|
||||
|
Loading…
Reference in New Issue
Block a user