mirror of
https://github.com/github/semantic.git
synced 2024-12-22 22:31:36 +03:00
Diff objects byIndex.
This commit is contained in:
parent
970ae647d2
commit
efeb01e970
@ -44,6 +44,7 @@ algorithmWithTerms construct t1 t2 = case (unwrap t1, unwrap t2) of
|
||||
(S.Switch exprA casesA, S.Switch exprB casesB) -> do
|
||||
expr <- recursively exprA exprB
|
||||
byIndex (S.Switch expr) casesA casesB
|
||||
(S.Object a, S.Object b) -> byIndex S.Object a b
|
||||
(Commented commentsA a, Commented commentsB b) -> do
|
||||
wrapped <- sequenceA (recursively <$> a <*> b)
|
||||
byIndex (`Commented` wrapped) commentsA commentsB
|
||||
|
Loading…
Reference in New Issue
Block a user