| CARVIEW |
Select Language
HTTP/1.1 200 OK
Connection: keep-alive
Server: nginx/1.24.0 (Ubuntu)
Content-Type: text/html; charset=utf-8
Cache-Control: public, max-age=300
Content-Encoding: gzip
Via: 1.1 varnish, 1.1 varnish
Accept-Ranges: bytes
Age: 0
Date: Fri, 16 Jan 2026 13:32:18 GMT
X-Served-By: cache-dfw-kdfw8210144-DFW, cache-bom-vanm7210095-BOM
X-Cache: MISS, MISS
X-Cache-Hits: 0, 0
X-Timer: S1768570338.694871,VS0,VE323
Vary: Accept, Accept-Encoding
transfer-encoding: chunked
fuzzyset: Fuzzy set data structure for approximate string matching
[Skip to Readme]
fuzzyset: Fuzzy set data structure for approximate string matching
Please see the README on GitHub at https://github.com/laserpants/fuzzyset-haskell#readme
[Skip to Readme]
Modules
[Index] [Quick Jump]
Downloads
- fuzzyset-0.3.2.tar.gz [browse] (Cabal source package)
- Package description (as included in the package)
Maintainer's Corner
For package maintainers and hackage trustees
Candidates
- No Candidates
| Versions [RSS] | 0.1.0.0, 0.1.0.1, 0.1.0.2, 0.1.0.3, 0.1.0.4, 0.1.0.5, 0.1.0.6, 0.1.0.7, 0.1.0.8, 0.1.1, 0.2.0, 0.2.1, 0.2.2, 0.2.3, 0.2.4, 0.3.0, 0.3.1, 0.3.2 |
|---|---|
| Dependencies | base (>=4.7 && <5), mtl (>=2.2.2 && <2.5), text (>=2.0.2 && <2.2), text-metrics (>=0.3.2 && <0.5), transformers (>=0.5.6.2 && <0.8), unordered-containers (>=0.2.19.1 && <0.4), vector (>=0.13.0.0 && <0.15) [details] |
| License | BSD-3-Clause |
| Copyright | 2017-present laserpants |
| Author | Heikki Johannes Hildén |
| Maintainer | hildenjohannes@gmail.com |
| Uploaded | by arbelos at 2024-03-08T03:13:27Z |
| Category | Data |
| Home page | https://github.com/laserpants/fuzzyset-haskell#readme |
| Bug tracker | https://github.com/laserpants/fuzzyset-haskell/issues |
| Source repo | head: git clone https://github.com/laserpants/fuzzyset-haskell |
| Distributions | LTSHaskell:0.3.2, NixOS:0.3.2, Stackage:0.3.2 |
| Reverse Dependencies | 1 direct, 0 indirect [details] |
| Downloads | 8613 total (52 in the last 30 days) |
| Rating | (no votes yet) [estimated by Bayesian average] |
| Your Rating |
|
| Status | Docs available [build log] Last success reported on 2024-03-08 [all 1 reports] |
Readme for fuzzyset-0.3.2
[back to package description]fuzzyset-haskell
A fuzzy string set data structure for approximate string matching.
In a nutshell:
- Add data to the set (see
add,add_,addMany, andaddMany_) - Query the set (see
find,findMin,findOne,findOneMin,closestMatchMin, andclosestMatch)
Refer to the Haddock docs for details.
Example
{-# LANGUAGE OverloadedStrings #-}
module Main where ```
import Control.Monad.Trans.Class (lift)
import Data.Text (Text)
import Data.FuzzySet (FuzzySearchT, add_, closestMatch, runDefaultFuzzySearchT)
findMovie :: Text -> FuzzySearchT IO (Maybe Text)
findMovie = closestMatch
prog :: FuzzySearchT IO ()
prog = do
add_ "Jurassic Park"
add_ "Terminator"
add_ "The Matrix"
result <- findMovie "The Percolator"
lift (print result)
main :: IO ()
main = runDefaultFuzzySearchT prog