-
Notifications
You must be signed in to change notification settings - Fork 314
/
haxl.cabal
211 lines (192 loc) · 4.17 KB
/
haxl.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
name: haxl
version: 2.5.1.0
synopsis: A Haskell library for efficient, concurrent,
and concise data access.
homepage: https://github.com/facebook/Haxl
bug-reports: https://github.com/facebook/Haxl/issues
license: BSD3
license-files: LICENSE
author: Facebook, Inc.
maintainer: The Haxl Team <[email protected]>
copyright: Copyright (c) 2014-present, Facebook, Inc.
category: Concurrency
build-type: Simple
stability: alpha
cabal-version: >= 1.10
tested-with:
GHC==8.4.4
GHC==8.6.5
GHC==8.8.4
GHC==8.10.7
GHC==9.0.2
GHC==9.2.8
GHC==9.4.8
GHC==9.6.6
GHC==9.8.2
GHC==9.10.1
description:
Haxl is a library and EDSL for efficient scheduling of concurrent data
accesses with a concise applicative API.
.
To use Haxl, you need to implement one or more /data sources/, which
provide the means for accessing remote data or other I/O that you
want to perform using Haxl.
.
Haxl provides two top-level modules:
.
* /Data-source implementations/ import "Haxl.Core",
.
* /Client code/ import your data sources and "Haxl.Prelude", or some
other client-level API that you provide.
extra-source-files:
readme.md
tests/LoadCache.txt
changelog.md
library
build-depends:
aeson >= 0.6 && < 2.3,
base >= 4.10 && < 5,
binary >= 0.7 && < 0.10,
bytestring >= 0.9 && < 0.13,
containers >= 0.5 && < 0.8,
deepseq,
exceptions >=0.8 && <0.11,
filepath >= 1.3 && < 1.6,
ghc-prim,
hashable >= 1.2 && < 1.6,
hashtables >= 1.2.3.1,
pretty == 1.1.*,
-- text 1.2.1.0 required for instance Binary Text
text >= 1.2.1.0 && < 1.3 || >= 2 && < 2.2,
time >= 1.4 && < 1.13,
stm >= 2.4 && < 2.6,
transformers,
unordered-containers == 0.2.*,
vector >= 0.10 && <0.14
exposed-modules:
Haxl.Core,
Haxl.Core.CallGraph,
Haxl.Core.DataCache,
Haxl.Core.DataSource,
Haxl.Core.Exception,
Haxl.Core.Flags,
Haxl.Core.Memo,
Haxl.Core.Monad,
Haxl.Core.Fetch,
Haxl.Core.Parallel,
Haxl.Core.Profile,
Haxl.Core.Run,
Haxl.Core.RequestStore,
Haxl.Core.ShowP,
Haxl.Core.StateStore,
Haxl.Core.Stats,
Haxl.Prelude
Haxl.DataSource.ConcurrentIO
other-modules:
Haxl.Core.Util
default-language: Haskell2010
default-extensions:
TypeOperators
ghc-options:
-O2 -fprof-auto
-Wall
-Wno-name-shadowing
test-suite test
build-depends:
aeson,
HUnit >= 1.2 && < 1.7,
base >= 4.7 && < 5,
binary,
bytestring,
containers,
deepseq,
filepath,
hashable,
hashtables,
haxl,
test-framework,
test-framework-hunit,
text,
time,
unordered-containers
ghc-options:
-Wall
-fno-warn-name-shadowing
-fno-warn-missing-signatures
hs-source-dirs:
tests
main-is:
TestMain.hs
other-modules:
AdoTests
AllTests
BadDataSource
BatchTests
CoreTests
DataCacheTest
ExampleDataSource
ExceptionStackTests
FullyAsyncTest
LoadCache
MemoizationTests
MockTAO
MonadAsyncTest
OutgoneFetchesTests
ParallelTests
ProfileTests
SleepDataSource
StatsTests
TestBadDataSource
TestExampleDataSource
TestTypes
TestUtils
WorkDataSource
WriteTests
DataSourceDispatchTests
type:
exitcode-stdio-1.0
default-language: Haskell2010
default-extensions:
TypeOperators
flag bench
default: False
executable monadbench
if !flag(bench)
buildable: False
default-language:
Haskell2010
default-extensions:
TypeOperators
hs-source-dirs:
tests
build-depends:
base,
haxl,
hashable,
time,
optparse-applicative
main-is:
MonadBench.hs
other-modules:
ExampleDataSource
ghc-options:
-O2 -main-is MonadBench -rtsopts
executable cachebench
if !flag(bench)
buildable: False
default-language:
Haskell2010
default-extensions:
TypeOperators
hs-source-dirs:
tests
build-depends:
base,
haxl,
hashable,
hashtables,
time
main-is:
Bench.hs
ghc-options:
-O2 -main-is Bench -rtsopts