1
1
mirror of https://github.com/github/semantic.git synced 2025-01-02 12:23:08 +03:00

📝 algorithmFor.

This commit is contained in:
Rob Rix 2017-09-26 13:03:44 -04:00
parent b1560c1da5
commit 1e7f9b8862

View File

@ -109,6 +109,7 @@ algorithmForTerms t1@(Term (In ann1 f1)) t2@(Term (In ann2 f2))
-- | A type class for determining what algorithm to use for diffing two terms.
class Diffable f where
-- | Construct an algorithm to diff a pair of @f@s populated with disjoint terms.
algorithmFor :: f term1
-> f term2
-> Algorithm term1 term2 result (f result)