/
reflex.cabal
369 lines (346 loc) · 8.61 KB
/
reflex.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
Name: reflex
Version: 0.6.2.0
Synopsis: Higher-order Functional Reactive Programming
Description: Reflex is a high-performance, deterministic, higher-order Functional Reactive Programming system
License: BSD3
License-file: LICENSE
Author: Ryan Trinkle
Maintainer: ryan.trinkle@gmail.com
Stability: Experimental
Category: FRP
Build-type: Simple
Cabal-version: >=1.9.2
homepage: https://reflex-frp.org
bug-reports: https://github.com/reflex-frp/reflex/issues
extra-source-files:
README.md
Quickref.md
ChangeLog.md
flag use-reflex-optimizer
description: Use the GHC plugin Reflex.Optimizer on some of the modules in the package. This is still experimental.
default: False
manual: True
flag use-template-haskell
description: Use template haskell to generate lenses
default: True
manual: True
flag debug-trace-events
description: Add instrumentation that outputs the stack trace of the definition of an event whenever it is subscribed to. Warning: It is very slow!
default: False
manual: True
flag fast-weak
description: Use the primitive implementation of FastWeak in GHCJS; note that this requires GHCJS to be built with FastWeak and FastWeakBag present in the RTS, which is not the default
default: False
manual: True
library
hs-source-dirs: src
build-depends:
MemoTrie == 0.6.*,
base >= 4.9 && < 4.13,
bifunctors >= 5.2 && < 5.6,
comonad,
constraints-extras >= 0.2,
containers >= 0.5 && < 0.7,
data-default >= 0.5 && < 0.8,
dependent-map >= 0.3 && < 0.4,
exception-transformers == 0.4.*,
lens >= 4.7 && < 5,
monad-control >= 1.0.1 && < 1.1,
monoidal-containers == 0.4.*,
mtl >= 2.1 && < 2.3,
prim-uniq >= 0.1.0.1 && < 0.2,
primitive >= 0.5 && < 0.7,
random == 1.1.*,
ref-tf == 0.4.*,
reflection == 2.1.*,
semigroupoids >= 4.0 && < 6,
semigroups >= 0.16 && < 0.19,
stm >= 2.4 && < 2.6,
syb >= 0.5 && < 0.8,
these >= 0.4 && < 0.9,
time >= 1.4 && < 1.9,
transformers >= 0.2,
transformers-compat >= 0.3,
unbounded-delays >= 0.1.0.0 && < 0.2,
witherable >= 0.2 && < 0.4
exposed-modules:
Data.AppendMap,
Data.FastMutableIntMap,
Data.FastWeakBag,
Data.Functor.Misc,
Data.Map.Misc,
Data.WeakBag,
Reflex,
Reflex.Class,
Reflex.Adjustable.Class,
Reflex.BehaviorWriter.Base,
Reflex.BehaviorWriter.Class,
Reflex.Collection,
Reflex.Dynamic,
Reflex.Dynamic.Uniq,
Reflex.DynamicWriter,
Reflex.DynamicWriter.Base,
Reflex.DynamicWriter.Class,
Reflex.EventWriter,
Reflex.EventWriter.Base,
Reflex.EventWriter.Class,
Reflex.FastWeak,
Reflex.FunctorMaybe,
Reflex.Host.Class,
Reflex.Network,
Reflex.NotReady.Class,
Reflex.Patch,
Reflex.Patch.Class,
Reflex.Patch.DMap,
Reflex.Patch.DMapWithMove,
Reflex.Patch.IntMap,
Reflex.Patch.Map,
Reflex.Patch.MapWithMove,
Reflex.PerformEvent.Base,
Reflex.PerformEvent.Class,
Reflex.PostBuild.Base,
Reflex.PostBuild.Class,
Reflex.Profiled,
Reflex.Pure,
Reflex.Query.Base,
Reflex.Query.Class,
Reflex.Requester.Base,
Reflex.Requester.Class,
Reflex.Spider,
Reflex.Spider.Internal,
Reflex.Time,
Reflex.TriggerEvent.Base,
Reflex.TriggerEvent.Class,
Reflex.Widget.Basic,
Reflex.Workflow
ghc-options: -Wall -fwarn-redundant-constraints -fwarn-tabs -funbox-strict-fields -O2 -fspecialise-aggressively
if flag(debug-trace-events)
cpp-options: -DDEBUG_TRACE_EVENTS
build-depends: bytestring
if flag(use-reflex-optimizer)
cpp-options: -DUSE_REFLEX_OPTIMIZER
build-depends: ghc
exposed-modules: Reflex.Optimizer
if flag(use-template-haskell)
cpp-options: -DUSE_TEMPLATE_HASKELL
build-depends:
dependent-sum >= 0.6 && < 0.7,
haskell-src-exts >= 1.16 && < 1.22,
haskell-src-meta >= 0.6 && < 0.9,
template-haskell >= 2.9 && < 2.15
exposed-modules:
Reflex.Dynamic.TH
other-extensions: TemplateHaskell
else
build-depends:
dependent-sum == 0.6.*
if flag(fast-weak) && impl(ghcjs)
cpp-options: -DGHCJS_FAST_WEAK
if impl(ghcjs)
build-depends: ghcjs-base
test-suite semantics
type: exitcode-stdio-1.0
main-is: semantics.hs
hs-source-dirs: test
ghc-options: -O2 -Wall -rtsopts
build-depends:
base,
bifunctors,
containers,
deepseq >= 1.3 && < 1.5,
dependent-map,
dependent-sum,
mtl,
ref-tf,
reflex,
split,
transformers >= 0.3
other-modules:
Reflex.Bench.Focused
Reflex.Plan.Pure
Reflex.Plan.Reflex
Reflex.Test
Reflex.Test.Micro
Reflex.TestPlan
test-suite CrossImpl
type: exitcode-stdio-1.0
main-is: Reflex/Test/CrossImpl.hs
hs-source-dirs: test
ghc-options: -O2 -Wall -rtsopts
build-depends:
base,
containers,
dependent-map,
dependent-sum,
deepseq >= 1.3 && < 1.5,
mtl,
transformers,
ref-tf,
reflex
other-modules:
Reflex.Test
Reflex.TestPlan
Reflex.Plan.Reflex
Reflex.Plan.Pure
test-suite hlint
type: exitcode-stdio-1.0
main-is: hlint.hs
hs-source-dirs: test
build-depends: base
, directory
, filepath
, filemanip
, hlint
if impl(ghcjs)
buildable: False
test-suite EventWriterT
type: exitcode-stdio-1.0
main-is: EventWriterT.hs
hs-source-dirs: test
build-depends: base
, containers
, deepseq >= 1.3 && < 1.5
, dependent-map
, dependent-sum
, lens
, mtl
, these
, transformers
, reflex
, ref-tf
other-modules:
Reflex.Test
Reflex.TestPlan
Reflex.Plan.Reflex
Reflex.Plan.Pure
Test.Run
test-suite RequesterT
type: exitcode-stdio-1.0
main-is: RequesterT.hs
hs-source-dirs: test
build-depends: base
, containers
, deepseq >= 1.3 && < 1.5
, dependent-sum
, dependent-map
, lens
, mtl
, these
, transformers
, reflex
, ref-tf
other-modules:
Reflex.TestPlan
Reflex.Plan.Pure
test-suite QueryT
type: exitcode-stdio-1.0
main-is: QueryT.hs
hs-source-dirs: test
build-depends: base
, containers
, dependent-map
, dependent-sum
, deepseq >= 1.3 && < 1.5
, lens
, monoidal-containers
, mtl
, ref-tf
, reflex
, semigroups
, these
, transformers
other-modules:
Test.Run
Reflex.TestPlan
Reflex.Plan.Reflex
Reflex.Plan.Pure
test-suite GC-Semantics
type: exitcode-stdio-1.0
main-is: GC.hs
hs-source-dirs: test
build-depends: base
, containers
, dependent-sum
, dependent-map
, deepseq >= 1.3 && < 1.5
, mtl
, these
, transformers
, reflex
, ref-tf
if impl(ghc < 8)
build-depends: semigroups
other-modules:
Reflex.Plan.Pure
Reflex.Plan.Reflex
Reflex.TestPlan
Test.Run
test-suite rootCleanup
type: exitcode-stdio-1.0
main-is: rootCleanup.hs
hs-source-dirs: test
build-depends: base
, containers
, deepseq >= 1.3 && < 1.5
, dependent-sum
, mtl
, reflex
, ref-tf
, these
other-modules:
Reflex.Plan.Pure
Reflex.TestPlan
Test.Run
benchmark spider-bench
type: exitcode-stdio-1.0
hs-source-dirs: bench test
main-is: Main.hs
ghc-options: -Wall -O2 -rtsopts
build-depends:
base,
containers,
criterion >= 1.1 && < 1.6,
deepseq >= 1.3 && < 1.5,
dependent-map,
dependent-sum,
ref-tf,
mtl,
primitive,
reflex,
split,
stm,
transformers >= 0.3
other-modules:
Reflex.TestPlan
Reflex.Plan.Reflex
Reflex.Bench.Focused
benchmark saulzar-bench
type: exitcode-stdio-1.0
hs-source-dirs: bench test
c-sources: bench-cbits/checkCapability.c
main-is: RunAll.hs
ghc-options: -Wall -O2 -rtsopts -threaded
build-depends:
base,
containers >= 0.5 && < 0.7,
criterion >= 1.1 && < 1.6,
deepseq >= 1.3 && < 1.5,
dependent-map,
dependent-sum,
loch-th,
mtl,
primitive,
process,
ref-tf,
reflex,
split,
stm,
time,
transformers >= 0.3
other-modules:
Reflex.TestPlan
Reflex.Plan.Reflex
Reflex.Bench.Focused
source-repository head
type: git
location: https://github.com/reflex-frp/reflex