-
Notifications
You must be signed in to change notification settings - Fork 11
/
alfred-margaret.cabal
133 lines (125 loc) · 4.8 KB
/
alfred-margaret.cabal
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
name: alfred-margaret
version: 2.1.0.2
synopsis: Fast Aho-Corasick string searching
description: An efficient implementation of the Aho-Corasick
string searching algorithm.
homepage: https://github.com/channable/alfred-margaret
license: BSD3
license-file: LICENSE
author: The Alfred-Margaret authors
maintainer: Ruud van Asseldonk <[email protected]>, Fabian Thorand <[email protected]>
copyright: 2020 Channable
category: Data, Text
build-type: Simple
extra-source-files: README.md
, performance.png
cabal-version: >=1.10
tested-with:
-- Nixpkgs unstable (Updated 2022-04-14)
GHC == 8.8.4
-- Nixpkgs unstable (Updated 2022-04-14)
, GHC == 8.10.7
-- Nixpkgs unstable (Updated 2022-04-14)
, GHC == 9.0.2
-- Nixpkgs unstable (Updated 2024-09-05)
, GHC == 9.6.6
source-repository head
type: git
location: https://github.com/channable/alfred-margaret
Flag aeson
Description: Enable aeson support
Manual: False
Default: True
-- Compile this package with LLVM, rather than with the default code generator.
-- LLVM produces about 20% faster code.
Flag llvm
Description: Compile with LLVM
Manual: True
-- Defaulting to false makes the package buildable by Hackage,
-- allowing the documentation to be generated for us.
Default: False
library
hs-source-dirs: src
exposed-modules: Data.Text.CaseSensitivity
, Data.Text.Utf8
, Data.Text.Utf8.Unlower
, Data.Text.AhoCorasick.Automaton
, Data.Text.AhoCorasick.Replacer
, Data.Text.AhoCorasick.Searcher
, Data.Text.AhoCorasick.Splitter
, Data.Text.BoyerMoore.Automaton
, Data.Text.BoyerMoore.Replacer
, Data.Text.BoyerMoore.Searcher
, Data.Text.BoyerMooreCI.Automaton
, Data.Text.BoyerMooreCI.Replacer
, Data.Text.BoyerMooreCI.Searcher
, Data.TypedByteArray
build-depends:
base >= 4.7 && < 5
, containers >= 0.6 && < 0.8
, deepseq >= 1.4 && < 1.6
, hashable >= 1.4.0.2 && < 1.6
, primitive >= 0.6.4 && < 0.10
, text >= 2.0 && < 2.2
, unordered-containers >= 0.2.9 && < 0.3
, vector >= 0.12 && < 0.14
ghc-options: -Wall -Wincomplete-record-updates -Wincomplete-uni-patterns -O2
default-language: Haskell2010
if flag(aeson) {
-- Even an older version of aeson is fine since
-- we only use it for instances
build-depends: aeson >= 1.4.2 && < 3
cpp-options: -DHAS_AESON
}
if flag(llvm) {
ghc-options: -fllvm -optlo=-O3 -optlo=-tailcallelim
}
test-suite test-suite
type: exitcode-stdio-1.0
main-is: Main.hs
other-modules: Data.Text.AhoCorasickSpec
, Data.Text.BoyerMooreSpec
, Data.Text.BoyerMooreCISpec
, Data.Text.Utf8Spec
, Data.Text.TestInstances
hs-source-dirs: tests
ghc-options: -Wall -Wincomplete-record-updates -Wno-orphans
build-depends: base >= 4.7 && < 5
, QuickCheck
, alfred-margaret
, deepseq
, hspec
, hspec-expectations
, primitive
, quickcheck-instances
, text
default-language: Haskell2010
benchmark uvector-vs-tba
type: exitcode-stdio-1.0
main-is: Main.hs
hs-source-dirs: bench/uvector-vs-tba
ghc-options: -Wall -Wincomplete-record-updates -Wno-orphans
build-depends: base >= 4.7 && < 5
, alfred-margaret
, vector
, deepseq
, criterion
default-language: Haskell2010
benchmark bm
type: exitcode-stdio-1.0
main-is: Main.hs
hs-source-dirs: bench/bm
ghc-options: -Wall -Wincomplete-record-updates -Wno-orphans
build-depends: base >= 4.7 && < 5
, alfred-margaret
, deepseq
, criterion
, text
default-language: Haskell2010
executable dump-automaton
main-is: Main.hs
hs-source-dirs:
app/dump-automaton
build-depends: base
, alfred-margaret
default-language: Haskell2010