-
Notifications
You must be signed in to change notification settings - Fork 7
/
edit-distance.cabal
73 lines (60 loc) · 2.8 KB
/
edit-distance.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
Name: edit-distance
Version: 0.2.1.2
Cabal-Version: >= 1.2
Category: Algorithms
Synopsis: Levenshtein and restricted Damerau-Levenshtein edit distances
Description: Optimized edit distances for fuzzy matching, including Levenshtein and restricted Damerau-Levenshtein algorithms.
License: BSD3
License-File: LICENSE
Extra-Source-Files: README.textile
Author: Max Bolingbroke
Maintainer: [email protected]
Homepage: http://github.com/batterseapower/edit-distance
Build-Type: Simple
Flag Tests
Description: Enable building the tests
Default: False
Flag Benchmark
Description: Enable building the benchmark suite
Default: False
Flag SplitBase
Description: Choose the new smaller, split-up base package
Default: True
Library
Exposed-Modules: Text.EditDistance
Other-Modules: Text.EditDistance.EditCosts
Text.EditDistance.SquareSTUArray
Text.EditDistance.STUArray
Text.EditDistance.Bits
Text.EditDistance.MonadUtilities
Text.EditDistance.ArrayUtilities
if flag(splitBase)
Build-Depends: base >= 3 && < 5, array >= 0.1, random >= 1.0, containers >= 0.1.0.1
else
Build-Depends: base < 3
Ghc-Options: -O2
Executable edit-distance-tests
Main-Is: Text/EditDistance/Tests.hs
Extensions: PatternGuards, PatternSignatures,
ScopedTypeVariables
Ghc-Options: -O2
if !flag(tests)
Buildable: False
else
Build-Depends: test-framework >= 0.1.1, QuickCheck >= 1.1 && < 2.0, test-framework-quickcheck
if flag(splitBase)
Build-Depends: base >= 3 && < 5, array >= 0.1, random >= 1.0
else
Build-Depends: base < 3
Executable edit-distance-benchmark
Main-Is: Text/EditDistance/Benchmark.hs
if !flag(benchmark)
Buildable: False
else
if flag(splitBase)
Build-Depends: base >= 3 && < 5, array >= 0.1, random >= 1.0, time >= 1.0, process >= 1.0,
deepseq >= 1.2, unix >= 2.3, criterion >= 0.6
else
Build-Depends: base < 3,
deepseq >= 1.2, unix >= 2.3
Ghc-Options: -O2