libcspm-1.0.0: A library providing a parser, type checker and evaluator for CSPM.

Safe HaskellSafe-Inferred

Util.FuzzyLookup

Description

Provides fuzzy string matching.

Taken from GHC (which is BSD licensed and thus compatible). Copyright reproduced below:

(c) The University of Glasgow 2006

Synopsis

Documentation

fuzzyLookup :: String -> [(String, a)] -> [a]Source

Search for possible matches to the users input in the given list, returning a small number of ranked results