mirror of
https://github.com/github/semantic.git
synced 2025-01-03 13:02:37 +03:00
algorithmWithTerms does not constrain the annotation type.
This commit is contained in:
parent
27786f3326
commit
0598e0727e
@ -35,7 +35,7 @@ diffComparableTerms construct comparable cost a b
|
||||
| comparable a b = run construct comparable cost (algorithmWithTerms construct a b)
|
||||
| otherwise = Nothing
|
||||
|
||||
algorithmWithTerms :: Eq leaf => DiffConstructor leaf (Record fields) -> Term leaf (Record fields) -> Term leaf (Record fields) -> Algorithm (Term leaf (Record fields)) (Diff leaf (Record fields)) (Diff leaf (Record fields))
|
||||
algorithmWithTerms :: Eq leaf => DiffConstructor leaf a -> Term leaf a -> Term leaf a -> Algorithm (Term leaf a) (Diff leaf a) (Diff leaf a)
|
||||
algorithmWithTerms construct t1 t2 = case (unwrap t1, unwrap t2) of
|
||||
(Indexed a, Indexed b) -> do
|
||||
diffs <- byIndex a b
|
||||
|
Loading…
Reference in New Issue
Block a user