Skip to content

Commit

Permalink
Merge branch 'release-1.1'
Browse files Browse the repository at this point in the history
  • Loading branch information
fatho committed Oct 13, 2020
2 parents 5d3fe3e + ea2eab4 commit c5d2b44
Show file tree
Hide file tree
Showing 4 changed files with 36 additions and 14 deletions.
27 changes: 27 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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
13 changes: 4 additions & 9 deletions alfred-margaret.cabal
Original file line number Diff line number Diff line change
@@ -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.
Expand All @@ -14,14 +14,10 @@ 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

source-repository head
type: git
Expand All @@ -43,7 +39,6 @@ library
, Data.Text.BoyerMoore.Searcher
, Data.Text.Utf16
build-depends: base >= 4.7 && < 5
, aeson
, containers
, deepseq
, hashable
Expand Down
2 changes: 1 addition & 1 deletion stack.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
resolver: lts-13.10
resolver: lts-16.18
packages:
- .
8 changes: 4 additions & 4 deletions stack.yaml.lock
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit c5d2b44

Please sign in to comment.