firefly-compiler 0.4.5 → 0.4.6

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 (78) hide show
  1. package/.hintrc +4 -4
  2. package/README.md +1 -1
  3. package/core/HttpClient.ff +1 -1
  4. package/lsp/LanguageServer.ff +32 -7
  5. package/lsp/stderr.txt +1 -0
  6. package/lsp/stdin.txt +11 -0
  7. package/lsp/stdout.txt +41 -0
  8. package/lux/Main.ff +56 -2
  9. package/meetup/AutoCompletion.ff +6 -0
  10. package/output/js/ff/compiler/Builder.mjs +444 -444
  11. package/output/js/ff/compiler/Compiler.mjs +416 -416
  12. package/output/js/ff/compiler/Dependencies.mjs +389 -389
  13. package/output/js/ff/compiler/Deriver.mjs +1170 -1170
  14. package/output/js/ff/compiler/Dictionaries.mjs +1309 -1309
  15. package/output/js/ff/compiler/Environment.mjs +1015 -1015
  16. package/output/js/ff/compiler/Inference.mjs +4268 -4268
  17. package/output/js/ff/compiler/JsEmitter.mjs +5391 -5391
  18. package/output/js/ff/compiler/JsImporter.mjs +266 -266
  19. package/output/js/ff/compiler/LspHook.mjs +793 -793
  20. package/output/js/ff/compiler/Main.mjs +1675 -1675
  21. package/output/js/ff/compiler/Parser.mjs +4008 -4008
  22. package/output/js/ff/compiler/Patterns.mjs +927 -927
  23. package/output/js/ff/compiler/Resolver.mjs +2307 -2307
  24. package/output/js/ff/compiler/Substitution.mjs +1150 -1150
  25. package/output/js/ff/compiler/Syntax.mjs +12434 -12434
  26. package/output/js/ff/compiler/Token.mjs +3096 -3096
  27. package/output/js/ff/compiler/Tokenizer.mjs +593 -593
  28. package/output/js/ff/compiler/Unification.mjs +1752 -1752
  29. package/output/js/ff/compiler/Wildcards.mjs +608 -608
  30. package/output/js/ff/compiler/Workspace.mjs +687 -687
  31. package/output/js/ff/core/Any.mjs +143 -143
  32. package/output/js/ff/core/Array.mjs +547 -547
  33. package/output/js/ff/core/AssetSystem.mjs +274 -274
  34. package/output/js/ff/core/Atomic.mjs +154 -154
  35. package/output/js/ff/core/Bool.mjs +152 -152
  36. package/output/js/ff/core/Box.mjs +112 -112
  37. package/output/js/ff/core/BrowserSystem.mjs +126 -126
  38. package/output/js/ff/core/Buffer.mjs +395 -395
  39. package/output/js/ff/core/BuildSystem.mjs +296 -296
  40. package/output/js/ff/core/Channel.mjs +189 -189
  41. package/output/js/ff/core/Char.mjs +149 -149
  42. package/output/js/ff/core/Core.mjs +300 -300
  43. package/output/js/ff/core/Duration.mjs +116 -116
  44. package/output/js/ff/core/Equal.mjs +179 -179
  45. package/output/js/ff/core/Error.mjs +142 -142
  46. package/output/js/ff/core/FileHandle.mjs +150 -150
  47. package/output/js/ff/core/Float.mjs +225 -225
  48. package/output/js/ff/core/HttpClient.mjs +190 -190
  49. package/output/js/ff/core/Instant.mjs +109 -109
  50. package/output/js/ff/core/Int.mjs +265 -265
  51. package/output/js/ff/core/IntMap.mjs +280 -280
  52. package/output/js/ff/core/JsSystem.mjs +238 -238
  53. package/output/js/ff/core/JsValue.mjs +708 -708
  54. package/output/js/ff/core/List.mjs +2334 -2334
  55. package/output/js/ff/core/Lock.mjs +229 -229
  56. package/output/js/ff/core/Log.mjs +163 -163
  57. package/output/js/ff/core/Map.mjs +362 -362
  58. package/output/js/ff/core/NodeSystem.mjs +294 -294
  59. package/output/js/ff/core/Nothing.mjs +104 -104
  60. package/output/js/ff/core/Option.mjs +1015 -1015
  61. package/output/js/ff/core/Ordering.mjs +730 -730
  62. package/output/js/ff/core/Pair.mjs +331 -331
  63. package/output/js/ff/core/Path.mjs +545 -545
  64. package/output/js/ff/core/RbMap.mjs +1940 -1940
  65. package/output/js/ff/core/Serializable.mjs +428 -428
  66. package/output/js/ff/core/Set.mjs +254 -254
  67. package/output/js/ff/core/Show.mjs +205 -205
  68. package/output/js/ff/core/SourceLocation.mjs +229 -229
  69. package/output/js/ff/core/Stack.mjs +529 -529
  70. package/output/js/ff/core/Stream.mjs +1304 -1304
  71. package/output/js/ff/core/String.mjs +365 -365
  72. package/output/js/ff/core/StringMap.mjs +280 -280
  73. package/output/js/ff/core/Task.mjs +320 -320
  74. package/output/js/ff/core/Try.mjs +507 -507
  75. package/output/js/ff/core/Unit.mjs +151 -151
  76. package/package.json +29 -29
  77. package/vscode/package-lock.json +5 -5
  78. package/vscode/package.json +1 -1
@@ -1,254 +1,254 @@
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
- // newtype Set
92
-
93
-
94
-
95
- export function empty_() {
96
- return ff_core_Map.empty_()
97
- }
98
-
99
- export async function empty_$($task) {
100
- return ff_core_Map.empty_()
101
- }
102
-
103
- export function Set_add(self_, value_, ff_core_Ordering_Order$T) {
104
- return ff_core_Map.Map_add(self_, value_, (void 0), ff_core_Ordering_Order$T)
105
- }
106
-
107
- export function Set_addAll(self_, that_, ff_core_Ordering_Order$T) {
108
- return ff_core_Map.Map_addAll(self_, that_, ff_core_Ordering_Order$T)
109
- }
110
-
111
- export function Set_remove(self_, value_, ff_core_Ordering_Order$T) {
112
- return ff_core_Map.Map_remove(self_, value_, ff_core_Ordering_Order$T)
113
- }
114
-
115
- export function Set_removeAll(self_, that_, ff_core_Ordering_Order$T) {
116
- return ff_core_Map.Map_removeAll(self_, that_, ff_core_Ordering_Order$T)
117
- }
118
-
119
- export function Set_contains(self_, value_, ff_core_Ordering_Order$T) {
120
- return ff_core_Map.Map_contains(self_, value_, ff_core_Ordering_Order$T)
121
- }
122
-
123
- export function Set_size(self_, ff_core_Ordering_Order$T) {
124
- return ff_core_Map.Map_size(self_, ff_core_Ordering_Order$T)
125
- }
126
-
127
- export function Set_toList(self_, ff_core_Ordering_Order$T) {
128
- return ff_core_List.List_map(ff_core_Map.Map_toList(self_, ff_core_Ordering_Order$T), ((_w1) => {
129
- return _w1.first_
130
- }))
131
- }
132
-
133
- export function Set_toArray(self_, ff_core_Ordering_Order$T) {
134
- return ff_core_Array.Array_map(ff_core_Map.Map_toArray(self_, ff_core_Ordering_Order$T), ((_w1) => {
135
- return _w1.first_
136
- }))
137
- }
138
-
139
- export function Set_toStream(self_, cycle_ = false, ff_core_Ordering_Order$T) {
140
- return ff_core_Stream.Stream_map(ff_core_Map.Map_toStream(self_, cycle_, ff_core_Ordering_Order$T), ((_w1) => {
141
- return _w1.first_
142
- }))
143
- }
144
-
145
- export function Set_each(self_, body_, ff_core_Ordering_Order$T) {
146
- ff_core_Map.Map_each(self_, ((k_, _) => {
147
- body_(k_)
148
- }), ff_core_Ordering_Order$T)
149
- }
150
-
151
- export function Set_eachWhile(self_, body_, ff_core_Ordering_Order$T) {
152
- return ff_core_Map.Map_eachWhile(self_, ((k_, _) => {
153
- return body_(k_)
154
- }), ff_core_Ordering_Order$T)
155
- }
156
-
157
- export function Set_find(self_, body_, ff_core_Ordering_Order$T) {
158
- return ff_core_Option.Option_map(ff_core_Map.Map_find(self_, ((k_, _) => {
159
- return body_(k_)
160
- }), ff_core_Ordering_Order$T), ((_w1) => {
161
- return _w1.first_
162
- }))
163
- }
164
-
165
- export async function Set_add$(self_, value_, ff_core_Ordering_Order$T, $task) {
166
- return ff_core_Map.Map_add(self_, value_, (void 0), ff_core_Ordering_Order$T)
167
- }
168
-
169
- export async function Set_addAll$(self_, that_, ff_core_Ordering_Order$T, $task) {
170
- return ff_core_Map.Map_addAll(self_, that_, ff_core_Ordering_Order$T)
171
- }
172
-
173
- export async function Set_remove$(self_, value_, ff_core_Ordering_Order$T, $task) {
174
- return ff_core_Map.Map_remove(self_, value_, ff_core_Ordering_Order$T)
175
- }
176
-
177
- export async function Set_removeAll$(self_, that_, ff_core_Ordering_Order$T, $task) {
178
- return ff_core_Map.Map_removeAll(self_, that_, ff_core_Ordering_Order$T)
179
- }
180
-
181
- export async function Set_contains$(self_, value_, ff_core_Ordering_Order$T, $task) {
182
- return ff_core_Map.Map_contains(self_, value_, ff_core_Ordering_Order$T)
183
- }
184
-
185
- export async function Set_size$(self_, ff_core_Ordering_Order$T, $task) {
186
- return ff_core_Map.Map_size(self_, ff_core_Ordering_Order$T)
187
- }
188
-
189
- export async function Set_toList$(self_, ff_core_Ordering_Order$T, $task) {
190
- return ff_core_List.List_map(ff_core_Map.Map_toList(self_, ff_core_Ordering_Order$T), ((_w1) => {
191
- return _w1.first_
192
- }))
193
- }
194
-
195
- export async function Set_toArray$(self_, ff_core_Ordering_Order$T, $task) {
196
- return ff_core_Array.Array_map(ff_core_Map.Map_toArray(self_, ff_core_Ordering_Order$T), ((_w1) => {
197
- return _w1.first_
198
- }))
199
- }
200
-
201
- export async function Set_toStream$(self_, cycle_ = false, ff_core_Ordering_Order$T, $task) {
202
- return (await ff_core_Stream.Stream_map$((await ff_core_Map.Map_toStream$(self_, cycle_, ff_core_Ordering_Order$T, $task)), (async (_w1, $task) => {
203
- return _w1.first_
204
- }), $task))
205
- }
206
-
207
- export async function Set_each$(self_, body_, ff_core_Ordering_Order$T, $task) {
208
- (await ff_core_Map.Map_each$(self_, (async (k_, _, $task) => {
209
- (await body_(k_, $task))
210
- }), ff_core_Ordering_Order$T, $task))
211
- }
212
-
213
- export async function Set_eachWhile$(self_, body_, ff_core_Ordering_Order$T, $task) {
214
- return (await ff_core_Map.Map_eachWhile$(self_, (async (k_, _, $task) => {
215
- return (await body_(k_, $task))
216
- }), ff_core_Ordering_Order$T, $task))
217
- }
218
-
219
- export async function Set_find$(self_, body_, ff_core_Ordering_Order$T, $task) {
220
- return ff_core_Option.Option_map((await ff_core_Map.Map_find$(self_, (async (k_, _, $task) => {
221
- return (await body_(k_, $task))
222
- }), ff_core_Ordering_Order$T, $task)), ((_w1) => {
223
- return _w1.first_
224
- }))
225
- }
226
-
227
- export function ff_core_Equal_Equal$ff_core_Set_Set(ff_core_Equal_Equal$A, ff_core_Ordering_Order$A) { return {
228
- equals_(x_, y_) {
229
- return ff_core_List.ff_core_Equal_Equal$ff_core_List_List(ff_core_Equal_Equal$A).equals_(ff_core_Set.Set_toList(x_, ff_core_Ordering_Order$A), ff_core_Set.Set_toList(y_, ff_core_Ordering_Order$A))
230
- },
231
- async equals_$(x_, y_, $task) {
232
- return ff_core_List.ff_core_Equal_Equal$ff_core_List_List(ff_core_Equal_Equal$A).equals_(ff_core_Set.Set_toList(x_, ff_core_Ordering_Order$A), ff_core_Set.Set_toList(y_, ff_core_Ordering_Order$A))
233
- }
234
- }}
235
-
236
- export function ff_core_Ordering_Order$ff_core_Set_Set(ff_core_Ordering_Order$A) { return {
237
- compare_(x_, y_) {
238
- return ff_core_Ordering.ff_core_Ordering_Order$ff_core_List_List(ff_core_Ordering_Order$A).compare_(ff_core_Set.Set_toList(x_, ff_core_Ordering_Order$A), ff_core_Set.Set_toList(y_, ff_core_Ordering_Order$A))
239
- },
240
- async compare_$(x_, y_, $task) {
241
- return ff_core_Ordering.ff_core_Ordering_Order$ff_core_List_List(ff_core_Ordering_Order$A).compare_(ff_core_Set.Set_toList(x_, ff_core_Ordering_Order$A), ff_core_Set.Set_toList(y_, ff_core_Ordering_Order$A))
242
- }
243
- }}
244
-
245
- export function ff_core_Show_Show$ff_core_Set_Set(ff_core_Show_Show$A, ff_core_Ordering_Order$A) { return {
246
- show_(value_) {
247
- return (ff_core_Show.ff_core_Show_Show$ff_core_List_List(ff_core_Show_Show$A).show_(ff_core_Set.Set_toList(value_, ff_core_Ordering_Order$A)) + ".toSet()")
248
- },
249
- async show_$(value_, $task) {
250
- return (ff_core_Show.ff_core_Show_Show$ff_core_List_List(ff_core_Show_Show$A).show_(ff_core_Set.Set_toList(value_, ff_core_Ordering_Order$A)) + ".toSet()")
251
- }
252
- }}
253
-
254
-
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
+ // newtype Set
92
+
93
+
94
+
95
+ export function empty_() {
96
+ return ff_core_Map.empty_()
97
+ }
98
+
99
+ export async function empty_$($task) {
100
+ return ff_core_Map.empty_()
101
+ }
102
+
103
+ export function Set_add(self_, value_, ff_core_Ordering_Order$T) {
104
+ return ff_core_Map.Map_add(self_, value_, (void 0), ff_core_Ordering_Order$T)
105
+ }
106
+
107
+ export function Set_addAll(self_, that_, ff_core_Ordering_Order$T) {
108
+ return ff_core_Map.Map_addAll(self_, that_, ff_core_Ordering_Order$T)
109
+ }
110
+
111
+ export function Set_remove(self_, value_, ff_core_Ordering_Order$T) {
112
+ return ff_core_Map.Map_remove(self_, value_, ff_core_Ordering_Order$T)
113
+ }
114
+
115
+ export function Set_removeAll(self_, that_, ff_core_Ordering_Order$T) {
116
+ return ff_core_Map.Map_removeAll(self_, that_, ff_core_Ordering_Order$T)
117
+ }
118
+
119
+ export function Set_contains(self_, value_, ff_core_Ordering_Order$T) {
120
+ return ff_core_Map.Map_contains(self_, value_, ff_core_Ordering_Order$T)
121
+ }
122
+
123
+ export function Set_size(self_, ff_core_Ordering_Order$T) {
124
+ return ff_core_Map.Map_size(self_, ff_core_Ordering_Order$T)
125
+ }
126
+
127
+ export function Set_toList(self_, ff_core_Ordering_Order$T) {
128
+ return ff_core_List.List_map(ff_core_Map.Map_toList(self_, ff_core_Ordering_Order$T), ((_w1) => {
129
+ return _w1.first_
130
+ }))
131
+ }
132
+
133
+ export function Set_toArray(self_, ff_core_Ordering_Order$T) {
134
+ return ff_core_Array.Array_map(ff_core_Map.Map_toArray(self_, ff_core_Ordering_Order$T), ((_w1) => {
135
+ return _w1.first_
136
+ }))
137
+ }
138
+
139
+ export function Set_toStream(self_, cycle_ = false, ff_core_Ordering_Order$T) {
140
+ return ff_core_Stream.Stream_map(ff_core_Map.Map_toStream(self_, cycle_, ff_core_Ordering_Order$T), ((_w1) => {
141
+ return _w1.first_
142
+ }))
143
+ }
144
+
145
+ export function Set_each(self_, body_, ff_core_Ordering_Order$T) {
146
+ ff_core_Map.Map_each(self_, ((k_, _) => {
147
+ body_(k_)
148
+ }), ff_core_Ordering_Order$T)
149
+ }
150
+
151
+ export function Set_eachWhile(self_, body_, ff_core_Ordering_Order$T) {
152
+ return ff_core_Map.Map_eachWhile(self_, ((k_, _) => {
153
+ return body_(k_)
154
+ }), ff_core_Ordering_Order$T)
155
+ }
156
+
157
+ export function Set_find(self_, body_, ff_core_Ordering_Order$T) {
158
+ return ff_core_Option.Option_map(ff_core_Map.Map_find(self_, ((k_, _) => {
159
+ return body_(k_)
160
+ }), ff_core_Ordering_Order$T), ((_w1) => {
161
+ return _w1.first_
162
+ }))
163
+ }
164
+
165
+ export async function Set_add$(self_, value_, ff_core_Ordering_Order$T, $task) {
166
+ return ff_core_Map.Map_add(self_, value_, (void 0), ff_core_Ordering_Order$T)
167
+ }
168
+
169
+ export async function Set_addAll$(self_, that_, ff_core_Ordering_Order$T, $task) {
170
+ return ff_core_Map.Map_addAll(self_, that_, ff_core_Ordering_Order$T)
171
+ }
172
+
173
+ export async function Set_remove$(self_, value_, ff_core_Ordering_Order$T, $task) {
174
+ return ff_core_Map.Map_remove(self_, value_, ff_core_Ordering_Order$T)
175
+ }
176
+
177
+ export async function Set_removeAll$(self_, that_, ff_core_Ordering_Order$T, $task) {
178
+ return ff_core_Map.Map_removeAll(self_, that_, ff_core_Ordering_Order$T)
179
+ }
180
+
181
+ export async function Set_contains$(self_, value_, ff_core_Ordering_Order$T, $task) {
182
+ return ff_core_Map.Map_contains(self_, value_, ff_core_Ordering_Order$T)
183
+ }
184
+
185
+ export async function Set_size$(self_, ff_core_Ordering_Order$T, $task) {
186
+ return ff_core_Map.Map_size(self_, ff_core_Ordering_Order$T)
187
+ }
188
+
189
+ export async function Set_toList$(self_, ff_core_Ordering_Order$T, $task) {
190
+ return ff_core_List.List_map(ff_core_Map.Map_toList(self_, ff_core_Ordering_Order$T), ((_w1) => {
191
+ return _w1.first_
192
+ }))
193
+ }
194
+
195
+ export async function Set_toArray$(self_, ff_core_Ordering_Order$T, $task) {
196
+ return ff_core_Array.Array_map(ff_core_Map.Map_toArray(self_, ff_core_Ordering_Order$T), ((_w1) => {
197
+ return _w1.first_
198
+ }))
199
+ }
200
+
201
+ export async function Set_toStream$(self_, cycle_ = false, ff_core_Ordering_Order$T, $task) {
202
+ return (await ff_core_Stream.Stream_map$((await ff_core_Map.Map_toStream$(self_, cycle_, ff_core_Ordering_Order$T, $task)), (async (_w1, $task) => {
203
+ return _w1.first_
204
+ }), $task))
205
+ }
206
+
207
+ export async function Set_each$(self_, body_, ff_core_Ordering_Order$T, $task) {
208
+ (await ff_core_Map.Map_each$(self_, (async (k_, _, $task) => {
209
+ (await body_(k_, $task))
210
+ }), ff_core_Ordering_Order$T, $task))
211
+ }
212
+
213
+ export async function Set_eachWhile$(self_, body_, ff_core_Ordering_Order$T, $task) {
214
+ return (await ff_core_Map.Map_eachWhile$(self_, (async (k_, _, $task) => {
215
+ return (await body_(k_, $task))
216
+ }), ff_core_Ordering_Order$T, $task))
217
+ }
218
+
219
+ export async function Set_find$(self_, body_, ff_core_Ordering_Order$T, $task) {
220
+ return ff_core_Option.Option_map((await ff_core_Map.Map_find$(self_, (async (k_, _, $task) => {
221
+ return (await body_(k_, $task))
222
+ }), ff_core_Ordering_Order$T, $task)), ((_w1) => {
223
+ return _w1.first_
224
+ }))
225
+ }
226
+
227
+ export function ff_core_Equal_Equal$ff_core_Set_Set(ff_core_Equal_Equal$A, ff_core_Ordering_Order$A) { return {
228
+ equals_(x_, y_) {
229
+ return ff_core_List.ff_core_Equal_Equal$ff_core_List_List(ff_core_Equal_Equal$A).equals_(ff_core_Set.Set_toList(x_, ff_core_Ordering_Order$A), ff_core_Set.Set_toList(y_, ff_core_Ordering_Order$A))
230
+ },
231
+ async equals_$(x_, y_, $task) {
232
+ return ff_core_List.ff_core_Equal_Equal$ff_core_List_List(ff_core_Equal_Equal$A).equals_(ff_core_Set.Set_toList(x_, ff_core_Ordering_Order$A), ff_core_Set.Set_toList(y_, ff_core_Ordering_Order$A))
233
+ }
234
+ }}
235
+
236
+ export function ff_core_Ordering_Order$ff_core_Set_Set(ff_core_Ordering_Order$A) { return {
237
+ compare_(x_, y_) {
238
+ return ff_core_Ordering.ff_core_Ordering_Order$ff_core_List_List(ff_core_Ordering_Order$A).compare_(ff_core_Set.Set_toList(x_, ff_core_Ordering_Order$A), ff_core_Set.Set_toList(y_, ff_core_Ordering_Order$A))
239
+ },
240
+ async compare_$(x_, y_, $task) {
241
+ return ff_core_Ordering.ff_core_Ordering_Order$ff_core_List_List(ff_core_Ordering_Order$A).compare_(ff_core_Set.Set_toList(x_, ff_core_Ordering_Order$A), ff_core_Set.Set_toList(y_, ff_core_Ordering_Order$A))
242
+ }
243
+ }}
244
+
245
+ export function ff_core_Show_Show$ff_core_Set_Set(ff_core_Show_Show$A, ff_core_Ordering_Order$A) { return {
246
+ show_(value_) {
247
+ return (ff_core_Show.ff_core_Show_Show$ff_core_List_List(ff_core_Show_Show$A).show_(ff_core_Set.Set_toList(value_, ff_core_Ordering_Order$A)) + ".toSet()")
248
+ },
249
+ async show_$(value_, $task) {
250
+ return (ff_core_Show.ff_core_Show_Show$ff_core_List_List(ff_core_Show_Show$A).show_(ff_core_Set.Set_toList(value_, ff_core_Ordering_Order$A)) + ".toSet()")
251
+ }
252
+ }}
253
+
254
+