firefly-compiler 0.4.6 → 0.4.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (90) hide show
  1. package/compiler/Compiler.ff +2 -0
  2. package/compiler/Deriver.ff +7 -0
  3. package/core/Array.ff +17 -4
  4. package/core/AssetSystem.ff +1 -1
  5. package/core/BrowserSystem.ff +27 -0
  6. package/core/List.ff +4 -0
  7. package/core/Lock.ff +2 -2
  8. package/core/Random.ff +148 -0
  9. package/core/SourceLocation.ff +27 -0
  10. package/core/Task.ff +3 -0
  11. package/core/WebSocket.ff +127 -0
  12. package/httpserver/HttpServer.ff +1 -1
  13. package/lux/Css.ff +648 -0
  14. package/lux/CssTest.ff +48 -0
  15. package/lux/Lux.ff +33 -18
  16. package/lux/Main.ff +4 -1
  17. package/output/js/ff/compiler/Builder.mjs +448 -444
  18. package/output/js/ff/compiler/Compiler.mjs +420 -416
  19. package/output/js/ff/compiler/Dependencies.mjs +393 -389
  20. package/output/js/ff/compiler/Deriver.mjs +1178 -1170
  21. package/output/js/ff/compiler/Dictionaries.mjs +1315 -1309
  22. package/output/js/ff/compiler/Environment.mjs +1025 -1015
  23. package/output/js/ff/compiler/Inference.mjs +4272 -4268
  24. package/output/js/ff/compiler/JsEmitter.mjs +5405 -5391
  25. package/output/js/ff/compiler/JsImporter.mjs +270 -266
  26. package/output/js/ff/compiler/LspHook.mjs +799 -793
  27. package/output/js/ff/compiler/Main.mjs +1691 -1675
  28. package/output/js/ff/compiler/Parser.mjs +4016 -4008
  29. package/output/js/ff/compiler/Patterns.mjs +935 -927
  30. package/output/js/ff/compiler/Resolver.mjs +2311 -2307
  31. package/output/js/ff/compiler/Substitution.mjs +1154 -1150
  32. package/output/js/ff/compiler/Syntax.mjs +12566 -12434
  33. package/output/js/ff/compiler/Token.mjs +3152 -3096
  34. package/output/js/ff/compiler/Tokenizer.mjs +597 -593
  35. package/output/js/ff/compiler/Unification.mjs +1762 -1752
  36. package/output/js/ff/compiler/Wildcards.mjs +612 -608
  37. package/output/js/ff/compiler/Workspace.mjs +695 -687
  38. package/output/js/ff/core/Any.mjs +147 -143
  39. package/output/js/ff/core/Array.mjs +573 -547
  40. package/output/js/ff/core/AssetSystem.mjs +278 -274
  41. package/output/js/ff/core/Atomic.mjs +158 -154
  42. package/output/js/ff/core/Bool.mjs +156 -152
  43. package/output/js/ff/core/Box.mjs +116 -112
  44. package/output/js/ff/core/BrowserSystem.mjs +181 -126
  45. package/output/js/ff/core/Buffer.mjs +399 -395
  46. package/output/js/ff/core/BuildSystem.mjs +300 -296
  47. package/output/js/ff/core/Channel.mjs +193 -189
  48. package/output/js/ff/core/Char.mjs +153 -149
  49. package/output/js/ff/core/Core.mjs +304 -300
  50. package/output/js/ff/core/Duration.mjs +120 -116
  51. package/output/js/ff/core/Equal.mjs +183 -179
  52. package/output/js/ff/core/Error.mjs +146 -142
  53. package/output/js/ff/core/FileHandle.mjs +154 -150
  54. package/output/js/ff/core/Float.mjs +229 -225
  55. package/output/js/ff/core/HttpClient.mjs +195 -191
  56. package/output/js/ff/core/Instant.mjs +113 -109
  57. package/output/js/ff/core/Int.mjs +269 -265
  58. package/output/js/ff/core/IntMap.mjs +284 -280
  59. package/output/js/ff/core/JsSystem.mjs +242 -238
  60. package/output/js/ff/core/JsValue.mjs +712 -708
  61. package/output/js/ff/core/List.mjs +2346 -2334
  62. package/output/js/ff/core/Lock.mjs +235 -231
  63. package/output/js/ff/core/Log.mjs +167 -163
  64. package/output/js/ff/core/Map.mjs +366 -362
  65. package/output/js/ff/core/NodeSystem.mjs +298 -294
  66. package/output/js/ff/core/Nothing.mjs +108 -104
  67. package/output/js/ff/core/Option.mjs +1023 -1015
  68. package/output/js/ff/core/Ordering.mjs +734 -730
  69. package/output/js/ff/core/Pair.mjs +337 -331
  70. package/output/js/ff/core/Path.mjs +549 -545
  71. package/output/js/ff/core/Random.mjs +340 -0
  72. package/output/js/ff/core/RbMap.mjs +1944 -1940
  73. package/output/js/ff/core/Serializable.mjs +432 -428
  74. package/output/js/ff/core/Set.mjs +258 -254
  75. package/output/js/ff/core/Show.mjs +209 -205
  76. package/output/js/ff/core/SourceLocation.mjs +273 -229
  77. package/output/js/ff/core/Stack.mjs +533 -529
  78. package/output/js/ff/core/Stream.mjs +1308 -1304
  79. package/output/js/ff/core/String.mjs +369 -365
  80. package/output/js/ff/core/StringMap.mjs +284 -280
  81. package/output/js/ff/core/Task.mjs +325 -319
  82. package/output/js/ff/core/Try.mjs +511 -507
  83. package/output/js/ff/core/Unit.mjs +155 -151
  84. package/output/js/ff/core/WebSocket.mjs +198 -0
  85. package/package.json +1 -1
  86. package/vscode/package.json +1 -1
  87. package/webserver/.firefly/include/package-lock.json +16 -0
  88. package/webserver/.firefly/include/package.json +5 -0
  89. package/webserver/.firefly/package.ff +2 -0
  90. package/webserver/WebServer.ff +608 -0
@@ -1,514 +1,518 @@
1
-
2
-
3
- import * as ff_core_Any from "../../ff/core/Any.mjs"
4
-
5
- import * as ff_core_Array from "../../ff/core/Array.mjs"
6
-
7
- import * as ff_core_AssetSystem from "../../ff/core/AssetSystem.mjs"
8
-
9
- import * as ff_core_Atomic from "../../ff/core/Atomic.mjs"
10
-
11
- import * as ff_core_Bool from "../../ff/core/Bool.mjs"
12
-
13
- import * as ff_core_Box from "../../ff/core/Box.mjs"
14
-
15
- import * as ff_core_BrowserSystem from "../../ff/core/BrowserSystem.mjs"
16
-
17
- import * as ff_core_Buffer from "../../ff/core/Buffer.mjs"
18
-
19
- import * as ff_core_BuildSystem from "../../ff/core/BuildSystem.mjs"
20
-
21
- import * as ff_core_Channel from "../../ff/core/Channel.mjs"
22
-
23
- import * as ff_core_Char from "../../ff/core/Char.mjs"
24
-
25
- import * as ff_core_Core from "../../ff/core/Core.mjs"
26
-
27
- import * as ff_core_Duration from "../../ff/core/Duration.mjs"
28
-
29
- import * as ff_core_Equal from "../../ff/core/Equal.mjs"
30
-
31
- import * as ff_core_Error from "../../ff/core/Error.mjs"
32
-
33
- import * as ff_core_FileHandle from "../../ff/core/FileHandle.mjs"
34
-
35
- import * as ff_core_Float from "../../ff/core/Float.mjs"
36
-
37
- import * as ff_core_HttpClient from "../../ff/core/HttpClient.mjs"
38
-
39
- import * as ff_core_Instant from "../../ff/core/Instant.mjs"
40
-
41
- import * as ff_core_Int from "../../ff/core/Int.mjs"
42
-
43
- import * as ff_core_IntMap from "../../ff/core/IntMap.mjs"
44
-
45
- import * as ff_core_JsSystem from "../../ff/core/JsSystem.mjs"
46
-
47
- import * as ff_core_JsValue from "../../ff/core/JsValue.mjs"
48
-
49
- import * as ff_core_List from "../../ff/core/List.mjs"
50
-
51
- import * as ff_core_Lock from "../../ff/core/Lock.mjs"
52
-
53
- import * as ff_core_Log from "../../ff/core/Log.mjs"
54
-
55
- import * as ff_core_Map from "../../ff/core/Map.mjs"
56
-
57
- import * as ff_core_NodeSystem from "../../ff/core/NodeSystem.mjs"
58
-
59
- import * as ff_core_Nothing from "../../ff/core/Nothing.mjs"
60
-
61
- import * as ff_core_Option from "../../ff/core/Option.mjs"
62
-
63
- import * as ff_core_Ordering from "../../ff/core/Ordering.mjs"
64
-
65
- import * as ff_core_Pair from "../../ff/core/Pair.mjs"
66
-
67
- import * as ff_core_Path from "../../ff/core/Path.mjs"
68
-
69
- import * as ff_core_Serializable from "../../ff/core/Serializable.mjs"
70
-
71
- import * as ff_core_Set from "../../ff/core/Set.mjs"
72
-
73
- import * as ff_core_Show from "../../ff/core/Show.mjs"
74
-
75
- import * as ff_core_SourceLocation from "../../ff/core/SourceLocation.mjs"
76
-
77
- import * as ff_core_Stack from "../../ff/core/Stack.mjs"
78
-
79
- import * as ff_core_Stream from "../../ff/core/Stream.mjs"
80
-
81
- import * as ff_core_String from "../../ff/core/String.mjs"
82
-
83
- import * as ff_core_StringMap from "../../ff/core/StringMap.mjs"
84
-
85
- import * as ff_core_Task from "../../ff/core/Task.mjs"
86
-
87
- import * as ff_core_Try from "../../ff/core/Try.mjs"
88
-
89
- import * as ff_core_Unit from "../../ff/core/Unit.mjs"
90
-
91
- // type Ordering
92
- const OrderingBefore$ = {OrderingBefore: true};
93
- export function OrderingBefore() {
94
- return OrderingBefore$;
95
- }
96
- const OrderingSame$ = {OrderingSame: true};
97
- export function OrderingSame() {
98
- return OrderingSame$;
99
- }
100
- const OrderingAfter$ = {OrderingAfter: true};
101
- export function OrderingAfter() {
102
- return OrderingAfter$;
103
- }
104
-
105
-
106
-
107
- export function before_(x_, y_, ff_core_Ordering_Order$T) {
108
- return (ff_core_Ordering_Order$T.compare_(x_, y_) === ff_core_Ordering.OrderingBefore())
109
- }
110
-
111
- export function notBefore_(x_, y_, ff_core_Ordering_Order$T) {
112
- return (ff_core_Ordering_Order$T.compare_(x_, y_) !== ff_core_Ordering.OrderingBefore())
113
- }
114
-
115
- export function after_(x_, y_, ff_core_Ordering_Order$T) {
116
- return (ff_core_Ordering_Order$T.compare_(x_, y_) === ff_core_Ordering.OrderingAfter())
117
- }
118
-
119
- export function notAfter_(x_, y_, ff_core_Ordering_Order$T) {
120
- return (ff_core_Ordering_Order$T.compare_(x_, y_) !== ff_core_Ordering.OrderingAfter())
121
- }
122
-
123
- export function reverse_(compare_) {
124
- return ((x_, y_) => {
125
- {
126
- const _1 = compare_(x_, y_);
127
- {
128
- if(_1.OrderingBefore) {
129
- return ff_core_Ordering.OrderingAfter()
130
- return
131
- }
132
- }
133
- {
134
- if(_1.OrderingSame) {
135
- return ff_core_Ordering.OrderingSame()
136
- return
137
- }
138
- }
139
- {
140
- if(_1.OrderingAfter) {
141
- return ff_core_Ordering.OrderingBefore()
142
- return
143
- }
144
- }
145
- }
146
- })
147
- }
148
-
149
- export function pair_(compareFirst_, compareSecond_) {
150
- return ((x_, y_) => {
151
- {
152
- const _1 = compareFirst_(x_.first_, y_.first_);
153
- {
154
- if(_1.OrderingSame) {
155
- return compareSecond_(x_.second_, y_.second_)
156
- return
157
- }
158
- }
159
- {
160
- const ordering_ = _1;
161
- return ordering_
162
- return
163
- }
164
- }
165
- })
166
- }
167
-
168
- export function fromInt_(order_) {
169
- if((order_ < 0)) {
170
- return ff_core_Ordering.OrderingBefore()
171
- } else if((order_ === 0)) {
172
- return ff_core_Ordering.OrderingSame()
173
- } else {
174
- return ff_core_Ordering.OrderingAfter()
175
- }
176
- }
177
-
178
- export function fromFloat_(order_) {
179
- if((order_ < 0.0)) {
180
- return ff_core_Ordering.OrderingBefore()
181
- } else if((order_ === 0.0)) {
182
- return ff_core_Ordering.OrderingSame()
183
- } else {
184
- return ff_core_Ordering.OrderingAfter()
185
- }
186
- }
187
-
188
- export function fromLessThan_(lessThan_) {
189
- return ((_1, _2) => {
190
- {
191
- const x_ = _1;
192
- const y_ = _2;
193
- const _guard1 = lessThan_(x_, y_);
194
- if(_guard1) {
195
- return ff_core_Ordering.OrderingBefore()
196
- return
197
- }
198
- }
199
- {
200
- const x_ = _1;
201
- const y_ = _2;
202
- const _guard1 = lessThan_(y_, x_);
203
- if(_guard1) {
204
- return ff_core_Ordering.OrderingAfter()
205
- return
206
- }
207
- }
208
- {
209
- return ff_core_Ordering.OrderingSame()
210
- return
211
- }
212
- })
213
- }
214
-
215
- export async function before_$(x_, y_, ff_core_Ordering_Order$T, $task) {
216
- return (ff_core_Ordering_Order$T.compare_(x_, y_) === ff_core_Ordering.OrderingBefore())
217
- }
218
-
219
- export async function notBefore_$(x_, y_, ff_core_Ordering_Order$T, $task) {
220
- return (ff_core_Ordering_Order$T.compare_(x_, y_) !== ff_core_Ordering.OrderingBefore())
221
- }
222
-
223
- export async function after_$(x_, y_, ff_core_Ordering_Order$T, $task) {
224
- return (ff_core_Ordering_Order$T.compare_(x_, y_) === ff_core_Ordering.OrderingAfter())
225
- }
226
-
227
- export async function notAfter_$(x_, y_, ff_core_Ordering_Order$T, $task) {
228
- return (ff_core_Ordering_Order$T.compare_(x_, y_) !== ff_core_Ordering.OrderingAfter())
229
- }
230
-
231
- export async function reverse_$(compare_, $task) {
232
- return (async (x_, y_, $task) => {
233
- {
234
- const _1 = (await compare_(x_, y_, $task));
235
- {
236
- if(_1.OrderingBefore) {
237
- return ff_core_Ordering.OrderingAfter()
238
- return
239
- }
240
- }
241
- {
242
- if(_1.OrderingSame) {
243
- return ff_core_Ordering.OrderingSame()
244
- return
245
- }
246
- }
247
- {
248
- if(_1.OrderingAfter) {
249
- return ff_core_Ordering.OrderingBefore()
250
- return
251
- }
252
- }
253
- }
254
- })
255
- }
256
-
257
- export async function pair_$(compareFirst_, compareSecond_, $task) {
258
- return (async (x_, y_, $task) => {
259
- {
260
- const _1 = (await compareFirst_(x_.first_, y_.first_, $task));
261
- {
262
- if(_1.OrderingSame) {
263
- return (await compareSecond_(x_.second_, y_.second_, $task))
264
- return
265
- }
266
- }
267
- {
268
- const ordering_ = _1;
269
- return ordering_
270
- return
271
- }
272
- }
273
- })
274
- }
275
-
276
- export async function fromInt_$(order_, $task) {
277
- if((order_ < 0)) {
278
- return ff_core_Ordering.OrderingBefore()
279
- } else if((order_ === 0)) {
280
- return ff_core_Ordering.OrderingSame()
281
- } else {
282
- return ff_core_Ordering.OrderingAfter()
283
- }
284
- }
285
-
286
- export async function fromFloat_$(order_, $task) {
287
- if((order_ < 0.0)) {
288
- return ff_core_Ordering.OrderingBefore()
289
- } else if((order_ === 0.0)) {
290
- return ff_core_Ordering.OrderingSame()
291
- } else {
292
- return ff_core_Ordering.OrderingAfter()
293
- }
294
- }
295
-
296
- export async function fromLessThan_$(lessThan_, $task) {
297
- return (async (_1, _2, $task) => {
298
- {
299
- const x_ = _1;
300
- const y_ = _2;
301
- const _guard1 = (await lessThan_(x_, y_, $task));
302
- if(_guard1) {
303
- return ff_core_Ordering.OrderingBefore()
304
- return
305
- }
306
- }
307
- {
308
- const x_ = _1;
309
- const y_ = _2;
310
- const _guard1 = (await lessThan_(y_, x_, $task));
311
- if(_guard1) {
312
- return ff_core_Ordering.OrderingAfter()
313
- return
314
- }
315
- }
316
- {
317
- return ff_core_Ordering.OrderingSame()
318
- return
319
- }
320
- })
321
- }
322
-
323
- export function Ordering_toInt(self_) {
324
- {
325
- const _1 = self_;
326
- {
327
- if(_1.OrderingBefore) {
328
- return (-1)
329
- return
330
- }
331
- }
332
- {
333
- if(_1.OrderingSame) {
334
- return 0
335
- return
336
- }
337
- }
338
- {
339
- if(_1.OrderingAfter) {
340
- return 1
341
- return
342
- }
343
- }
344
- }
345
- }
346
-
347
- export function Ordering_reverse(self_) {
348
- {
349
- const _1 = self_;
350
- {
351
- if(_1.OrderingBefore) {
352
- return ff_core_Ordering.OrderingAfter()
353
- return
354
- }
355
- }
356
- {
357
- if(_1.OrderingSame) {
358
- return ff_core_Ordering.OrderingSame()
359
- return
360
- }
361
- }
362
- {
363
- if(_1.OrderingAfter) {
364
- return ff_core_Ordering.OrderingBefore()
365
- return
366
- }
367
- }
368
- }
369
- }
370
-
371
- export async function Ordering_toInt$(self_, $task) {
372
- {
373
- const _1 = self_;
374
- {
375
- if(_1.OrderingBefore) {
376
- return (-1)
377
- return
378
- }
379
- }
380
- {
381
- if(_1.OrderingSame) {
382
- return 0
383
- return
384
- }
385
- }
386
- {
387
- if(_1.OrderingAfter) {
388
- return 1
389
- return
390
- }
391
- }
392
- }
393
- }
394
-
395
- export async function Ordering_reverse$(self_, $task) {
396
- {
397
- const _1 = self_;
398
- {
399
- if(_1.OrderingBefore) {
400
- return ff_core_Ordering.OrderingAfter()
401
- return
402
- }
403
- }
404
- {
405
- if(_1.OrderingSame) {
406
- return ff_core_Ordering.OrderingSame()
407
- return
408
- }
409
- }
410
- {
411
- if(_1.OrderingAfter) {
412
- return ff_core_Ordering.OrderingBefore()
413
- return
414
- }
415
- }
416
- }
417
- }
418
-
419
- export const ff_core_Ordering_Order$ff_core_Nothing_Nothing = {
420
- compare_(x_, y_) {
421
- return ff_core_Ordering.OrderingSame()
422
- },
423
- async compare_$(x_, y_, $task) {
424
- return ff_core_Ordering.OrderingSame()
425
- }
426
- };
427
-
428
- export const ff_core_Ordering_Order$ff_core_Bool_Bool = {
429
- compare_(x_, y_) {
430
- {
431
- const x_a = x_;
432
- const y_a = y_;
433
- {
434
- if(!x_a) {
435
- if(y_a) {
436
- return ff_core_Ordering.OrderingBefore()
437
- return
438
- }
439
- }
440
- }
441
- {
442
- if(x_a) {
443
- if(!y_a) {
444
- return ff_core_Ordering.OrderingAfter()
445
- return
446
- }
447
- }
448
- }
449
- {
450
- return ff_core_Ordering.OrderingSame()
451
- return
452
- }
453
- }
454
- },
455
- async compare_$(x_, y_, $task) {
456
- {
457
- const x_a = x_;
458
- const y_a = y_;
459
- {
460
- if(!x_a) {
461
- if(y_a) {
462
- return ff_core_Ordering.OrderingBefore()
463
- return
464
- }
465
- }
466
- }
467
- {
468
- if(x_a) {
469
- if(!y_a) {
470
- return ff_core_Ordering.OrderingAfter()
471
- return
472
- }
473
- }
474
- }
475
- {
476
- return ff_core_Ordering.OrderingSame()
477
- return
478
- }
479
- }
480
- }
481
- };
482
-
483
- export const ff_core_Ordering_Order$ff_core_Char_Char = {
484
- compare_(x_, y_) {
485
- return ff_core_Ordering.fromInt_((x_ - y_))
486
- },
487
- async compare_$(x_, y_, $task) {
488
- return ff_core_Ordering.fromInt_((x_ - y_))
489
- }
490
- };
491
-
492
- export const ff_core_Ordering_Order$ff_core_Int_Int = {
493
- compare_(x_, y_) {
494
- return ff_core_Ordering.fromInt_((x_ - y_))
495
- },
496
- async compare_$(x_, y_, $task) {
497
- return ff_core_Ordering.fromInt_((x_ - y_))
498
- }
499
- };
500
-
501
- export const ff_core_Ordering_Order$ff_core_Float_Float = {
502
- compare_(x_, y_) {
503
- return ff_core_Ordering.fromFloat_((x_ - y_))
504
- },
505
- async compare_$(x_, y_, $task) {
506
- return ff_core_Ordering.fromFloat_((x_ - y_))
507
- }
508
- };
509
-
510
- export const ff_core_Ordering_Order$ff_core_String_String = {
511
- compare_(x_, y_) {
1
+
2
+
3
+ import * as ff_core_Any from "../../ff/core/Any.mjs"
4
+
5
+ import * as ff_core_Array from "../../ff/core/Array.mjs"
6
+
7
+ import * as ff_core_AssetSystem from "../../ff/core/AssetSystem.mjs"
8
+
9
+ import * as ff_core_Atomic from "../../ff/core/Atomic.mjs"
10
+
11
+ import * as ff_core_Bool from "../../ff/core/Bool.mjs"
12
+
13
+ import * as ff_core_Box from "../../ff/core/Box.mjs"
14
+
15
+ import * as ff_core_BrowserSystem from "../../ff/core/BrowserSystem.mjs"
16
+
17
+ import * as ff_core_Buffer from "../../ff/core/Buffer.mjs"
18
+
19
+ import * as ff_core_BuildSystem from "../../ff/core/BuildSystem.mjs"
20
+
21
+ import * as ff_core_Channel from "../../ff/core/Channel.mjs"
22
+
23
+ import * as ff_core_Char from "../../ff/core/Char.mjs"
24
+
25
+ import * as ff_core_Core from "../../ff/core/Core.mjs"
26
+
27
+ import * as ff_core_Duration from "../../ff/core/Duration.mjs"
28
+
29
+ import * as ff_core_Equal from "../../ff/core/Equal.mjs"
30
+
31
+ import * as ff_core_Error from "../../ff/core/Error.mjs"
32
+
33
+ import * as ff_core_FileHandle from "../../ff/core/FileHandle.mjs"
34
+
35
+ import * as ff_core_Float from "../../ff/core/Float.mjs"
36
+
37
+ import * as ff_core_HttpClient from "../../ff/core/HttpClient.mjs"
38
+
39
+ import * as ff_core_Instant from "../../ff/core/Instant.mjs"
40
+
41
+ import * as ff_core_Int from "../../ff/core/Int.mjs"
42
+
43
+ import * as ff_core_IntMap from "../../ff/core/IntMap.mjs"
44
+
45
+ import * as ff_core_JsSystem from "../../ff/core/JsSystem.mjs"
46
+
47
+ import * as ff_core_JsValue from "../../ff/core/JsValue.mjs"
48
+
49
+ import * as ff_core_List from "../../ff/core/List.mjs"
50
+
51
+ import * as ff_core_Lock from "../../ff/core/Lock.mjs"
52
+
53
+ import * as ff_core_Log from "../../ff/core/Log.mjs"
54
+
55
+ import * as ff_core_Map from "../../ff/core/Map.mjs"
56
+
57
+ import * as ff_core_NodeSystem from "../../ff/core/NodeSystem.mjs"
58
+
59
+ import * as ff_core_Nothing from "../../ff/core/Nothing.mjs"
60
+
61
+ import * as ff_core_Option from "../../ff/core/Option.mjs"
62
+
63
+ import * as ff_core_Ordering from "../../ff/core/Ordering.mjs"
64
+
65
+ import * as ff_core_Pair from "../../ff/core/Pair.mjs"
66
+
67
+ import * as ff_core_Path from "../../ff/core/Path.mjs"
68
+
69
+ import * as ff_core_Random from "../../ff/core/Random.mjs"
70
+
71
+ import * as ff_core_Serializable from "../../ff/core/Serializable.mjs"
72
+
73
+ import * as ff_core_Set from "../../ff/core/Set.mjs"
74
+
75
+ import * as ff_core_Show from "../../ff/core/Show.mjs"
76
+
77
+ import * as ff_core_SourceLocation from "../../ff/core/SourceLocation.mjs"
78
+
79
+ import * as ff_core_Stack from "../../ff/core/Stack.mjs"
80
+
81
+ import * as ff_core_Stream from "../../ff/core/Stream.mjs"
82
+
83
+ import * as ff_core_String from "../../ff/core/String.mjs"
84
+
85
+ import * as ff_core_StringMap from "../../ff/core/StringMap.mjs"
86
+
87
+ import * as ff_core_Task from "../../ff/core/Task.mjs"
88
+
89
+ import * as ff_core_Try from "../../ff/core/Try.mjs"
90
+
91
+ import * as ff_core_Unit from "../../ff/core/Unit.mjs"
92
+
93
+ import * as ff_core_WebSocket from "../../ff/core/WebSocket.mjs"
94
+
95
+ // type Ordering
96
+ const OrderingBefore$ = {OrderingBefore: true};
97
+ export function OrderingBefore() {
98
+ return OrderingBefore$;
99
+ }
100
+ const OrderingSame$ = {OrderingSame: true};
101
+ export function OrderingSame() {
102
+ return OrderingSame$;
103
+ }
104
+ const OrderingAfter$ = {OrderingAfter: true};
105
+ export function OrderingAfter() {
106
+ return OrderingAfter$;
107
+ }
108
+
109
+
110
+
111
+ export function before_(x_, y_, ff_core_Ordering_Order$T) {
112
+ return (ff_core_Ordering_Order$T.compare_(x_, y_) === ff_core_Ordering.OrderingBefore())
113
+ }
114
+
115
+ export function notBefore_(x_, y_, ff_core_Ordering_Order$T) {
116
+ return (ff_core_Ordering_Order$T.compare_(x_, y_) !== ff_core_Ordering.OrderingBefore())
117
+ }
118
+
119
+ export function after_(x_, y_, ff_core_Ordering_Order$T) {
120
+ return (ff_core_Ordering_Order$T.compare_(x_, y_) === ff_core_Ordering.OrderingAfter())
121
+ }
122
+
123
+ export function notAfter_(x_, y_, ff_core_Ordering_Order$T) {
124
+ return (ff_core_Ordering_Order$T.compare_(x_, y_) !== ff_core_Ordering.OrderingAfter())
125
+ }
126
+
127
+ export function reverse_(compare_) {
128
+ return ((x_, y_) => {
129
+ {
130
+ const _1 = compare_(x_, y_);
131
+ {
132
+ if(_1.OrderingBefore) {
133
+ return ff_core_Ordering.OrderingAfter()
134
+ return
135
+ }
136
+ }
137
+ {
138
+ if(_1.OrderingSame) {
139
+ return ff_core_Ordering.OrderingSame()
140
+ return
141
+ }
142
+ }
143
+ {
144
+ if(_1.OrderingAfter) {
145
+ return ff_core_Ordering.OrderingBefore()
146
+ return
147
+ }
148
+ }
149
+ }
150
+ })
151
+ }
152
+
153
+ export function pair_(compareFirst_, compareSecond_) {
154
+ return ((x_, y_) => {
155
+ {
156
+ const _1 = compareFirst_(x_.first_, y_.first_);
157
+ {
158
+ if(_1.OrderingSame) {
159
+ return compareSecond_(x_.second_, y_.second_)
160
+ return
161
+ }
162
+ }
163
+ {
164
+ const ordering_ = _1;
165
+ return ordering_
166
+ return
167
+ }
168
+ }
169
+ })
170
+ }
171
+
172
+ export function fromInt_(order_) {
173
+ if((order_ < 0)) {
174
+ return ff_core_Ordering.OrderingBefore()
175
+ } else if((order_ === 0)) {
176
+ return ff_core_Ordering.OrderingSame()
177
+ } else {
178
+ return ff_core_Ordering.OrderingAfter()
179
+ }
180
+ }
181
+
182
+ export function fromFloat_(order_) {
183
+ if((order_ < 0.0)) {
184
+ return ff_core_Ordering.OrderingBefore()
185
+ } else if((order_ === 0.0)) {
186
+ return ff_core_Ordering.OrderingSame()
187
+ } else {
188
+ return ff_core_Ordering.OrderingAfter()
189
+ }
190
+ }
191
+
192
+ export function fromLessThan_(lessThan_) {
193
+ return ((_1, _2) => {
194
+ {
195
+ const x_ = _1;
196
+ const y_ = _2;
197
+ const _guard1 = lessThan_(x_, y_);
198
+ if(_guard1) {
199
+ return ff_core_Ordering.OrderingBefore()
200
+ return
201
+ }
202
+ }
203
+ {
204
+ const x_ = _1;
205
+ const y_ = _2;
206
+ const _guard1 = lessThan_(y_, x_);
207
+ if(_guard1) {
208
+ return ff_core_Ordering.OrderingAfter()
209
+ return
210
+ }
211
+ }
212
+ {
213
+ return ff_core_Ordering.OrderingSame()
214
+ return
215
+ }
216
+ })
217
+ }
218
+
219
+ export async function before_$(x_, y_, ff_core_Ordering_Order$T, $task) {
220
+ return (ff_core_Ordering_Order$T.compare_(x_, y_) === ff_core_Ordering.OrderingBefore())
221
+ }
222
+
223
+ export async function notBefore_$(x_, y_, ff_core_Ordering_Order$T, $task) {
224
+ return (ff_core_Ordering_Order$T.compare_(x_, y_) !== ff_core_Ordering.OrderingBefore())
225
+ }
226
+
227
+ export async function after_$(x_, y_, ff_core_Ordering_Order$T, $task) {
228
+ return (ff_core_Ordering_Order$T.compare_(x_, y_) === ff_core_Ordering.OrderingAfter())
229
+ }
230
+
231
+ export async function notAfter_$(x_, y_, ff_core_Ordering_Order$T, $task) {
232
+ return (ff_core_Ordering_Order$T.compare_(x_, y_) !== ff_core_Ordering.OrderingAfter())
233
+ }
234
+
235
+ export async function reverse_$(compare_, $task) {
236
+ return (async (x_, y_, $task) => {
237
+ {
238
+ const _1 = (await compare_(x_, y_, $task));
239
+ {
240
+ if(_1.OrderingBefore) {
241
+ return ff_core_Ordering.OrderingAfter()
242
+ return
243
+ }
244
+ }
245
+ {
246
+ if(_1.OrderingSame) {
247
+ return ff_core_Ordering.OrderingSame()
248
+ return
249
+ }
250
+ }
251
+ {
252
+ if(_1.OrderingAfter) {
253
+ return ff_core_Ordering.OrderingBefore()
254
+ return
255
+ }
256
+ }
257
+ }
258
+ })
259
+ }
260
+
261
+ export async function pair_$(compareFirst_, compareSecond_, $task) {
262
+ return (async (x_, y_, $task) => {
263
+ {
264
+ const _1 = (await compareFirst_(x_.first_, y_.first_, $task));
265
+ {
266
+ if(_1.OrderingSame) {
267
+ return (await compareSecond_(x_.second_, y_.second_, $task))
268
+ return
269
+ }
270
+ }
271
+ {
272
+ const ordering_ = _1;
273
+ return ordering_
274
+ return
275
+ }
276
+ }
277
+ })
278
+ }
279
+
280
+ export async function fromInt_$(order_, $task) {
281
+ if((order_ < 0)) {
282
+ return ff_core_Ordering.OrderingBefore()
283
+ } else if((order_ === 0)) {
284
+ return ff_core_Ordering.OrderingSame()
285
+ } else {
286
+ return ff_core_Ordering.OrderingAfter()
287
+ }
288
+ }
289
+
290
+ export async function fromFloat_$(order_, $task) {
291
+ if((order_ < 0.0)) {
292
+ return ff_core_Ordering.OrderingBefore()
293
+ } else if((order_ === 0.0)) {
294
+ return ff_core_Ordering.OrderingSame()
295
+ } else {
296
+ return ff_core_Ordering.OrderingAfter()
297
+ }
298
+ }
299
+
300
+ export async function fromLessThan_$(lessThan_, $task) {
301
+ return (async (_1, _2, $task) => {
302
+ {
303
+ const x_ = _1;
304
+ const y_ = _2;
305
+ const _guard1 = (await lessThan_(x_, y_, $task));
306
+ if(_guard1) {
307
+ return ff_core_Ordering.OrderingBefore()
308
+ return
309
+ }
310
+ }
311
+ {
312
+ const x_ = _1;
313
+ const y_ = _2;
314
+ const _guard1 = (await lessThan_(y_, x_, $task));
315
+ if(_guard1) {
316
+ return ff_core_Ordering.OrderingAfter()
317
+ return
318
+ }
319
+ }
320
+ {
321
+ return ff_core_Ordering.OrderingSame()
322
+ return
323
+ }
324
+ })
325
+ }
326
+
327
+ export function Ordering_toInt(self_) {
328
+ {
329
+ const _1 = self_;
330
+ {
331
+ if(_1.OrderingBefore) {
332
+ return (-1)
333
+ return
334
+ }
335
+ }
336
+ {
337
+ if(_1.OrderingSame) {
338
+ return 0
339
+ return
340
+ }
341
+ }
342
+ {
343
+ if(_1.OrderingAfter) {
344
+ return 1
345
+ return
346
+ }
347
+ }
348
+ }
349
+ }
350
+
351
+ export function Ordering_reverse(self_) {
352
+ {
353
+ const _1 = self_;
354
+ {
355
+ if(_1.OrderingBefore) {
356
+ return ff_core_Ordering.OrderingAfter()
357
+ return
358
+ }
359
+ }
360
+ {
361
+ if(_1.OrderingSame) {
362
+ return ff_core_Ordering.OrderingSame()
363
+ return
364
+ }
365
+ }
366
+ {
367
+ if(_1.OrderingAfter) {
368
+ return ff_core_Ordering.OrderingBefore()
369
+ return
370
+ }
371
+ }
372
+ }
373
+ }
374
+
375
+ export async function Ordering_toInt$(self_, $task) {
376
+ {
377
+ const _1 = self_;
378
+ {
379
+ if(_1.OrderingBefore) {
380
+ return (-1)
381
+ return
382
+ }
383
+ }
384
+ {
385
+ if(_1.OrderingSame) {
386
+ return 0
387
+ return
388
+ }
389
+ }
390
+ {
391
+ if(_1.OrderingAfter) {
392
+ return 1
393
+ return
394
+ }
395
+ }
396
+ }
397
+ }
398
+
399
+ export async function Ordering_reverse$(self_, $task) {
400
+ {
401
+ const _1 = self_;
402
+ {
403
+ if(_1.OrderingBefore) {
404
+ return ff_core_Ordering.OrderingAfter()
405
+ return
406
+ }
407
+ }
408
+ {
409
+ if(_1.OrderingSame) {
410
+ return ff_core_Ordering.OrderingSame()
411
+ return
412
+ }
413
+ }
414
+ {
415
+ if(_1.OrderingAfter) {
416
+ return ff_core_Ordering.OrderingBefore()
417
+ return
418
+ }
419
+ }
420
+ }
421
+ }
422
+
423
+ export const ff_core_Ordering_Order$ff_core_Nothing_Nothing = {
424
+ compare_(x_, y_) {
425
+ return ff_core_Ordering.OrderingSame()
426
+ },
427
+ async compare_$(x_, y_, $task) {
428
+ return ff_core_Ordering.OrderingSame()
429
+ }
430
+ };
431
+
432
+ export const ff_core_Ordering_Order$ff_core_Bool_Bool = {
433
+ compare_(x_, y_) {
434
+ {
435
+ const x_a = x_;
436
+ const y_a = y_;
437
+ {
438
+ if(!x_a) {
439
+ if(y_a) {
440
+ return ff_core_Ordering.OrderingBefore()
441
+ return
442
+ }
443
+ }
444
+ }
445
+ {
446
+ if(x_a) {
447
+ if(!y_a) {
448
+ return ff_core_Ordering.OrderingAfter()
449
+ return
450
+ }
451
+ }
452
+ }
453
+ {
454
+ return ff_core_Ordering.OrderingSame()
455
+ return
456
+ }
457
+ }
458
+ },
459
+ async compare_$(x_, y_, $task) {
460
+ {
461
+ const x_a = x_;
462
+ const y_a = y_;
463
+ {
464
+ if(!x_a) {
465
+ if(y_a) {
466
+ return ff_core_Ordering.OrderingBefore()
467
+ return
468
+ }
469
+ }
470
+ }
471
+ {
472
+ if(x_a) {
473
+ if(!y_a) {
474
+ return ff_core_Ordering.OrderingAfter()
475
+ return
476
+ }
477
+ }
478
+ }
479
+ {
480
+ return ff_core_Ordering.OrderingSame()
481
+ return
482
+ }
483
+ }
484
+ }
485
+ };
486
+
487
+ export const ff_core_Ordering_Order$ff_core_Char_Char = {
488
+ compare_(x_, y_) {
489
+ return ff_core_Ordering.fromInt_((x_ - y_))
490
+ },
491
+ async compare_$(x_, y_, $task) {
492
+ return ff_core_Ordering.fromInt_((x_ - y_))
493
+ }
494
+ };
495
+
496
+ export const ff_core_Ordering_Order$ff_core_Int_Int = {
497
+ compare_(x_, y_) {
498
+ return ff_core_Ordering.fromInt_((x_ - y_))
499
+ },
500
+ async compare_$(x_, y_, $task) {
501
+ return ff_core_Ordering.fromInt_((x_ - y_))
502
+ }
503
+ };
504
+
505
+ export const ff_core_Ordering_Order$ff_core_Float_Float = {
506
+ compare_(x_, y_) {
507
+ return ff_core_Ordering.fromFloat_((x_ - y_))
508
+ },
509
+ async compare_$(x_, y_, $task) {
510
+ return ff_core_Ordering.fromFloat_((x_ - y_))
511
+ }
512
+ };
513
+
514
+ export const ff_core_Ordering_Order$ff_core_String_String = {
515
+ compare_(x_, y_) {
512
516
 
513
517
  if(x_ < y_) {
514
518
  return ff_core_Ordering.OrderingBefore()
@@ -517,222 +521,222 @@ compare_(x_, y_) {
517
521
  } else {
518
522
  return ff_core_Ordering.OrderingSame()
519
523
  }
520
-
521
- },
522
- async compare_$(x_, y_, $task) {
523
- throw new Error('Function compare is missing on this target in async context.');
524
- }
525
- };
526
-
527
- export function ff_core_Ordering_Order$ff_core_Pair_Pair(ff_core_Ordering_Order$A, ff_core_Ordering_Order$B) { return {
528
- compare_(x_, y_) {
529
- {
530
- const _1 = ff_core_Ordering_Order$A.compare_(x_.first_, y_.first_);
531
- {
532
- if(_1.OrderingSame) {
533
- return ff_core_Ordering_Order$B.compare_(x_.second_, y_.second_)
534
- return
535
- }
536
- }
537
- {
538
- const o_ = _1;
539
- return o_
540
- return
541
- }
542
- }
543
- },
544
- async compare_$(x_, y_, $task) {
545
- {
546
- const _1 = ff_core_Ordering_Order$A.compare_(x_.first_, y_.first_);
547
- {
548
- if(_1.OrderingSame) {
549
- return ff_core_Ordering_Order$B.compare_(x_.second_, y_.second_)
550
- return
551
- }
552
- }
553
- {
554
- const o_ = _1;
555
- return o_
556
- return
557
- }
558
- }
559
- }
560
- }}
561
-
562
- export function ff_core_Ordering_Order$ff_core_List_List(ff_core_Ordering_Order$T) { return {
563
- compare_(x_, y_) {
564
- {
565
- const x_a = x_;
566
- const y_a = y_;
567
- {
568
- if(x_a.Empty) {
569
- if(y_a.Empty) {
570
- return ff_core_Ordering.OrderingSame()
571
- return
572
- }
573
- }
574
- }
575
- {
576
- if(x_a.Empty) {
577
- return ff_core_Ordering.OrderingBefore()
578
- return
579
- }
580
- }
581
- {
582
- if(y_a.Empty) {
583
- return ff_core_Ordering.OrderingAfter()
584
- return
585
- }
586
- }
587
- {
588
- if(x_a.Link) {
589
- const a_ = x_a.head_;
590
- const as_ = x_a.tail_;
591
- if(y_a.Link) {
592
- const b_ = y_a.head_;
593
- const bs_ = y_a.tail_;
594
- {
595
- const _1 = ff_core_Ordering_Order$T.compare_(a_, b_);
596
- {
597
- if(_1.OrderingSame) {
598
- return ff_core_Ordering.ff_core_Ordering_Order$ff_core_List_List(ff_core_Ordering_Order$T).compare_(as_, bs_)
599
- return
600
- }
601
- }
602
- {
603
- const o_ = _1;
604
- return o_
605
- return
606
- }
607
- }
608
- return
609
- }
610
- }
611
- }
612
- }
613
- },
614
- async compare_$(x_, y_, $task) {
615
- {
616
- const x_a = x_;
617
- const y_a = y_;
618
- {
619
- if(x_a.Empty) {
620
- if(y_a.Empty) {
621
- return ff_core_Ordering.OrderingSame()
622
- return
623
- }
624
- }
625
- }
626
- {
627
- if(x_a.Empty) {
628
- return ff_core_Ordering.OrderingBefore()
629
- return
630
- }
631
- }
632
- {
633
- if(y_a.Empty) {
634
- return ff_core_Ordering.OrderingAfter()
635
- return
636
- }
637
- }
638
- {
639
- if(x_a.Link) {
640
- const a_ = x_a.head_;
641
- const as_ = x_a.tail_;
642
- if(y_a.Link) {
643
- const b_ = y_a.head_;
644
- const bs_ = y_a.tail_;
645
- {
646
- const _1 = ff_core_Ordering_Order$T.compare_(a_, b_);
647
- {
648
- if(_1.OrderingSame) {
649
- return ff_core_Ordering.ff_core_Ordering_Order$ff_core_List_List(ff_core_Ordering_Order$T).compare_(as_, bs_)
650
- return
651
- }
652
- }
653
- {
654
- const o_ = _1;
655
- return o_
656
- return
657
- }
658
- }
659
- return
660
- }
661
- }
662
- }
663
- }
664
- }
665
- }}
666
-
667
- export const ff_core_Equal_Equal$ff_core_Ordering_Ordering = {
668
- equals_(x_, y_) {
669
- {
670
- const x_a = x_;
671
- const y_a = y_;
672
- {
673
- if(x_a.OrderingBefore) {
674
- if(y_a.OrderingBefore) {
675
- return true
676
- return
677
- }
678
- }
679
- }
680
- {
681
- if(x_a.OrderingSame) {
682
- if(y_a.OrderingSame) {
683
- return true
684
- return
685
- }
686
- }
687
- }
688
- {
689
- if(x_a.OrderingAfter) {
690
- if(y_a.OrderingAfter) {
691
- return true
692
- return
693
- }
694
- }
695
- }
696
- {
697
- return false
698
- return
699
- }
700
- }
701
- },
702
- async equals_$(x_, y_, $task) {
703
- {
704
- const x_a = x_;
705
- const y_a = y_;
706
- {
707
- if(x_a.OrderingBefore) {
708
- if(y_a.OrderingBefore) {
709
- return true
710
- return
711
- }
712
- }
713
- }
714
- {
715
- if(x_a.OrderingSame) {
716
- if(y_a.OrderingSame) {
717
- return true
718
- return
719
- }
720
- }
721
- }
722
- {
723
- if(x_a.OrderingAfter) {
724
- if(y_a.OrderingAfter) {
725
- return true
726
- return
727
- }
728
- }
729
- }
730
- {
731
- return false
732
- return
733
- }
734
- }
735
- }
736
- };
737
-
738
-
524
+
525
+ },
526
+ async compare_$(x_, y_, $task) {
527
+ throw new Error('Function compare is missing on this target in async context.');
528
+ }
529
+ };
530
+
531
+ export function ff_core_Ordering_Order$ff_core_Pair_Pair(ff_core_Ordering_Order$A, ff_core_Ordering_Order$B) { return {
532
+ compare_(x_, y_) {
533
+ {
534
+ const _1 = ff_core_Ordering_Order$A.compare_(x_.first_, y_.first_);
535
+ {
536
+ if(_1.OrderingSame) {
537
+ return ff_core_Ordering_Order$B.compare_(x_.second_, y_.second_)
538
+ return
539
+ }
540
+ }
541
+ {
542
+ const o_ = _1;
543
+ return o_
544
+ return
545
+ }
546
+ }
547
+ },
548
+ async compare_$(x_, y_, $task) {
549
+ {
550
+ const _1 = ff_core_Ordering_Order$A.compare_(x_.first_, y_.first_);
551
+ {
552
+ if(_1.OrderingSame) {
553
+ return ff_core_Ordering_Order$B.compare_(x_.second_, y_.second_)
554
+ return
555
+ }
556
+ }
557
+ {
558
+ const o_ = _1;
559
+ return o_
560
+ return
561
+ }
562
+ }
563
+ }
564
+ }}
565
+
566
+ export function ff_core_Ordering_Order$ff_core_List_List(ff_core_Ordering_Order$T) { return {
567
+ compare_(x_, y_) {
568
+ {
569
+ const x_a = x_;
570
+ const y_a = y_;
571
+ {
572
+ if(x_a.Empty) {
573
+ if(y_a.Empty) {
574
+ return ff_core_Ordering.OrderingSame()
575
+ return
576
+ }
577
+ }
578
+ }
579
+ {
580
+ if(x_a.Empty) {
581
+ return ff_core_Ordering.OrderingBefore()
582
+ return
583
+ }
584
+ }
585
+ {
586
+ if(y_a.Empty) {
587
+ return ff_core_Ordering.OrderingAfter()
588
+ return
589
+ }
590
+ }
591
+ {
592
+ if(x_a.Link) {
593
+ const a_ = x_a.head_;
594
+ const as_ = x_a.tail_;
595
+ if(y_a.Link) {
596
+ const b_ = y_a.head_;
597
+ const bs_ = y_a.tail_;
598
+ {
599
+ const _1 = ff_core_Ordering_Order$T.compare_(a_, b_);
600
+ {
601
+ if(_1.OrderingSame) {
602
+ return ff_core_Ordering.ff_core_Ordering_Order$ff_core_List_List(ff_core_Ordering_Order$T).compare_(as_, bs_)
603
+ return
604
+ }
605
+ }
606
+ {
607
+ const o_ = _1;
608
+ return o_
609
+ return
610
+ }
611
+ }
612
+ return
613
+ }
614
+ }
615
+ }
616
+ }
617
+ },
618
+ async compare_$(x_, y_, $task) {
619
+ {
620
+ const x_a = x_;
621
+ const y_a = y_;
622
+ {
623
+ if(x_a.Empty) {
624
+ if(y_a.Empty) {
625
+ return ff_core_Ordering.OrderingSame()
626
+ return
627
+ }
628
+ }
629
+ }
630
+ {
631
+ if(x_a.Empty) {
632
+ return ff_core_Ordering.OrderingBefore()
633
+ return
634
+ }
635
+ }
636
+ {
637
+ if(y_a.Empty) {
638
+ return ff_core_Ordering.OrderingAfter()
639
+ return
640
+ }
641
+ }
642
+ {
643
+ if(x_a.Link) {
644
+ const a_ = x_a.head_;
645
+ const as_ = x_a.tail_;
646
+ if(y_a.Link) {
647
+ const b_ = y_a.head_;
648
+ const bs_ = y_a.tail_;
649
+ {
650
+ const _1 = ff_core_Ordering_Order$T.compare_(a_, b_);
651
+ {
652
+ if(_1.OrderingSame) {
653
+ return ff_core_Ordering.ff_core_Ordering_Order$ff_core_List_List(ff_core_Ordering_Order$T).compare_(as_, bs_)
654
+ return
655
+ }
656
+ }
657
+ {
658
+ const o_ = _1;
659
+ return o_
660
+ return
661
+ }
662
+ }
663
+ return
664
+ }
665
+ }
666
+ }
667
+ }
668
+ }
669
+ }}
670
+
671
+ export const ff_core_Equal_Equal$ff_core_Ordering_Ordering = {
672
+ equals_(x_, y_) {
673
+ {
674
+ const x_a = x_;
675
+ const y_a = y_;
676
+ {
677
+ if(x_a.OrderingBefore) {
678
+ if(y_a.OrderingBefore) {
679
+ return true
680
+ return
681
+ }
682
+ }
683
+ }
684
+ {
685
+ if(x_a.OrderingSame) {
686
+ if(y_a.OrderingSame) {
687
+ return true
688
+ return
689
+ }
690
+ }
691
+ }
692
+ {
693
+ if(x_a.OrderingAfter) {
694
+ if(y_a.OrderingAfter) {
695
+ return true
696
+ return
697
+ }
698
+ }
699
+ }
700
+ {
701
+ return false
702
+ return
703
+ }
704
+ }
705
+ },
706
+ async equals_$(x_, y_, $task) {
707
+ {
708
+ const x_a = x_;
709
+ const y_a = y_;
710
+ {
711
+ if(x_a.OrderingBefore) {
712
+ if(y_a.OrderingBefore) {
713
+ return true
714
+ return
715
+ }
716
+ }
717
+ }
718
+ {
719
+ if(x_a.OrderingSame) {
720
+ if(y_a.OrderingSame) {
721
+ return true
722
+ return
723
+ }
724
+ }
725
+ }
726
+ {
727
+ if(x_a.OrderingAfter) {
728
+ if(y_a.OrderingAfter) {
729
+ return true
730
+ return
731
+ }
732
+ }
733
+ }
734
+ {
735
+ return false
736
+ return
737
+ }
738
+ }
739
+ }
740
+ };
741
+
742
+