This commit is contained in:
Rúnar 2021-03-15 22:56:09 -04:00
parent 5517a0539e
commit e1dfbc18a1
4 changed files with 31 additions and 0 deletions

5
CHANGELOG.md Normal file
View File

@ -0,0 +1,5 @@
# Revision history for fzf
## 0.1.0.0 -- YYYY-mm-dd
* First version. Released on an unsuspecting world.

2
Setup.hs Normal file
View File

@ -0,0 +1,2 @@
import Distribution.Simple
main = defaultMain

22
fuzzyfind.cabal Normal file
View File

@ -0,0 +1,22 @@
cabal-version: 2.2
name: fuzzyfind
version: 0.1.0.0
license: MIT
license-file: LICENSE
author: Rúnar Bjarnason
maintainer: Rúnar Bjarnason <runar.bjarnason@unison.cloud>
stability: experimental
homepage: http://github.com/runarorama/fuzzyfind/
bug-reports: http://github.com/runarorama/fuzzyfind/issues
copyright: Copyright (C) 2021 Unison Computing
build-type: Simple
tested-with: GHC == 8.8.4
synopsis: Fuzzy text matching
description: A package that provides an API for fuzzy text search in Haskell, using a modified version of the Smith-Waterman algorithm. The search is intended to behave similarly to the excellent fzf tool by Junegunn Choi.
library
exposed-modules: Text.FuzzyFind
other-extensions: DeriveGeneric, OverloadedLists, ScopedTypeVariables, ViewPatterns
build-depends: base ^>=4.13.0.0, array ^>=0.5.4.0, containers ^>=0.6.2.1
hs-source-dirs: src
default-language: Haskell2010

View File

@ -3,6 +3,8 @@
{-# LANGUAGE ScopedTypeVariables #-}
{-# LANGUAGE ViewPatterns #-}
module Text.FuzzyFind where
import Control.Monad (join)
import Data.Array
( Array,