From 72b361fc568c056aacf388195c44b16007a07bf2 Mon Sep 17 00:00:00 2001 From: Fabian Thorand Date: Mon, 12 Oct 2020 16:40:24 +0200 Subject: [PATCH 1/5] Add changelog --- CHANGELOG.md | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 CHANGELOG.md diff --git a/CHANGELOG.md b/CHANGELOG.md new file mode 100644 index 0000000..060fcb0 --- /dev/null +++ b/CHANGELOG.md @@ -0,0 +1,27 @@ +# Changelog + +## v1.1.0.0 - "Moore Features" (2020-10-13) + +The most notable addition in this release is the implementation of the Boyer-Moore string search algorithm. + +**Compatibility:** + +- Extracted the UTF-16 manipulation functions from `Data.Text.AhoCorasick.Automaton` into `Data.Text.Utf16` +- Changed `Data.Text.AhoCorasick.Searcher.Searcher` to remember the case sensitivity used for constructing the searcher +- Removed `Data.Text.AhoCorasick.Searcher.containsAnyIgnoreCase`, the correct implementation is now chosen by `containsAny` based on the case sensitivity of the searcher + +Other changes: + +- Added `Data.Text.AhoCorasick.Splitter` for splitting a lot of text using the same needle +- Added `Data.Text.BoyerMoore.Automaton`, a UTF-16 implementation of Boyer-Moore +- Added `Data.Text.BoyerMoore.Searcher` for searching for multiple needles at once using Boyer-Moore +- Added `Data.Text.BoyerMoore.Replacer` for replacing text based on the Boyer-Moore search +- Added optional `FromJSON`/`ToJSON` instances for most types (can be toggled via `aeson` cabal flag) + +## v1.0.0.0 - "Initial Release" (2019-03-19) + +This is the initial open-source release. + +- Added `Data.Text.AhoCorasick.Automaton`, a UTF-16 implementation of the Aho-Corasick search algorithm +- Added `Data.Text.AhoCorasick.Searcher`, a bulk search abstraction based on Aho-Corasick +- Added `Data.Text.AhoCorasick.Replacer`, a bulk replace abstraction based on Aho-Corasick From 8d72a826b5831122fb047ee441010310a130b6d1 Mon Sep 17 00:00:00 2001 From: Fabian Thorand Date: Mon, 12 Oct 2020 16:40:36 +0200 Subject: [PATCH 2/5] Bump version to 1.1.0.0 --- alfred-margaret.cabal | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/alfred-margaret.cabal b/alfred-margaret.cabal index c2588bf..f536cd9 100644 --- a/alfred-margaret.cabal +++ b/alfred-margaret.cabal @@ -1,5 +1,5 @@ name: alfred-margaret -version: 1.0.0.0 +version: 1.1.0.0 synopsis: Fast Aho-Corasick string searching description: An efficient implementation of the Aho-Corasick string searching algorithm. From c151144a428dc10b00a59c8002d2f5cde0ce73ef Mon Sep 17 00:00:00 2001 From: Fabian Thorand Date: Mon, 12 Oct 2020 16:49:12 +0200 Subject: [PATCH 3/5] Bump stackage snapshot --- alfred-margaret.cabal | 2 ++ stack.yaml | 2 +- stack.yaml.lock | 8 ++++---- 3 files changed, 7 insertions(+), 5 deletions(-) diff --git a/alfred-margaret.cabal b/alfred-margaret.cabal index f536cd9..76f1654 100644 --- a/alfred-margaret.cabal +++ b/alfred-margaret.cabal @@ -22,6 +22,8 @@ tested-with: , GHC == 8.4.4 -- Stackage LTS 13.10. , GHC == 8.6.3 + -- Stackage LTS 16.18. + , GHC == 8.8.4 source-repository head type: git diff --git a/stack.yaml b/stack.yaml index aa90a48..f308e6c 100644 --- a/stack.yaml +++ b/stack.yaml @@ -1,3 +1,3 @@ -resolver: lts-13.10 +resolver: lts-16.18 packages: - . diff --git a/stack.yaml.lock b/stack.yaml.lock index 8302c6e..d2125bf 100644 --- a/stack.yaml.lock +++ b/stack.yaml.lock @@ -6,7 +6,7 @@ packages: [] snapshots: - completed: - size: 496698 - url: https://raw.githubusercontent.com/commercialhaskell/stackage-snapshots/master/lts/13/10.yaml - sha256: cccd8a6de18d13cd00f751b25684b3ca1e548648ea41874de78904fec1b9cb36 - original: lts-13.10 + size: 532172 + url: https://raw.githubusercontent.com/commercialhaskell/stackage-snapshots/master/lts/16/18.yaml + sha256: 4f2a092c6f4869854e8d7435ab98ce5157c641022c3cbfc4c4614ff3db752e62 + original: lts-16.18 From 3988846cc46cd7d05aea7a013fabb760b100832d Mon Sep 17 00:00:00 2001 From: Fabian Thorand Date: Mon, 12 Oct 2020 16:50:52 +0200 Subject: [PATCH 4/5] Only add aeson dependency when flag is on --- alfred-margaret.cabal | 1 - 1 file changed, 1 deletion(-) diff --git a/alfred-margaret.cabal b/alfred-margaret.cabal index 76f1654..4040624 100644 --- a/alfred-margaret.cabal +++ b/alfred-margaret.cabal @@ -45,7 +45,6 @@ library , Data.Text.BoyerMoore.Searcher , Data.Text.Utf16 build-depends: base >= 4.7 && < 5 - , aeson , containers , deepseq , hashable From ea2eab41f7ed4d37d2ecc72f832301642a3da309 Mon Sep 17 00:00:00 2001 From: Fabian Thorand Date: Mon, 12 Oct 2020 17:28:10 +0200 Subject: [PATCH 5/5] Remove untested GHC versions --- alfred-margaret.cabal | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/alfred-margaret.cabal b/alfred-margaret.cabal index 4040624..4abac65 100644 --- a/alfred-margaret.cabal +++ b/alfred-margaret.cabal @@ -14,14 +14,8 @@ build-type: Simple extra-source-files: README.md cabal-version: >=1.10 tested-with: - -- Stackage LTS 11.22. - GHC == 8.2.2 - -- Stackage LTS 12.14. - , GHC == 8.4.3 - -- Stackage LTS 12.26. - , GHC == 8.4.4 -- Stackage LTS 13.10. - , GHC == 8.6.3 + GHC == 8.6.3 -- Stackage LTS 16.18. , GHC == 8.8.4