-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathPrimitiveArray.cabal
219 lines (193 loc) · 6.63 KB
/
PrimitiveArray.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
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
Cabal-version: 2.2
Name: PrimitiveArray
Version: 0.10.2.0
License: BSD-3-Clause
License-file: LICENSE
Maintainer: [email protected]
author: Christian Hoener zu Siederdissen, 2011-2021
copyright: Christian Hoener zu Siederdissen, 2011-2021
homepage: https://github.com/choener/PrimitiveArray
bug-reports: https://github.com/choener/PrimitiveArray/issues
Stability: Experimental
Category: Data
Build-type: Simple
tested-with: GHC == 8.8, GHC == 8.10, GHC == 9.0, GHC == 9.2
Synopsis: Efficient multidimensional arrays
Description:
<http://www.bioinf.uni-leipzig.de/Software/gADP/ generalized Algebraic Dynamic Programming>
.
This library provides efficient multidimensional arrays. Import
@Data.PrimitiveArray@ for indices, lenses, and arrays.
.
For
<http://www.bioinf.uni-leipzig.de/Software/gADP/ generalized ADP>
users, the library also provides the machinary to
fill tables in the correct order required by usual CYK-style
parsers, or regular grammars (used e.g. in alignment
algorithms). This means that unless your grammar requires a
strange order in which parsing is to be performed, it will
mostly "just work".
.
In general operations do not perform bounds-checking or other
sanity-checking and are aimed towards efficiency as much as
possible. Users (like @ADPfusion@) should perform their own
bounds-checking, outside of code that performs "loop-like"
operations.
extra-source-files:
README.md
changelog.md
flag debug
description: Enable bounds checking and various other debug operations at the cost of a significant performance penalty.
default: False
manual: True
flag debugoutput
description: Enable debug output, which spams the screen full of index information
default: False
manual: True
flag llvm
description: use llvm
default: False
manual: True
flag debugdump
description: Enable dumping intermediate / core files
default: False
manual: True
flag dump-core
description: Dump HTML for the core generated by GHC during compilation
default: False
manual: True
common deps
build-depends: base >= 4.12 && < 5.0
, aeson >= 0.8
, binary >= 0.7
, bits >= 0.4
, cereal >= 0.4
, cereal-vector >= 0.2
, containers
, deepseq >= 1.3
, hashable >= 1.2
, hashtables >= 1.2
, lens >= 4.0
, log-domain >= 0.10
, mtl >= 2.0
, primitive >= 0.5.4
, QuickCheck >= 2.7
, smallcheck >= 1.1
, text >= 1.0
, unordered-containers >= 0.2
, vector >= 0.11
, vector-algorithms >= 0.8
, vector-binary-instances >= 0.2
, vector-th-unbox >= 0.2
--
, DPutils == 0.1.1.*
, OrderedBits == 0.0.2.*
default-extensions: BangPatterns
, CPP
, DataKinds
, DefaultSignatures
, DeriveDataTypeable
, DeriveFunctor
, DeriveGeneric
, DerivingStrategies
, FlexibleContexts
, FlexibleInstances
, FunctionalDependencies
, GADTs
, GeneralizedNewtypeDeriving
, MultiParamTypeClasses
, MultiWayIf
, PatternSynonyms
, PolyKinds
, RankNTypes
, RecordWildCards
, ScopedTypeVariables
, StandaloneDeriving
, TemplateHaskell
, TypeApplications
, TypeFamilies
, TypeOperators
, UndecidableInstances
, UnicodeSyntax
default-language:
Haskell2010
ghc-options:
-O2
-funbox-strict-fields
if flag(debug)
cpp-options: -DADPFUSION_CHECKS
ghc-options: -fno-ignore-asserts --disable-optimizations
if flag(debugoutput)
cpp-options: -DADPFUSION_DEBUGOUTPUT
Library
import:
deps
Exposed-modules:
Data.PrimitiveArray
Data.PrimitiveArray.Checked
Data.PrimitiveArray.Class
Data.PrimitiveArray.Dense
Data.PrimitiveArray.Sparse
Data.PrimitiveArray.Sparse.BinSearch
Data.PrimitiveArray.Sparse.IntBinSearch
Data.PrimitiveArray.HashTable
Data.PrimitiveArray.Index
Data.PrimitiveArray.Index.BitSet0
Data.PrimitiveArray.Index.BitSet1
Data.PrimitiveArray.Index.BitSetClasses
Data.PrimitiveArray.Index.Class
Data.PrimitiveArray.Index.Int
Data.PrimitiveArray.Index.IOC
Data.PrimitiveArray.Index.PhantomInt
Data.PrimitiveArray.Index.Point
Data.PrimitiveArray.Index.Subword
Data.PrimitiveArray.Index.Unit
test-suite properties
import:
deps
build-depends: base
, tasty >= 0.11
, tasty-quickcheck >= 0.8
, tasty-smallcheck >= 0.8
, tasty-th >= 0.1
--
, PrimitiveArray
type:
exitcode-stdio-1.0
main-is:
properties.hs
other-modules:
QuickCheck
SmallCheck
Common
ghc-options:
-threaded -rtsopts -with-rtsopts=-N
hs-source-dirs:
tests
build-depends: PrimitiveArray
benchmark Lookup
import:
deps
type:
exitcode-stdio-1.0
main-is:
Lookup.hs
hs-source-dirs:
bench
build-depends: PrimitiveArray
, criterion ^>= 1.5
if flag(llvm)
ghc-options:
-fllvm
-optlo-O3
if flag(debugdump)
ghc-options:
-ddump-to-file
-ddump-simpl
-dsuppress-all
if flag(dump-core)
build-depends: dump-core
ghc-options: -fplugin=DumpCore -fplugin-opt DumpCore:core-html
source-repository head
type: git
location: git://github.com/choener/PrimitiveArray