diff --git a/src/SES/Myers.hs b/src/SES/Myers.hs index cee5bfbe7..b5a300c77 100644 --- a/src/SES/Myers.hs +++ b/src/SES/Myers.hs @@ -117,11 +117,13 @@ decompose myers = let ?callStack = popCallStack callStack in case myers of slide eq (Endpoint x y) | x < length as , y < length bs - , (as Vector.! x) `eq` (bs Vector.! y) = slide eq (Endpoint (succ x) (succ y)) + , (as ! x) `eq` (bs ! y) = slide eq (Endpoint (succ x) (succ y)) | otherwise = Endpoint x y FindDPath (EditGraph as bs) Reverse (EditDistance d) (Diagonal k) -> return (Endpoint 0 0) + where (!) = (Vector.!) + -- Smart constructors