forked from tahoe-lafs/zfec
-
Notifications
You must be signed in to change notification settings - Fork 0
/
fec.cabal
77 lines (69 loc) · 2.39 KB
/
fec.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
cabal-version: 3.0
name: fec
version: 0.2.0
license: GPL-2.0-or-later
license-file: README.rst
author: Adam Langley <[email protected]>
maintainer: Adam Langley <[email protected]>
description:
This code, based on zfec by Zooko, based on code by Luigi
Rizzo implements an erasure code, or forward error
correction code. The most widely known example of an erasure
code is the RAID-5 algorithm which makes it so that in the
event of the loss of any one hard drive, the stored data can
be completely recovered. The algorithm in the zfec package
has a similar effect, but instead of recovering from the loss
of only a single element, it can be parameterized to choose in
advance the number of elements whose loss it can tolerate.
build-type: Simple
homepage: https://github.com/tahoe-lafs/zfec
synopsis: Forward error correction of ByteStrings
category: Codec
stability: provisional
tested-with: GHC ==8.10.7
extra-source-files:
COPYING.GPL
COPYING.TGPPL.rst
zfec/fec.h
extra-doc-files: ChangeLog.md
library
build-depends:
, base >=4.9 && <5
, bytestring >=0.10 && <0.13
, deepseq >=1.4 && <1.6
, extra >=1.7 && <1.8
exposed-modules: Codec.FEC
default-language: Haskell2010
default-extensions: ForeignFunctionInterface
hs-source-dirs: haskell
ghc-options: -Wall
c-sources: zfec/fec.c
cc-options: -std=c99
include-dirs: zfec
executable benchmark-zfec
main-is: Main.hs
ghc-options: -threaded
build-depends:
, base >=4.9 && <5
, bytestring >=0.10 && <0.13
, criterion >=1.1 && <1.7
, fec
, random >=1.1 && <1.3
hs-source-dirs: benchmark-zfec
default-language: Haskell2010
test-suite tests
type: exitcode-stdio-1.0
main-is: FECTest.hs
other-modules:
hs-source-dirs: haskell/test
ghc-options: -Wall -threaded -rtsopts -with-rtsopts=-N
build-depends:
, base >=4.9 && <5
, bytestring >=0.10 && <0.13
, data-serializer >=0.3 && <0.4
, fec
, hspec >=2.7 && <2.12
, QuickCheck >=2.14 && <2.15
, quickcheck-instances >=0.3 && <0.4
, random >=1.1 && <1.3
default-language: Haskell2010