diff --git a/CHANGELOG.md b/CHANGELOG.md new file mode 100644 index 0000000..2330cc5 --- /dev/null +++ b/CHANGELOG.md @@ -0,0 +1,5 @@ +# Revision history for fzf + +## 0.1.0.0 -- YYYY-mm-dd + +* First version. Released on an unsuspecting world. diff --git a/Setup.hs b/Setup.hs new file mode 100644 index 0000000..9a994af --- /dev/null +++ b/Setup.hs @@ -0,0 +1,2 @@ +import Distribution.Simple +main = defaultMain diff --git a/fuzzyfind.cabal b/fuzzyfind.cabal new file mode 100644 index 0000000..3bb2e7a --- /dev/null +++ b/fuzzyfind.cabal @@ -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 +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 diff --git a/Fzf.hs b/src/Text/FuzzyFind.hs similarity index 99% rename from Fzf.hs rename to src/Text/FuzzyFind.hs index 5e35ba6..9e87ecd 100644 --- a/Fzf.hs +++ b/src/Text/FuzzyFind.hs @@ -3,6 +3,8 @@ {-# LANGUAGE ScopedTypeVariables #-} {-# LANGUAGE ViewPatterns #-} +module Text.FuzzyFind where + import Control.Monad (join) import Data.Array ( Array,