mirror of
https://github.com/github/semantic.git
synced 2024-12-22 14:21:31 +03:00
Add a smart constructor for LCS.
This commit is contained in:
parent
3885f2df11
commit
d64ecd672d
@ -100,6 +100,9 @@ decompose myers = case myers of
|
||||
|
||||
-- Smart constructors
|
||||
|
||||
lcs :: EditGraph a -> Myers [a]
|
||||
lcs graph = M (LCS graph) `Then` return
|
||||
|
||||
findDPath :: EditGraph a -> Direction -> EditDistance -> Diagonal -> Myers Endpoint
|
||||
findDPath graph direction d k = M (FindDPath graph direction d k) `Then` return
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user