-
Notifications
You must be signed in to change notification settings - Fork 149
/
reflex.cabal
502 lines (454 loc) · 11.9 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
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
Name: reflex
Version: 0.9.3.1
Synopsis: Higher-order Functional Reactive Programming
Description:
Interactive programs without callbacks or side-effects.
Functional Reactive Programming (FRP) uses composable events and time-varying
values to describe interactive systems as pure functions.
Just like other pure functional code, functional reactive code is easier
to get right on the first try, maintain, and reuse.
.
Reflex is a fully-deterministic, higher-order Functional Reactive Programming
interface and an engine that efficiently implements that interface.
.
<https://reflex-frp.org>
License: BSD3
License-file: LICENSE
Author: Ryan Trinkle
Maintainer: [email protected]
Stability: Experimental
Category: FRP
Build-type: Simple
Cabal-version: 1.22
homepage: https://reflex-frp.org
bug-reports: https://github.com/reflex-frp/reflex/issues
extra-source-files:
README.md
Quickref.md
ChangeLog.md
tested-with:
GHC ==8.4.4 || ==8.6.5 || ==8.8.1 || ==8.10.7 || ==9.0.1 || ==9.2.5 || ==9.4.5 || ==9.6.1 || ==9.8.2 || ==9.10.1,
GHCJS ==8.6 || ==8.10
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
flag debug-propagation
description: Enable debugging of spider internals
default: False
manual: True
flag debug-cycles
description: Enable debugging of event cycles
default: False
manual: True
flag split-these
description: Use split these/semialign packages
manual: False
default: True
library
default-language: Haskell2010
hs-source-dirs: src
build-depends:
MemoTrie == 0.6.*,
base >= 4.11 && < 4.21,
bifunctors >= 5.2 && < 5.7,
comonad >= 5.0.4 && < 5.1,
commutative-semigroups >= 0.1 && <0.3,
constraints >= 0.10 && <0.15,
constraints-extras >= 0.3 && < 0.5,
containers >= 0.6 && < 0.8,
data-default >= 0.5 && < 0.8,
dependent-map >= 0.3 && < 0.5,
dependent-sum >= 0.6 && < 0.8,
exceptions >= 0.10 && < 0.11,
exception-transformers >= 0.4 && < 0.5,
lens >= 4.7 && < 5.4,
mmorph >= 1.0 && < 1.3,
monad-control >= 1.0.1 && < 1.1,
mtl >= 2.1 && < 2.4,
patch >= 0.0.7 && < 0.1,
prim-uniq >= 0.1.0.1 && < 0.3,
primitive >= 0.5 && < 0.10,
profunctors >= 5.3 && < 5.7,
random >= 1.1 && < 1.3,
ref-tf >= 0.4 && < 0.6,
reflection == 2.1.*,
semigroupoids >= 4.0 && < 7,
stm >= 2.4 && < 2.6,
syb >= 0.5 && < 0.8,
time >= 1.4 && < 1.13,
transformers >= 0.5 && < 0.7,
unbounded-delays >= 0.1.0.0 && < 0.2,
witherable >= 0.4 && < 0.5
if flag(split-these)
build-depends: these >= 1 && <1.3,
semialign >=1 && <1.4,
monoidal-containers >= 0.6.2.0 && < 0.7
else
build-depends: these >= 0.4 && <0.9,
monoidal-containers == 0.4.0.0
exposed-modules:
Control.Monad.ReaderIO
Data.AppendMap,
Data.FastMutableIntMap,
Data.FastWeakBag,
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.Host.Headless,
Reflex.Network,
Reflex.NotReady.Class,
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.Base.Internal,
Reflex.Requester.Class,
Reflex.Spider,
Reflex.Spider.Internal,
Reflex.Time,
Reflex.TriggerEvent.Base,
Reflex.TriggerEvent.Class,
Reflex.Widget.Basic,
Reflex.Workflow
reexported-modules:
patch:Data.Functor.Misc,
patch:Data.Patch as Reflex.Patch,
patch:Data.Patch.Class as Reflex.Patch.Class,
patch:Data.Patch.DMap as Reflex.Patch.DMap,
patch:Data.Patch.DMapWithMove as Reflex.Patch.DMapWithMove,
patch:Data.Patch.IntMap as Reflex.Patch.IntMap,
patch:Data.Patch.Map as Reflex.Patch.Map,
patch:Data.Patch.MapWithMove as Reflex.Patch.MapWithMove
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 >= 0.10.8 && < 0.11
if flag(use-reflex-optimizer)
cpp-options: -DUSE_REFLEX_OPTIMIZER
build-depends: ghc
exposed-modules: Reflex.Optimizer
if flag(debug-propagation)
cpp-options: -DDEBUG -DDEBUG_TRACE_PROPAGATION -DDEBUG_TRACE_INVALIDATION
if flag(debug-cycles)
cpp-options: -DDEBUG_CYCLES
if flag(use-template-haskell)
cpp-options: -DUSE_TEMPLATE_HASKELL
build-depends:
haskell-src-exts >= 1.16 && < 1.24,
haskell-src-meta >= 0.6 && < 0.9,
template-haskell >= 2.9 && < 2.23
exposed-modules:
Reflex.Dynamic.TH
other-extensions: TemplateHaskell
if flag(fast-weak) && impl(ghcjs)
cpp-options: -DGHCJS_FAST_WEAK
if impl(ghcjs)
build-depends:
ghcjs-base == 0.2.*
test-suite semantics
default-language: Haskell2010
type: exitcode-stdio-1.0
main-is: semantics.hs
hs-source-dirs: test
ghc-options: -O2 -Wall -rtsopts
build-depends:
base,
bifunctors,
containers,
deepseq,
dependent-map,
dependent-sum,
mtl,
ref-tf,
reflex,
split,
transformers
other-modules:
Reflex.Bench.Focused
Reflex.Plan.Pure
Reflex.Plan.Reflex
Reflex.Test
Reflex.Test.Micro
Reflex.TestPlan
test-suite CrossImpl
default-language: Haskell2010
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,
mtl,
transformers,
ref-tf,
reflex
other-modules:
Reflex.Test
Reflex.TestPlan
Reflex.Plan.Reflex
Reflex.Plan.Pure
test-suite hlint
default-language: Haskell2010
type: exitcode-stdio-1.0
main-is: hlint.hs
hs-source-dirs: test
build-depends: base
, directory
, filepath
, filemanip
if impl(ghc >= 9.6)
buildable: False
if impl(ghc < 9.2)
build-depends: hlint (< 2.1 || >= 2.2.2) && < 3.5
else
build-depends: hlint >= 3.5 && < 3.6
if impl(ghcjs)
buildable: False
test-suite EventWriterT
default-language: Haskell2010
type: exitcode-stdio-1.0
main-is: EventWriterT.hs
hs-source-dirs: test
build-depends: base
, containers
, deepseq
, dependent-map
, dependent-sum
, lens
, mtl
, these
, transformers
, reflex
, ref-tf
if flag(split-these)
build-depends: these-lens
other-modules:
Test.Run
test-suite DebugCycles
default-language: Haskell2010
type: exitcode-stdio-1.0
main-is: DebugCycles.hs
hs-source-dirs: test
ghc-options: -threaded
build-depends: base
, containers
, deepseq
, dependent-map
, dependent-sum
, hspec
, lens
, mtl
, these
, transformers
, reflex
, ref-tf
, witherable
if flag(split-these)
build-depends: these-lens, semialign
other-modules:
Test.Run
test-suite RequesterT
default-language: Haskell2010
type: exitcode-stdio-1.0
main-is: RequesterT.hs
hs-source-dirs: test
build-depends: base
, constraints
, constraints-extras
, containers
, deepseq
, dependent-map
, dependent-sum
, lens
, mtl
, ref-tf
, reflex
, text
, these
, transformers
if flag(split-these)
build-depends: these-lens
other-modules:
Reflex.TestPlan
Reflex.Plan.Pure
Test.Run
test-suite Headless
default-language: Haskell2010
type: exitcode-stdio-1.0
main-is: Headless.hs
hs-source-dirs: test
build-depends: base
, reflex
test-suite Adjustable
default-language: Haskell2010
type: exitcode-stdio-1.0
main-is: Adjustable.hs
hs-source-dirs: test
build-depends: base
, containers
, dependent-sum
, reflex
, ref-tf
, these
other-modules:
Test.Run
test-suite QueryT
default-language: Haskell2010
type: exitcode-stdio-1.0
main-is: QueryT.hs
hs-source-dirs: test
build-depends: base
, commutative-semigroups
, containers
, dependent-map
, dependent-sum
, deepseq
, lens
, monoidal-containers
, mtl
, patch
, ref-tf
, reflex
, these
, transformers
if flag(split-these)
build-depends: semialign, these-lens
other-modules:
Test.Run
Reflex.TestPlan
Reflex.Plan.Reflex
Reflex.Plan.Pure
test-suite GC-Semantics
default-language: Haskell2010
type: exitcode-stdio-1.0
main-is: GC.hs
hs-source-dirs: test
build-depends: base
, containers
, dependent-sum
, dependent-map
, deepseq
, mtl
, patch
, these
, transformers
, reflex
, ref-tf
if flag(split-these)
build-depends: semialign
other-modules:
Reflex.Plan.Pure
Reflex.Plan.Reflex
Reflex.TestPlan
Test.Run
test-suite rootCleanup
default-language: Haskell2010
type: exitcode-stdio-1.0
main-is: rootCleanup.hs
hs-source-dirs: test
build-depends: base
, containers
, deepseq
, dependent-sum
, mtl
, reflex
, ref-tf
, these
other-modules:
Reflex.Plan.Pure
Reflex.TestPlan
Test.Run
benchmark spider-bench
default-language: Haskell2010
type: exitcode-stdio-1.0
hs-source-dirs: bench test
main-is: Main.hs
ghc-options: -Wall -O2 -rtsopts
build-depends:
base,
containers,
criterion,
deepseq,
dependent-map,
dependent-sum,
ref-tf,
mtl,
primitive,
reflex,
split,
stm,
transformers
other-modules:
Reflex.TestPlan
Reflex.Plan.Reflex
Reflex.Bench.Focused
benchmark saulzar-bench
default-language: Haskell2010
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,
criterion,
deepseq,
dependent-map,
dependent-sum,
loch-th,
mtl,
primitive,
process,
ref-tf,
reflex,
split,
stm,
time,
transformers
other-modules:
Reflex.TestPlan
Reflex.Plan.Reflex
Reflex.Bench.Focused
source-repository head
type: git
location: https://github.com/reflex-frp/reflex