-
Notifications
You must be signed in to change notification settings - Fork 5
/
lsm-tree.cabal
539 lines (492 loc) · 14 KB
/
lsm-tree.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
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
cabal-version: 3.4
name: lsm-tree
version: 0.1.0.0
synopsis: Log-structured merge-tree
description: Log-structured merge-tree.
license: Apache-2.0
license-file: LICENSE
author: Duncan Coutts, Joris Dral, Matthias Heinzel
maintainer: Duncan Coutts, Joris Dral, Matthias Heinzel
copyright: 2023 Input Output Global Inc (IOG), INTERSECT 2023-2024
category: Database
build-type: Simple
extra-doc-files: CHANGELOG.md
extra-source-files: README.md
tested-with: GHC ==9.2 || ==9.4 || ==9.6 || ==9.8
source-repository head
type: git
location: https://github.com/IntersectMBO/lsm-tree
common warnings
ghc-options:
-Wall -Wcompat -Wincomplete-uni-patterns
-Wincomplete-record-updates -Wpartial-fields -Widentities
-Wredundant-constraints -Wmissing-export-lists
-Wno-unticked-promoted-constructors -Wunused-packages
common wno-x-partial
if impl(ghc >=9.8)
-- No errors for x-partial functions. We might remove this in the future if
-- we decide to refactor code that uses partial functions.
ghc-options: -Wno-x-partial
library
import: warnings, wno-x-partial
hs-source-dirs: src
default-language: Haskell2010
exposed-modules:
Data.Map.Range
Database.LSMTree.Common
Database.LSMTree.Internal.Assertions
Database.LSMTree.Internal.BitMath
Database.LSMTree.Internal.BlobRef
Database.LSMTree.Internal.BloomFilter
Database.LSMTree.Internal.ByteString
Database.LSMTree.Internal.CRC32C
Database.LSMTree.Internal.Entry
Database.LSMTree.Internal.IndexCompact
Database.LSMTree.Internal.IndexCompactAcc
Database.LSMTree.Internal.KMerge
Database.LSMTree.Internal.Lookup
Database.LSMTree.Internal.Monkey
Database.LSMTree.Internal.Monoidal
Database.LSMTree.Internal.Normal
Database.LSMTree.Internal.PageAcc
Database.LSMTree.Internal.PageAcc1
Database.LSMTree.Internal.Range
Database.LSMTree.Internal.RawBytes
Database.LSMTree.Internal.RawOverflowPage
Database.LSMTree.Internal.RawPage
Database.LSMTree.Internal.Run
Database.LSMTree.Internal.Run.FsPaths
Database.LSMTree.Internal.RunAcc
Database.LSMTree.Internal.RunBuilder
Database.LSMTree.Internal.Serialise
Database.LSMTree.Internal.Serialise.Class
Database.LSMTree.Internal.Unsliced
Database.LSMTree.Internal.Vector
Database.LSMTree.Internal.WriteBuffer
Database.LSMTree.Monoidal
Database.LSMTree.Normal
build-depends:
, base >=4.16 && <4.20
, bitvec ^>=1.1
, bytestring ^>=0.11.4.0 || ^>=0.12.1.0
, containers
, crc32c ^>=0.2.0
, deepseq
, filepath
, fs-api ^>=0.2
, io-classes ^>=1.3
, lsm-tree:bloomfilter
, lsm-tree:fs-api-blockio
, primitive ^>=0.9
, vector ^>=0.13
, vector-algorithms ^>=0.9
-- this exists due windows
library xxhash
default-language: Haskell2010
visibility: private
include-dirs: xxhash/xxHash-0.8.2/ xxhash/include/
includes:
HsXXHash.h
xxhash.h
exposed-modules: XXH3
if (arch(x86_64) && !os(osx))
-- Cabal doesn't pass cc-options to "ordinary" Haskell source compilation
-- https://github.com/haskell/cabal/issues/9801
ghc-options: -optc=-mavx2 -optc=-O3
other-modules: FFI
hs-source-dirs: xxhash/src
build-depends:
, base
, bytestring
, primitive ^>=0.9
test-suite xxhash-tests
default-language: Haskell2010
type: exitcode-stdio-1.0
hs-source-dirs: xxhash/tests
main-is: xxhash-tests.hs
build-depends:
, base
, bytestring
, lsm-tree:xxhash
, primitive
, tasty
, tasty-hunit
, tasty-quickcheck
-- this fork doesn't work on 32bit systems
library bloomfilter
visibility: private
hs-source-dirs: bloomfilter/src
default-language: Haskell2010
build-depends:
, base >=4.5 && <5
, bitvec ^>=1.1.5.0
, bytestring >=0.9
, data-array-byte
, deepseq
, lsm-tree:xxhash
, primitive
, vector ^>=0.13.0.0
exposed-modules:
Data.BloomFilter
Data.BloomFilter.BitVec64
Data.BloomFilter.Calc
Data.BloomFilter.Easy
Data.BloomFilter.Hash
Data.BloomFilter.Internal
Data.BloomFilter.Mutable
Data.BloomFilter.Mutable.Internal
ghc-options: -O2 -Wall
test-suite bloomfilter-tests
default-language: Haskell2010
type: exitcode-stdio-1.0
hs-source-dirs: bloomfilter/tests
main-is: bloomfilter-tests.hs
other-modules: QCSupport
build-depends:
, base
, bytestring
, lsm-tree:bloomfilter
, QuickCheck
, quickcheck-instances
, random
, tasty
, tasty-quickcheck
, vector
test-suite bloomfilter-primes
default-language: Haskell2010
type: exitcode-stdio-1.0
hs-source-dirs: bloomfilter/tests
main-is: primes.hs
build-depends:
, base
, primes ^>=0.2.1.0
test-suite bloomfilter-spell
default-language: Haskell2010
type: exitcode-stdio-1.0
hs-source-dirs: bloomfilter/examples
main-is: spell.hs
build-depends:
, base
, lsm-tree:bloomfilter
library lsm-tree-utils
import: warnings, wno-x-partial
visibility: private
hs-source-dirs: src/utils
default-language: Haskell2010
exposed-modules:
Database.LSMTree.Generators
Database.LSMTree.Orphans
Database.LSMTree.Util
System.Random.Extras
build-depends:
, base
, bytestring
, containers
, deepseq
, lsm-tree
, primitive
, QuickCheck
, quickcheck-instances
, random
, vector
, wide-word
test-suite lsm-tree-test
import: warnings, wno-x-partial
default-language: Haskell2010
type: exitcode-stdio-1.0
hs-source-dirs: test
main-is: Main.hs
other-modules:
Database.LSMTree.Model.Monoidal
Database.LSMTree.Model.Normal
Database.LSMTree.Model.Normal.Session
Database.LSMTree.ModelIO.Monoidal
Database.LSMTree.ModelIO.Normal
Database.LSMTree.ModelIO.Session
Test.Database.LSMTree.Common
Test.Database.LSMTree.Generators
Test.Database.LSMTree.Internal.BloomFilter
Test.Database.LSMTree.Internal.CRC32C
Test.Database.LSMTree.Internal.Entry
Test.Database.LSMTree.Internal.IndexCompact
Test.Database.LSMTree.Internal.Lookup
Test.Database.LSMTree.Internal.Monkey
Test.Database.LSMTree.Internal.PageAcc
Test.Database.LSMTree.Internal.PageAcc1
Test.Database.LSMTree.Internal.RawOverflowPage
Test.Database.LSMTree.Internal.RawPage
Test.Database.LSMTree.Internal.Run
Test.Database.LSMTree.Internal.RunAcc
Test.Database.LSMTree.Internal.Serialise
Test.Database.LSMTree.Model.Monoidal
Test.Database.LSMTree.Model.Normal
Test.Database.LSMTree.ModelIO.Class
Test.Database.LSMTree.ModelIO.Monoidal
Test.Database.LSMTree.ModelIO.Monoidal.Class
Test.Database.LSMTree.ModelIO.Normal
Test.Database.LSMTree.Normal.StateMachine
Test.Database.LSMTree.Normal.StateMachine.Op
Test.Util.Orphans
Test.Util.QuickCheck
Test.Util.RawPage
Test.Util.TypeFamilyWrappers
build-depends:
, ansi-terminal
, base >=4.16 && <4.20
, bitvec
, bytestring
, constraints
, containers
, crc32c >=0.1
, cryptohash-sha256
, deepseq
, directory
, filepath
, fs-api
, fs-sim >=0.2
, io-classes
, io-sim >=1.2
, lsm-tree
, lsm-tree:bloomfilter
, lsm-tree:fs-api-blockio
, lsm-tree:lsm-tree-utils
, lsm-tree:prototypes
, mtl
, primitive
, QuickCheck
, quickcheck-classes-base
, quickcheck-dynamic
, quickcheck-instances
, quickcheck-lockstep
, random
, semialign
, split
, stm
, tasty
, tasty-hunit
, tasty-quickcheck
, temporary
, these
, transformers
, vector
ghc-options: -fno-ignore-asserts -threaded
benchmark lsm-tree-micro-bench
import: warnings, wno-x-partial
default-language: Haskell2010
type: exitcode-stdio-1.0
hs-source-dirs: bench/micro
main-is: Main.hs
other-modules:
Bench.Database.LSMTree.Internal.BloomFilter
Bench.Database.LSMTree.Internal.IndexCompact
Bench.Database.LSMTree.Internal.Lookup
Bench.Database.LSMTree.Internal.RawPage
build-depends:
, base
, bytestring
, containers
, criterion
, deepseq
, fs-api
, lsm-tree
, lsm-tree:bloomfilter
, lsm-tree:fs-api-blockio
, lsm-tree:lsm-tree-utils
, lsm-tree:prototypes
, primitive
, QuickCheck
, random
, vector
ghc-options: -rtsopts -with-rtsopts=-T -threaded
benchmark lsm-tree-macro-bench
import: warnings, wno-x-partial
default-language: Haskell2010
type: exitcode-stdio-1.0
hs-source-dirs: bench/macro
main-is: Main.hs
other-modules: Bench.Database.LSMTree.Internal.BloomFilter
build-depends:
, base
, lsm-tree
, lsm-tree:bloomfilter
, lsm-tree:lsm-tree-utils
, random
, time
, vector
, wide-word
ghc-options: -rtsopts -with-rtsopts=-T -threaded
benchmark initial-lsm-bench
import: warnings, wno-x-partial
default-language: Haskell2010
type: exitcode-stdio-1.0
hs-source-dirs: bench/macro test
main-is: initial-lsm-bench.hs
build-depends:
, base
, binary
, bytestring
, clock
, cryptohash-sha256
, fs-api
, lsm-tree
, lsm-tree:lsm-tree-utils
, optparse-applicative
, primitive
, temporary
ghc-options: -rtsopts -with-rtsopts=-T -threaded
library kmerge
import: warnings, wno-x-partial
default-language: Haskell2010
hs-source-dirs: src-kmerge
exposed-modules:
KMerge.Heap
KMerge.LoserTree
build-depends:
, base
, indexed-traversable
, primitive
test-suite kmerge-test
import: warnings, wno-x-partial
default-language: Haskell2010
type: exitcode-stdio-1.0
hs-source-dirs: test
main-is: kmerge-test.hs
build-depends:
, base >=4.16 && <4.20
, deepseq
, heaps
, lsm-tree:kmerge
, primitive
, splitmix
, tasty
, tasty-bench
, tasty-hunit
, tasty-quickcheck
, vector
benchmark kmerge-bench
import: warnings, wno-x-partial
default-language: Haskell2010
type: exitcode-stdio-1.0
hs-source-dirs: test
main-is: kmerge-test.hs
cpp-options: -DKMERGE_BENCHMARKS
build-depends:
, base >=4.16 && <4.20
, deepseq
, heaps
, lsm-tree:kmerge
, primitive
, splitmix
, tasty
, tasty-bench
, tasty-hunit
, tasty-quickcheck
, vector
test-suite map-range-test
import: warnings, wno-x-partial
default-language: Haskell2010
type: exitcode-stdio-1.0
hs-source-dirs: test
main-is: map-range-test.hs
build-depends:
, base >=4.16 && <4.20
, bytestring
, containers
, lsm-tree
, QuickCheck
, tasty
, tasty-hunit
, tasty-quickcheck
library prototypes
import: warnings, wno-x-partial
default-language: Haskell2010
hs-source-dirs: prototypes
exposed-modules:
FormatPage
ScheduledMerges
ScheduledMergesTestQLS
build-depends:
, base
, binary
, bytestring
, constraints
, containers
, contra-tracer
, lsm-tree
, QuickCheck
, quickcheck-dynamic
, quickcheck-lockstep
, tasty
, tasty-quickcheck
ghc-options:
-Wno-incomplete-uni-patterns -Wno-partial-fields
-Wno-missing-export-lists
test-suite lsm-prototypes-tests
import: warnings, wno-x-partial
default-language: Haskell2010
type: exitcode-stdio-1.0
hs-source-dirs: test
main-is: lsm-prototypes-tests.hs
build-depends:
, base
, lsm-tree:prototypes
, tasty
-- TODO: temporary flag that overrides the operating system dependents
-- implementation of the HasBlockIO interface, using the serial implementation
-- intead. This allows for fixing bugs in the blockio-uring implementation
-- without blocking parallel development efforts that rely on HasBlockIO but not
-- on its exact implementation. One could argue for keeping this flag even after
-- blockio-uring has become stable enough, but I (Joris) would prefer to not
-- expose cabal flags to the user.
flag serialblockio
description: User serial HasBlockIO regardless of the operating system
default: False
manual: True
library fs-api-blockio
import: warnings, wno-x-partial
visibility: private
hs-source-dirs: fs-api-blockio/src
default-language: Haskell2010
exposed-modules:
System.FS.BlockIO.API
System.FS.BlockIO.IO
System.FS.BlockIO.Serial
build-depends:
, base >=4.16 && <4.20
, fs-api ^>=0.2
, io-classes ^>=1.3
, primitive ^>=0.9
, vector ^>=0.13
if os(linux)
hs-source-dirs: fs-api-blockio/src-linux
other-modules:
System.FS.BlockIO.Async
System.FS.BlockIO.Internal
build-depends: blockio-uring ^>=0.1
elif os(osx)
hs-source-dirs: fs-api-blockio/src-macos
other-modules: System.FS.BlockIO.Internal
elif os(windows)
hs-source-dirs: fs-api-blockio/src-windows
other-modules: System.FS.BlockIO.Internal
if flag(serialblockio)
cpp-options: -DSERIALBLOCKIO
test-suite fs-api-blockio-test
import: warnings, wno-x-partial
default-language: Haskell2010
type: exitcode-stdio-1.0
hs-source-dirs: fs-api-blockio/test
main-is: Main.hs
build-depends:
, async
, base >=4.16 && <4.20
, bytestring
, fs-api
, lsm-tree:fs-api-blockio
, primitive
, tasty
, tasty-hunit
, tasty-quickcheck
, temporary
, vector
ghc-options: -threaded -fno-ignore-asserts