1
1
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:
Rob Rix 2017-03-10 11:45:32 -05:00
parent 3885f2df11
commit d64ecd672d

View File

@ -100,6 +100,9 @@ decompose myers = case myers of
-- Smart constructors -- Smart constructors
lcs :: EditGraph a -> Myers [a]
lcs graph = M (LCS graph) `Then` return
findDPath :: EditGraph a -> Direction -> EditDistance -> Diagonal -> Myers Endpoint findDPath :: EditGraph a -> Direction -> EditDistance -> Diagonal -> Myers Endpoint
findDPath graph direction d k = M (FindDPath graph direction d k) `Then` return findDPath graph direction d k = M (FindDPath graph direction d k) `Then` return