-
Notifications
You must be signed in to change notification settings - Fork 0
/
snappy-c.cabal
151 lines (142 loc) · 3.74 KB
/
snappy-c.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
cabal-version: 3.0
name: snappy-c
version: 0.1.1
synopsis: Bindings to Google's Snappy: A fast compression library
description: [Snappy](https://github.com/google/snappy) is a fast
(de)compression library. It is written in C++, but a basic
set of C bindings is also provided. Although the C bindings
only support the "raw" Snappy format, this package provides
support for the Snappy "frame" format on top of the raw C
API, enabling extremely fast (de)compression of lazy
(streamed) data.
license: BSD-3-Clause
license-file: LICENSE
author: Finley McIlwaine, Edsko de Vries
maintainer: [email protected]
category: Codec
build-type: Simple
extra-source-files: README.md
extra-doc-files: CHANGELOG.md
tested-with: GHC==8.10.7
, GHC==9.2.8
, GHC==9.4.8
, GHC==9.6.4
, GHC==9.8.2
source-repository head
type: git
location: https://github.com/well-typed/snappy-c
common lang
ghc-options:
-Wall
-Wunused-packages
-Wprepositive-qualified-module
-Widentities
build-depends:
base >= 4.14 && < 4.21
default-language:
Haskell2010
default-extensions:
BangPatterns
DataKinds
DeriveAnyClass
DeriveFunctor
DerivingStrategies
DerivingVia
GADTs
GeneralizedNewtypeDeriving
ImportQualifiedPost
InstanceSigs
KindSignatures
LambdaCase
MultiParamTypeClasses
NumericUnderscores
OverloadedStrings
PolyKinds
RankNTypes
RecordWildCards
ScopedTypeVariables
StandaloneDeriving
TupleSections
TypeApplications
TypeFamilies
library
import:
lang
hs-source-dirs:
src
exposed-modules:
Codec.Compression.SnappyC.Raw
Codec.Compression.SnappyC.Framed
other-modules:
Codec.Compression.SnappyC.Internal.Buffer
Codec.Compression.SnappyC.Internal.C
Codec.Compression.SnappyC.Internal.Checksum
Codec.Compression.SnappyC.Internal.FrameFormat
Codec.Compression.SnappyC.Internal.Util
build-depends:
, bytestring >= 0.10 && < 0.13
, data-default >= 0.7 && < 0.8
, digest >= 0.0.2 && < 0.0.3
, mtl >= 2.2.2 && < 2.4
extra-libraries:
, snappy
executable snappy-cli
import:
lang
hs-source-dirs:
snappy-cli
main-is:
Main.hs
build-depends:
snappy-c
, bytestring >= 0.10 && < 0.13
, conduit >= 1.3.5 && < 1.4
, data-default >= 0.7 && < 0.8
, optparse-applicative >= 0.18 && < 0.19
ghc-options:
-threaded
-rtsopts
test-suite test-snappy-c
import:
lang
type:
exitcode-stdio-1.0
hs-source-dirs:
test
main-is:
Main.hs
other-modules:
, Test.Prop.Orphans
, Test.Prop.RoundTrip
build-depends:
-- Internal dependencies
, snappy-c
build-depends:
-- External dependencies
, bytestring >= 0.10 && < 0.13
, tasty >= 1.5 && < 1.6
, tasty-hunit >= 0.10 && < 0.11
, tasty-quickcheck >= 0.10 && < 0.11
ghc-options:
-threaded
-rtsopts
benchmark bench-snappy-c
import:
lang
type:
exitcode-stdio-1.0
main-is:
bench/Main.hs
build-depends:
-- internal
, snappy-c
-- external
, bytestring >= 0.10 && < 0.13
, criterion >= 1.6.3 && < 1.7
, deepseq >= 1.4 && < 1.6
, random >= 1.2.1 && < 1.3
, snappy-lazy >= 0.1 && < 0.2
, zlib >= 0.6.3 && < 0.8
ghc-options:
-threaded
-rtsopts