string-similarity-0.1.0.0: longest common substring

Safe HaskellSafe-Inferred

Data.List.CommonSubstring

Synopsis

Documentation

longestSubstring :: (Eq a, Ord a) => [a] -> [a] -> [a]Source

This is the suffixtree based implementation. | If there are multiple longest substrings, which one is returned | is undefined.