firefly-compiler 0.5.35 → 0.5.36

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 (225) hide show
  1. package/.hintrc +4 -4
  2. package/.vscode/settings.json +4 -4
  3. package/bin/Release.ff +157 -154
  4. package/bin/firefly.mjs +1 -1
  5. package/compiler/Builder.ff +275 -277
  6. package/compiler/Compiler.ff +234 -233
  7. package/compiler/Dependencies.ff +186 -187
  8. package/compiler/DependencyLock.ff +17 -17
  9. package/compiler/Deriver.ff +23 -31
  10. package/compiler/Dictionaries.ff +1 -1
  11. package/compiler/Inference.ff +43 -20
  12. package/compiler/JsEmitter.ff +1437 -1282
  13. package/compiler/LspHook.ff +202 -202
  14. package/compiler/Main.ff +25 -24
  15. package/compiler/ModuleCache.ff +178 -178
  16. package/compiler/Parser.ff +36 -109
  17. package/compiler/Resolver.ff +5 -8
  18. package/compiler/Substitution.ff +1 -1
  19. package/compiler/Syntax.ff +1 -16
  20. package/compiler/Token.ff +9 -0
  21. package/compiler/Tokenizer.ff +4 -0
  22. package/compiler/Workspace.ff +88 -88
  23. package/core/.firefly/include/package.json +5 -5
  24. package/core/.firefly/package.ff +2 -2
  25. package/core/Any.ff +26 -30
  26. package/core/Array.ff +298 -265
  27. package/core/Atomic.ff +63 -64
  28. package/core/Box.ff +7 -7
  29. package/core/BrowserSystem.ff +40 -40
  30. package/core/Buffer.ff +185 -152
  31. package/core/BuildSystem.ff +156 -148
  32. package/core/Channel.ff +95 -92
  33. package/core/Char.ff +3 -2
  34. package/core/Core.ff +16 -23
  35. package/core/Crypto.ff +94 -96
  36. package/core/Equal.ff +41 -36
  37. package/core/Error.ff +15 -10
  38. package/core/FileHandle.ff +45 -37
  39. package/core/Float.ff +176 -200
  40. package/core/HttpClient.ff +142 -148
  41. package/core/Instant.ff +6 -8
  42. package/core/Int.ff +40 -24
  43. package/core/IntMap.ff +61 -39
  44. package/core/Js.ff +305 -0
  45. package/core/JsSystem.ff +135 -114
  46. package/core/JsValue.ff +303 -159
  47. package/core/Json.ff +423 -443
  48. package/core/List.ff +482 -486
  49. package/core/Lock.ff +108 -144
  50. package/core/Log.ff +25 -14
  51. package/core/NodeSystem.ff +198 -191
  52. package/core/Ordering.ff +160 -161
  53. package/core/Path.ff +377 -409
  54. package/core/Queue.ff +90 -0
  55. package/core/Random.ff +140 -134
  56. package/core/RbMap.ff +216 -216
  57. package/core/Serializable.ff +16 -13
  58. package/core/Show.ff +44 -43
  59. package/core/SourceLocation.ff +68 -68
  60. package/core/Stream.ff +1 -1
  61. package/core/String.ff +224 -202
  62. package/core/StringMap.ff +58 -36
  63. package/core/Task.ff +165 -149
  64. package/experimental/benchmarks/ListGrab.ff +23 -23
  65. package/experimental/benchmarks/ListGrab.java +55 -55
  66. package/experimental/benchmarks/Pyrotek45.ff +30 -30
  67. package/experimental/benchmarks/Pyrotek45.java +64 -64
  68. package/experimental/bidirectional/Bidi.ff +88 -88
  69. package/experimental/lines/Main.ff +40 -0
  70. package/experimental/random/Index.ff +53 -53
  71. package/experimental/random/Process.ff +120 -120
  72. package/experimental/random/RunLength.ff +65 -65
  73. package/experimental/random/Scrape.ff +51 -51
  74. package/experimental/random/Symbols.ff +73 -73
  75. package/experimental/random/Tensor.ff +52 -52
  76. package/experimental/random/Units.ff +36 -36
  77. package/experimental/s3/S3TestAuthorizationHeader.ff +39 -39
  78. package/experimental/s3/S3TestPut.ff +16 -16
  79. package/experimental/tests/TestJson.ff +26 -26
  80. package/firefly.sh +0 -0
  81. package/fireflysite/.firefly/package.ff +4 -4
  82. package/fireflysite/CommunityOverview.ff +20 -20
  83. package/fireflysite/CountingButtonDemo.ff +58 -58
  84. package/fireflysite/DocumentParser.ff +325 -331
  85. package/fireflysite/ExamplesOverview.ff +40 -40
  86. package/fireflysite/FrontPage.ff +344 -344
  87. package/fireflysite/GettingStarted.ff +45 -45
  88. package/fireflysite/Guide.ff +456 -456
  89. package/fireflysite/Main.ff +163 -152
  90. package/fireflysite/MatchingPasswordsDemo.ff +82 -82
  91. package/fireflysite/PackagesOverview.ff +49 -49
  92. package/fireflysite/PostgresqlDemo.ff +34 -34
  93. package/fireflysite/ReferenceAll.ff +18 -18
  94. package/fireflysite/ReferenceIntroduction.ff +11 -11
  95. package/fireflysite/Styles.ff +567 -567
  96. package/fireflysite/Test.ff +121 -62
  97. package/fireflysite/assets/markdown/reference/BaseTypes.md +209 -209
  98. package/fireflysite/assets/markdown/reference/EmittedJavascript.md +65 -65
  99. package/fireflysite/assets/markdown/reference/Exceptions.md +101 -101
  100. package/fireflysite/assets/markdown/reference/FunctionsAndMethods.md +364 -364
  101. package/fireflysite/assets/markdown/reference/JavascriptInterop.md +235 -172
  102. package/fireflysite/assets/markdown/reference/ModulesAndPackages.md +162 -162
  103. package/fireflysite/assets/markdown/reference/OldStructuredConcurrency.md +48 -48
  104. package/fireflysite/assets/markdown/reference/PatternMatching.md +224 -224
  105. package/fireflysite/assets/markdown/reference/StatementsAndExpressions.md +86 -86
  106. package/fireflysite/assets/markdown/reference/StructuredConcurrency.md +99 -99
  107. package/fireflysite/assets/markdown/reference/TraitsAndInstances.md +100 -100
  108. package/fireflysite/assets/markdown/reference/UserDefinedTypes.md +184 -184
  109. package/fireflysite/assets/markdown/scratch/ControlFlow.md +136 -136
  110. package/fireflysite/assets/markdown/scratch/Toc.md +40 -40
  111. package/lsp/.firefly/package.ff +1 -1
  112. package/lsp/CompletionHandler.ff +827 -827
  113. package/lsp/Handler.ff +714 -714
  114. package/lsp/HoverHandler.ff +79 -79
  115. package/lsp/LanguageServer.ff +272 -272
  116. package/lsp/SignatureHelpHandler.ff +55 -55
  117. package/lsp/SymbolHandler.ff +181 -181
  118. package/lsp/TestReferences.ff +17 -17
  119. package/lsp/TestReferencesCase.ff +7 -7
  120. package/lsp/stderr.txt +1 -1
  121. package/lsp/stdout.txt +34 -34
  122. package/lux/.firefly/package.ff +1 -1
  123. package/lux/Css.ff +648 -648
  124. package/lux/CssTest.ff +48 -48
  125. package/lux/Lux.ff +608 -617
  126. package/lux/LuxEvent.ff +79 -116
  127. package/lux/Main.ff +123 -123
  128. package/lux/Main2.ff +143 -143
  129. package/lux/TestDry.ff +28 -28
  130. package/output/js/ff/compiler/Builder.mjs +72 -71
  131. package/output/js/ff/compiler/Compiler.mjs +19 -13
  132. package/output/js/ff/compiler/Dependencies.mjs +8 -7
  133. package/output/js/ff/compiler/DependencyLock.mjs +6 -4
  134. package/output/js/ff/compiler/Deriver.mjs +26 -24
  135. package/output/js/ff/compiler/Dictionaries.mjs +14 -18
  136. package/output/js/ff/compiler/Environment.mjs +6 -4
  137. package/output/js/ff/compiler/Inference.mjs +238 -164
  138. package/output/js/ff/compiler/JsEmitter.mjs +1160 -350
  139. package/output/js/ff/compiler/JsImporter.mjs +20 -18
  140. package/output/js/ff/compiler/LspHook.mjs +12 -10
  141. package/output/js/ff/compiler/Main.mjs +61 -41
  142. package/output/js/ff/compiler/ModuleCache.mjs +10 -8
  143. package/output/js/ff/compiler/Parser.mjs +153 -669
  144. package/output/js/ff/compiler/Patterns.mjs +12 -10
  145. package/output/js/ff/compiler/Resolver.mjs +52 -78
  146. package/output/js/ff/compiler/Substitution.mjs +12 -16
  147. package/output/js/ff/compiler/Syntax.mjs +50 -341
  148. package/output/js/ff/compiler/Token.mjs +126 -4
  149. package/output/js/ff/compiler/Tokenizer.mjs +62 -52
  150. package/output/js/ff/compiler/Unification.mjs +74 -90
  151. package/output/js/ff/compiler/Wildcards.mjs +4 -2
  152. package/output/js/ff/compiler/Workspace.mjs +26 -20
  153. package/output/js/ff/core/Any.mjs +20 -20
  154. package/output/js/ff/core/Array.mjs +268 -175
  155. package/output/js/ff/core/AssetSystem.mjs +8 -6
  156. package/output/js/ff/core/Atomic.mjs +84 -52
  157. package/output/js/ff/core/Bool.mjs +6 -4
  158. package/output/js/ff/core/BrowserSystem.mjs +38 -29
  159. package/output/js/ff/core/Buffer.mjs +285 -133
  160. package/output/js/ff/core/BuildSystem.mjs +36 -56
  161. package/output/js/ff/core/Channel.mjs +250 -97
  162. package/output/js/ff/core/Char.mjs +5 -3
  163. package/output/js/ff/core/Core.mjs +28 -34
  164. package/output/js/ff/core/Crypto.mjs +30 -52
  165. package/output/js/ff/core/Duration.mjs +4 -2
  166. package/output/js/ff/core/Equal.mjs +14 -12
  167. package/output/js/ff/core/Error.mjs +17 -11
  168. package/output/js/ff/core/FileHandle.mjs +76 -38
  169. package/output/js/ff/core/Float.mjs +92 -160
  170. package/output/js/ff/core/HttpClient.mjs +208 -76
  171. package/output/js/ff/core/Instant.mjs +8 -10
  172. package/output/js/ff/core/Int.mjs +36 -26
  173. package/output/js/ff/core/IntMap.mjs +79 -33
  174. package/output/js/ff/core/Js.mjs +751 -0
  175. package/output/js/ff/core/JsSystem.mjs +54 -60
  176. package/output/js/ff/core/JsValue.mjs +294 -143
  177. package/output/js/ff/core/Json.mjs +443 -253
  178. package/output/js/ff/core/List.mjs +262 -214
  179. package/output/js/ff/core/Lock.mjs +156 -125
  180. package/output/js/ff/core/Log.mjs +20 -10
  181. package/output/js/ff/core/Map.mjs +10 -8
  182. package/output/js/ff/core/NodeSystem.mjs +189 -123
  183. package/output/js/ff/core/Nothing.mjs +4 -2
  184. package/output/js/ff/core/Option.mjs +40 -38
  185. package/output/js/ff/core/Ordering.mjs +26 -20
  186. package/output/js/ff/core/Pair.mjs +4 -2
  187. package/output/js/ff/core/Path.mjs +517 -315
  188. package/output/js/ff/core/Queue.mjs +306 -0
  189. package/output/js/ff/core/Random.mjs +141 -77
  190. package/output/js/ff/core/RbMap.mjs +36 -34
  191. package/output/js/ff/core/Serializable.mjs +44 -28
  192. package/output/js/ff/core/Set.mjs +6 -4
  193. package/output/js/ff/core/Show.mjs +8 -6
  194. package/output/js/ff/core/SourceLocation.mjs +4 -2
  195. package/output/js/ff/core/Stream.mjs +30 -50
  196. package/output/js/ff/core/String.mjs +263 -172
  197. package/output/js/ff/core/StringMap.mjs +77 -31
  198. package/output/js/ff/core/Task.mjs +91 -76
  199. package/output/js/ff/core/Try.mjs +20 -18
  200. package/output/js/ff/core/Unit.mjs +4 -2
  201. package/package.json +1 -1
  202. package/postgresql/Pg.ff +53 -59
  203. package/rpc/.firefly/package.ff +1 -1
  204. package/rpc/Rpc.ff +70 -70
  205. package/s3/.firefly/package.ff +1 -1
  206. package/s3/S3.ff +92 -94
  207. package/vscode/LICENSE.txt +21 -21
  208. package/vscode/Prepublish.ff +15 -15
  209. package/vscode/README.md +16 -16
  210. package/vscode/client/package-lock.json +544 -544
  211. package/vscode/client/package.json +22 -22
  212. package/vscode/client/src/extension.ts +104 -104
  213. package/vscode/icons/firefly-icon.svg +10 -10
  214. package/vscode/language-configuration.json +61 -61
  215. package/vscode/package-lock.json +3623 -3623
  216. package/vscode/package.json +1 -1
  217. package/vscode/snippets.json +241 -241
  218. package/vscode/syntaxes/firefly-markdown-injection.json +45 -45
  219. package/webserver/.firefly/include/package.json +5 -5
  220. package/webserver/.firefly/package.ff +2 -2
  221. package/webserver/WebServer.ff +647 -685
  222. package/websocket/.firefly/package.ff +1 -1
  223. package/websocket/WebSocket.ff +100 -131
  224. package/core/UnsafeJs.ff +0 -42
  225. package/output/js/ff/core/UnsafeJs.mjs +0 -191
@@ -44,6 +44,8 @@ import * as ff_core_Int from "../../ff/core/Int.mjs"
44
44
 
45
45
  import * as ff_core_IntMap from "../../ff/core/IntMap.mjs"
46
46
 
47
+ import * as ff_core_Js from "../../ff/core/Js.mjs"
48
+
47
49
  import * as ff_core_JsSystem from "../../ff/core/JsSystem.mjs"
48
50
 
49
51
  import * as ff_core_JsValue from "../../ff/core/JsValue.mjs"
@@ -70,6 +72,8 @@ import * as ff_core_Pair from "../../ff/core/Pair.mjs"
70
72
 
71
73
  import * as ff_core_Path from "../../ff/core/Path.mjs"
72
74
 
75
+ import * as ff_core_Queue from "../../ff/core/Queue.mjs"
76
+
73
77
  import * as ff_core_Random from "../../ff/core/Random.mjs"
74
78
 
75
79
  import * as ff_core_Serializable from "../../ff/core/Serializable.mjs"
@@ -92,8 +96,6 @@ import * as ff_core_Try from "../../ff/core/Try.mjs"
92
96
 
93
97
  import * as ff_core_Unit from "../../ff/core/Unit.mjs"
94
98
 
95
- import * as ff_core_UnsafeJs from "../../ff/core/UnsafeJs.mjs"
96
-
97
99
  // type Location
98
100
  export function Location(file_, line_, column_) {
99
101
  return {file_, line_, column_};
@@ -327,14 +329,6 @@ export function Constraint(at_, name_, generics_) {
327
329
  return {at_, name_, generics_};
328
330
  }
329
331
 
330
- // type Target
331
- export function FireflyTarget(lambda_) {
332
- return {FireflyTarget: true, lambda_};
333
- }
334
- export function ForeignTarget(syncCode_, asyncCode_) {
335
- return {ForeignTarget: true, syncCode_, asyncCode_};
336
- }
337
-
338
332
  // type Type
339
333
  export function TConstructor(at_, name_, generics_) {
340
334
  return {TConstructor: true, at_, name_, generics_};
@@ -406,18 +400,17 @@ if(_1.None) {
406
400
  seenTypes_ = ff_core_Map.Map_add(seenTypes_, shortenedName_, name_, ff_core_Ordering.ff_core_Ordering_Order$ff_core_String_String)
407
401
  break
408
402
  }
409
- if(_1.Some) {
403
+ {
410
404
  const qualified_ = _1.value_;
411
405
  if((name_ !== qualified_)) {
412
406
  seenTypes_ = ff_core_Map.Map_add(seenTypes_, shortenedName_, "", ff_core_Ordering.ff_core_Ordering_Order$ff_core_String_String)
413
407
  }
414
- break
415
408
  }
416
409
  } while(false);
417
410
  shortenTypes_(typeArguments_)
418
411
  return
419
412
  }
420
- if(_1.TVariable) {
413
+ {
421
414
  const index_ = _1.index_;
422
415
  if((!ff_core_Map.Map_contains(seenTypes_, ("$" + index_), ff_core_Ordering.ff_core_Ordering_Order$ff_core_String_String))) {
423
416
  seenTypes_ = ff_core_Map.Map_add(seenTypes_, ("$" + index_), ff_core_Option.Option_else(typeNames_.next_(), (() => {
@@ -506,7 +499,7 @@ return go_(_w1)
506
499
  }
507
500
  return
508
501
  }
509
- if(_1.TVariable) {
502
+ {
510
503
  const at_ = _1.at_;
511
504
  const index_ = _1.index_;
512
505
  return ff_core_Map.Map_grab(seenTypes_, ("$" + index_), ff_core_Ordering.ff_core_Ordering_Order$ff_core_String_String)
@@ -538,18 +531,17 @@ if(_1.None) {
538
531
  seenTypes_ = ff_core_Map.Map_add(seenTypes_, shortenedName_, name_, ff_core_Ordering.ff_core_Ordering_Order$ff_core_String_String)
539
532
  break
540
533
  }
541
- if(_1.Some) {
534
+ {
542
535
  const qualified_ = _1.value_;
543
536
  if((name_ !== qualified_)) {
544
537
  seenTypes_ = ff_core_Map.Map_add(seenTypes_, shortenedName_, "", ff_core_Ordering.ff_core_Ordering_Order$ff_core_String_String)
545
538
  }
546
- break
547
539
  }
548
540
  } while(false);
549
541
  shortenTypes_(typeArguments_)
550
542
  return
551
543
  }
552
- if(_1.TVariable) {
544
+ {
553
545
  const index_ = _1.index_;
554
546
  if((!ff_core_Map.Map_contains(seenTypes_, ("$" + index_), ff_core_Ordering.ff_core_Ordering_Order$ff_core_String_String))) {
555
547
  seenTypes_ = ff_core_Map.Map_add(seenTypes_, ("$" + index_), ff_core_Option.Option_else(typeNames_.next_(), (() => {
@@ -638,7 +630,7 @@ return go_(_w1)
638
630
  }
639
631
  return
640
632
  }
641
- if(_1.TVariable) {
633
+ {
642
634
  const at_ = _1.at_;
643
635
  const index_ = _1.index_;
644
636
  return ff_core_Map.Map_grab(seenTypes_, ("$" + index_), ff_core_Ordering.ff_core_Ordering_Order$ff_core_String_String)
@@ -648,32 +640,6 @@ return ff_core_Map.Map_grab(seenTypes_, ("$" + index_), ff_core_Ordering.ff_core
648
640
  return go_(self_)
649
641
  }
650
642
 
651
- export function Target_mapFirefly(self_, body_) {
652
- {
653
- const _1 = self_;
654
- if(_1.FireflyTarget) {
655
- const lambda_ = _1.lambda_;
656
- return ff_compiler_Syntax.FireflyTarget(body_(lambda_))
657
- }
658
- if(_1.ForeignTarget) {
659
- return self_
660
- }
661
- }
662
- }
663
-
664
- export async function Target_mapFirefly$(self_, body_, $task) {
665
- {
666
- const _1 = self_;
667
- if(_1.FireflyTarget) {
668
- const lambda_ = _1.lambda_;
669
- return ff_compiler_Syntax.FireflyTarget((await body_(lambda_, $task)))
670
- }
671
- if(_1.ForeignTarget) {
672
- return self_
673
- }
674
- }
675
- }
676
-
677
643
  export const ff_core_Any_HasAnyTag$ff_compiler_Syntax_Location = {
678
644
  anyTag_() {
679
645
  return ff_core_Any.internalAnyTag_((("ff:compiler/Syntax.Location" + "[") + "]"))
@@ -953,15 +919,6 @@ return ff_core_Any.internalAnyTag_((("ff:compiler/Syntax.Constraint" + "[") + "]
953
919
  }
954
920
  };
955
921
 
956
- export const ff_core_Any_HasAnyTag$ff_compiler_Syntax_Target = {
957
- anyTag_() {
958
- return ff_core_Any.internalAnyTag_((("ff:compiler/Syntax.Target" + "[") + "]"))
959
- },
960
- async anyTag_$($task) {
961
- return ff_core_Any.internalAnyTag_((("ff:compiler/Syntax.Target" + "[") + "]"))
962
- }
963
- };
964
-
965
922
  export const ff_core_Any_HasAnyTag$ff_compiler_Syntax_Type = {
966
923
  anyTag_() {
967
924
  return ff_core_Any.internalAnyTag_((("ff:compiler/Syntax.Type" + "[") + "]"))
@@ -1198,14 +1155,14 @@ show_(value_) {
1198
1155
  const value_a = value_;
1199
1156
  {
1200
1157
  const z_ = value_a;
1201
- return ((((((("DFunction" + "(") + ff_compiler_Syntax.ff_core_Show_Show$ff_compiler_Syntax_Location.show_(z_.at_)) + ", ") + ff_compiler_Syntax.ff_core_Show_Show$ff_compiler_Syntax_Signature.show_(z_.signature_)) + ", ") + ff_compiler_Syntax.ff_core_Show_Show$ff_compiler_Syntax_Target.show_(z_.body_)) + ")")
1158
+ return ((((((("DFunction" + "(") + ff_compiler_Syntax.ff_core_Show_Show$ff_compiler_Syntax_Location.show_(z_.at_)) + ", ") + ff_compiler_Syntax.ff_core_Show_Show$ff_compiler_Syntax_Signature.show_(z_.signature_)) + ", ") + ff_compiler_Syntax.ff_core_Show_Show$ff_compiler_Syntax_Lambda.show_(z_.body_)) + ")")
1202
1159
  }
1203
1160
  },
1204
1161
  async show_$(value_, $task) {
1205
1162
  const value_a = value_;
1206
1163
  {
1207
1164
  const z_ = value_a;
1208
- return ((((((("DFunction" + "(") + ff_compiler_Syntax.ff_core_Show_Show$ff_compiler_Syntax_Location.show_(z_.at_)) + ", ") + ff_compiler_Syntax.ff_core_Show_Show$ff_compiler_Syntax_Signature.show_(z_.signature_)) + ", ") + ff_compiler_Syntax.ff_core_Show_Show$ff_compiler_Syntax_Target.show_(z_.body_)) + ")")
1165
+ return ((((((("DFunction" + "(") + ff_compiler_Syntax.ff_core_Show_Show$ff_compiler_Syntax_Location.show_(z_.at_)) + ", ") + ff_compiler_Syntax.ff_core_Show_Show$ff_compiler_Syntax_Signature.show_(z_.signature_)) + ", ") + ff_compiler_Syntax.ff_core_Show_Show$ff_compiler_Syntax_Lambda.show_(z_.body_)) + ")")
1209
1166
  }
1210
1167
  }
1211
1168
  };
@@ -1374,7 +1331,7 @@ if(value_a.EField) {
1374
1331
  const z_ = value_a;
1375
1332
  return ((((((((("EField" + "(") + ff_compiler_Syntax.ff_core_Show_Show$ff_compiler_Syntax_Location.show_(z_.at_)) + ", ") + ff_core_Show.ff_core_Show_Show$ff_core_Bool_Bool.show_(z_.newtype_)) + ", ") + ff_compiler_Syntax.ff_core_Show_Show$ff_compiler_Syntax_Term.show_(z_.record_)) + ", ") + ff_core_Show.ff_core_Show_Show$ff_core_String_String.show_(z_.field_)) + ")")
1376
1333
  }
1377
- if(value_a.EWildcard) {
1334
+ {
1378
1335
  const z_ = value_a;
1379
1336
  return ((((("EWildcard" + "(") + ff_compiler_Syntax.ff_core_Show_Show$ff_compiler_Syntax_Location.show_(z_.at_)) + ", ") + ff_core_Show.ff_core_Show_Show$ff_core_Int_Int.show_(z_.index_)) + ")")
1380
1337
  }
@@ -1457,7 +1414,7 @@ if(value_a.EField) {
1457
1414
  const z_ = value_a;
1458
1415
  return ((((((((("EField" + "(") + ff_compiler_Syntax.ff_core_Show_Show$ff_compiler_Syntax_Location.show_(z_.at_)) + ", ") + ff_core_Show.ff_core_Show_Show$ff_core_Bool_Bool.show_(z_.newtype_)) + ", ") + ff_compiler_Syntax.ff_core_Show_Show$ff_compiler_Syntax_Term.show_(z_.record_)) + ", ") + ff_core_Show.ff_core_Show_Show$ff_core_String_String.show_(z_.field_)) + ")")
1459
1416
  }
1460
- if(value_a.EWildcard) {
1417
+ {
1461
1418
  const z_ = value_a;
1462
1419
  return ((((("EWildcard" + "(") + ff_compiler_Syntax.ff_core_Show_Show$ff_compiler_Syntax_Location.show_(z_.at_)) + ", ") + ff_core_Show.ff_core_Show_Show$ff_core_Int_Int.show_(z_.index_)) + ")")
1463
1420
  }
@@ -1471,7 +1428,7 @@ if(value_a.DynamicCall) {
1471
1428
  const z_ = value_a;
1472
1429
  return ((((("DynamicCall" + "(") + ff_compiler_Syntax.ff_core_Show_Show$ff_compiler_Syntax_Term.show_(z_.function_)) + ", ") + ff_core_Show.ff_core_Show_Show$ff_core_Bool_Bool.show_(z_.tailCall_)) + ")")
1473
1430
  }
1474
- if(value_a.StaticCall) {
1431
+ {
1475
1432
  const z_ = value_a;
1476
1433
  return ((((((("StaticCall" + "(") + ff_core_Show.ff_core_Show_Show$ff_core_String_String.show_(z_.name_)) + ", ") + ff_core_Show.ff_core_Show_Show$ff_core_Bool_Bool.show_(z_.tailCall_)) + ", ") + ff_core_Show.ff_core_Show_Show$ff_core_Bool_Bool.show_(z_.instanceCall_)) + ")")
1477
1434
  }
@@ -1482,7 +1439,7 @@ if(value_a.DynamicCall) {
1482
1439
  const z_ = value_a;
1483
1440
  return ((((("DynamicCall" + "(") + ff_compiler_Syntax.ff_core_Show_Show$ff_compiler_Syntax_Term.show_(z_.function_)) + ", ") + ff_core_Show.ff_core_Show_Show$ff_core_Bool_Bool.show_(z_.tailCall_)) + ")")
1484
1441
  }
1485
- if(value_a.StaticCall) {
1442
+ {
1486
1443
  const z_ = value_a;
1487
1444
  return ((((((("StaticCall" + "(") + ff_core_Show.ff_core_Show_Show$ff_core_String_String.show_(z_.name_)) + ", ") + ff_core_Show.ff_core_Show_Show$ff_core_Bool_Bool.show_(z_.tailCall_)) + ", ") + ff_core_Show.ff_core_Show_Show$ff_core_Bool_Bool.show_(z_.instanceCall_)) + ")")
1488
1445
  }
@@ -1533,7 +1490,7 @@ if(value_a.PVariantAs) {
1533
1490
  const z_ = value_a;
1534
1491
  return ((((((((("PVariantAs" + "(") + ff_compiler_Syntax.ff_core_Show_Show$ff_compiler_Syntax_Location.show_(z_.at_)) + ", ") + ff_core_Show.ff_core_Show_Show$ff_core_String_String.show_(z_.name_)) + ", ") + ff_compiler_Syntax.ff_core_Show_Show$ff_compiler_Syntax_Location.show_(z_.variableAt_)) + ", ") + ff_core_Option.ff_core_Show_Show$ff_core_Option_Option(ff_core_Show.ff_core_Show_Show$ff_core_String_String).show_(z_.variable_)) + ")")
1535
1492
  }
1536
- if(value_a.PAlias) {
1493
+ {
1537
1494
  const z_ = value_a;
1538
1495
  return ((((((("PAlias" + "(") + ff_compiler_Syntax.ff_core_Show_Show$ff_compiler_Syntax_Location.show_(z_.at_)) + ", ") + ff_compiler_Syntax.ff_core_Show_Show$ff_compiler_Syntax_MatchPattern.show_(z_.pattern_)) + ", ") + ff_core_Show.ff_core_Show_Show$ff_core_String_String.show_(z_.variable_)) + ")")
1539
1496
  }
@@ -1564,7 +1521,7 @@ if(value_a.PVariantAs) {
1564
1521
  const z_ = value_a;
1565
1522
  return ((((((((("PVariantAs" + "(") + ff_compiler_Syntax.ff_core_Show_Show$ff_compiler_Syntax_Location.show_(z_.at_)) + ", ") + ff_core_Show.ff_core_Show_Show$ff_core_String_String.show_(z_.name_)) + ", ") + ff_compiler_Syntax.ff_core_Show_Show$ff_compiler_Syntax_Location.show_(z_.variableAt_)) + ", ") + ff_core_Option.ff_core_Show_Show$ff_core_Option_Option(ff_core_Show.ff_core_Show_Show$ff_core_String_String).show_(z_.variable_)) + ")")
1566
1523
  }
1567
- if(value_a.PAlias) {
1524
+ {
1568
1525
  const z_ = value_a;
1569
1526
  return ((((((("PAlias" + "(") + ff_compiler_Syntax.ff_core_Show_Show$ff_compiler_Syntax_Location.show_(z_.at_)) + ", ") + ff_compiler_Syntax.ff_core_Show_Show$ff_compiler_Syntax_MatchPattern.show_(z_.pattern_)) + ", ") + ff_core_Show.ff_core_Show_Show$ff_core_String_String.show_(z_.variable_)) + ")")
1570
1527
  }
@@ -1724,31 +1681,6 @@ return ((((((("Constraint" + "(") + ff_compiler_Syntax.ff_core_Show_Show$ff_comp
1724
1681
  }
1725
1682
  };
1726
1683
 
1727
- export const ff_core_Show_Show$ff_compiler_Syntax_Target = {
1728
- show_(value_) {
1729
- const value_a = value_;
1730
- if(value_a.FireflyTarget) {
1731
- const z_ = value_a;
1732
- return ((("FireflyTarget" + "(") + ff_compiler_Syntax.ff_core_Show_Show$ff_compiler_Syntax_Lambda.show_(z_.lambda_)) + ")")
1733
- }
1734
- if(value_a.ForeignTarget) {
1735
- const z_ = value_a;
1736
- return ((((("ForeignTarget" + "(") + ff_core_Option.ff_core_Show_Show$ff_core_Option_Option(ff_core_Show.ff_core_Show_Show$ff_core_String_String).show_(z_.syncCode_)) + ", ") + ff_core_Option.ff_core_Show_Show$ff_core_Option_Option(ff_core_Show.ff_core_Show_Show$ff_core_String_String).show_(z_.asyncCode_)) + ")")
1737
- }
1738
- },
1739
- async show_$(value_, $task) {
1740
- const value_a = value_;
1741
- if(value_a.FireflyTarget) {
1742
- const z_ = value_a;
1743
- return ((("FireflyTarget" + "(") + ff_compiler_Syntax.ff_core_Show_Show$ff_compiler_Syntax_Lambda.show_(z_.lambda_)) + ")")
1744
- }
1745
- if(value_a.ForeignTarget) {
1746
- const z_ = value_a;
1747
- return ((((("ForeignTarget" + "(") + ff_core_Option.ff_core_Show_Show$ff_core_Option_Option(ff_core_Show.ff_core_Show_Show$ff_core_String_String).show_(z_.syncCode_)) + ", ") + ff_core_Option.ff_core_Show_Show$ff_core_Option_Option(ff_core_Show.ff_core_Show_Show$ff_core_String_String).show_(z_.asyncCode_)) + ")")
1748
- }
1749
- }
1750
- };
1751
-
1752
1684
  export const ff_core_Show_Show$ff_compiler_Syntax_Type = {
1753
1685
  show_(value_) {
1754
1686
  const value_a = value_;
@@ -1756,7 +1688,7 @@ if(value_a.TConstructor) {
1756
1688
  const z_ = value_a;
1757
1689
  return ((((((("TConstructor" + "(") + ff_compiler_Syntax.ff_core_Show_Show$ff_compiler_Syntax_Location.show_(z_.at_)) + ", ") + ff_core_Show.ff_core_Show_Show$ff_core_String_String.show_(z_.name_)) + ", ") + ff_core_Show.ff_core_Show_Show$ff_core_List_List(ff_compiler_Syntax.ff_core_Show_Show$ff_compiler_Syntax_Type).show_(z_.generics_)) + ")")
1758
1690
  }
1759
- if(value_a.TVariable) {
1691
+ {
1760
1692
  const z_ = value_a;
1761
1693
  return ((((("TVariable" + "(") + ff_compiler_Syntax.ff_core_Show_Show$ff_compiler_Syntax_Location.show_(z_.at_)) + ", ") + ff_core_Show.ff_core_Show_Show$ff_core_Int_Int.show_(z_.index_)) + ")")
1762
1694
  }
@@ -1767,7 +1699,7 @@ if(value_a.TConstructor) {
1767
1699
  const z_ = value_a;
1768
1700
  return ((((((("TConstructor" + "(") + ff_compiler_Syntax.ff_core_Show_Show$ff_compiler_Syntax_Location.show_(z_.at_)) + ", ") + ff_core_Show.ff_core_Show_Show$ff_core_String_String.show_(z_.name_)) + ", ") + ff_core_Show.ff_core_Show_Show$ff_core_List_List(ff_compiler_Syntax.ff_core_Show_Show$ff_compiler_Syntax_Type).show_(z_.generics_)) + ")")
1769
1701
  }
1770
- if(value_a.TVariable) {
1702
+ {
1771
1703
  const z_ = value_a;
1772
1704
  return ((((("TVariable" + "(") + ff_compiler_Syntax.ff_core_Show_Show$ff_compiler_Syntax_Location.show_(z_.at_)) + ", ") + ff_core_Show.ff_core_Show_Show$ff_core_Int_Int.show_(z_.index_)) + ")")
1773
1705
  }
@@ -1785,7 +1717,7 @@ if(value_a.Unsafe) {
1785
1717
  const z_ = value_a;
1786
1718
  return "Unsafe"
1787
1719
  }
1788
- if(value_a.Trusted) {
1720
+ {
1789
1721
  const z_ = value_a;
1790
1722
  return "Trusted"
1791
1723
  }
@@ -1800,7 +1732,7 @@ if(value_a.Unsafe) {
1800
1732
  const z_ = value_a;
1801
1733
  return "Unsafe"
1802
1734
  }
1803
- if(value_a.Trusted) {
1735
+ {
1804
1736
  const z_ = value_a;
1805
1737
  return "Trusted"
1806
1738
  }
@@ -2108,7 +2040,7 @@ if((x_ === y_)) {
2108
2040
  return true
2109
2041
  }
2110
2042
  {
2111
- return (ff_compiler_Syntax.ff_core_Equal_Equal$ff_compiler_Syntax_Location.equals_(x_.at_, y_.at_) && (ff_compiler_Syntax.ff_core_Equal_Equal$ff_compiler_Syntax_Signature.equals_(x_.signature_, y_.signature_) && ff_compiler_Syntax.ff_core_Equal_Equal$ff_compiler_Syntax_Target.equals_(x_.body_, y_.body_)))
2043
+ return (ff_compiler_Syntax.ff_core_Equal_Equal$ff_compiler_Syntax_Location.equals_(x_.at_, y_.at_) && (ff_compiler_Syntax.ff_core_Equal_Equal$ff_compiler_Syntax_Signature.equals_(x_.signature_, y_.signature_) && ff_compiler_Syntax.ff_core_Equal_Equal$ff_compiler_Syntax_Lambda.equals_(x_.body_, y_.body_)))
2112
2044
  }
2113
2045
  },
2114
2046
  async equals_$(x_, y_, $task) {
@@ -2118,7 +2050,7 @@ if((x_ === y_)) {
2118
2050
  return true
2119
2051
  }
2120
2052
  {
2121
- return (ff_compiler_Syntax.ff_core_Equal_Equal$ff_compiler_Syntax_Location.equals_(x_.at_, y_.at_) && (ff_compiler_Syntax.ff_core_Equal_Equal$ff_compiler_Syntax_Signature.equals_(x_.signature_, y_.signature_) && ff_compiler_Syntax.ff_core_Equal_Equal$ff_compiler_Syntax_Target.equals_(x_.body_, y_.body_)))
2053
+ return (ff_compiler_Syntax.ff_core_Equal_Equal$ff_compiler_Syntax_Location.equals_(x_.at_, y_.at_) && (ff_compiler_Syntax.ff_core_Equal_Equal$ff_compiler_Syntax_Signature.equals_(x_.signature_, y_.signature_) && ff_compiler_Syntax.ff_core_Equal_Equal$ff_compiler_Syntax_Lambda.equals_(x_.body_, y_.body_)))
2122
2054
  }
2123
2055
  }
2124
2056
  };
@@ -2827,49 +2759,6 @@ return (ff_compiler_Syntax.ff_core_Equal_Equal$ff_compiler_Syntax_Location.equal
2827
2759
  }
2828
2760
  };
2829
2761
 
2830
- export const ff_core_Equal_Equal$ff_compiler_Syntax_Target = {
2831
- equals_(x_, y_) {
2832
- const x_a = x_;
2833
- const y_a = y_;
2834
- if((x_ === y_)) {
2835
- return true
2836
- }
2837
- if(x_a.FireflyTarget && y_a.FireflyTarget) {
2838
- const x_ = x_a;
2839
- const y_ = y_a;
2840
- return ff_compiler_Syntax.ff_core_Equal_Equal$ff_compiler_Syntax_Lambda.equals_(x_.lambda_, y_.lambda_)
2841
- }
2842
- if(x_a.ForeignTarget && y_a.ForeignTarget) {
2843
- const x_ = x_a;
2844
- const y_ = y_a;
2845
- return (ff_core_Option.ff_core_Equal_Equal$ff_core_Option_Option(ff_core_Equal.ff_core_Equal_Equal$ff_core_String_String).equals_(x_.syncCode_, y_.syncCode_) && ff_core_Option.ff_core_Equal_Equal$ff_core_Option_Option(ff_core_Equal.ff_core_Equal_Equal$ff_core_String_String).equals_(x_.asyncCode_, y_.asyncCode_))
2846
- }
2847
- {
2848
- return false
2849
- }
2850
- },
2851
- async equals_$(x_, y_, $task) {
2852
- const x_a = x_;
2853
- const y_a = y_;
2854
- if((x_ === y_)) {
2855
- return true
2856
- }
2857
- if(x_a.FireflyTarget && y_a.FireflyTarget) {
2858
- const x_ = x_a;
2859
- const y_ = y_a;
2860
- return ff_compiler_Syntax.ff_core_Equal_Equal$ff_compiler_Syntax_Lambda.equals_(x_.lambda_, y_.lambda_)
2861
- }
2862
- if(x_a.ForeignTarget && y_a.ForeignTarget) {
2863
- const x_ = x_a;
2864
- const y_ = y_a;
2865
- return (ff_core_Option.ff_core_Equal_Equal$ff_core_Option_Option(ff_core_Equal.ff_core_Equal_Equal$ff_core_String_String).equals_(x_.syncCode_, y_.syncCode_) && ff_core_Option.ff_core_Equal_Equal$ff_core_Option_Option(ff_core_Equal.ff_core_Equal_Equal$ff_core_String_String).equals_(x_.asyncCode_, y_.asyncCode_))
2866
- }
2867
- {
2868
- return false
2869
- }
2870
- }
2871
- };
2872
-
2873
2762
  export const ff_core_Equal_Equal$ff_compiler_Syntax_Type = {
2874
2763
  equals_(x_, y_) {
2875
2764
  const x_a = x_;
@@ -3675,7 +3564,7 @@ const signatureOrdering_ = ff_compiler_Syntax.ff_core_Ordering_Order$ff_compiler
3675
3564
  if((signatureOrdering_ !== ff_core_Ordering.OrderingSame())) {
3676
3565
  return signatureOrdering_
3677
3566
  } else {
3678
- const bodyOrdering_ = ff_compiler_Syntax.ff_core_Ordering_Order$ff_compiler_Syntax_Target.compare_(x_.body_, y_.body_);
3567
+ const bodyOrdering_ = ff_compiler_Syntax.ff_core_Ordering_Order$ff_compiler_Syntax_Lambda.compare_(x_.body_, y_.body_);
3679
3568
  if((bodyOrdering_ !== ff_core_Ordering.OrderingSame())) {
3680
3569
  return bodyOrdering_
3681
3570
  } else {
@@ -3701,7 +3590,7 @@ const signatureOrdering_ = ff_compiler_Syntax.ff_core_Ordering_Order$ff_compiler
3701
3590
  if((signatureOrdering_ !== ff_core_Ordering.OrderingSame())) {
3702
3591
  return signatureOrdering_
3703
3592
  } else {
3704
- const bodyOrdering_ = ff_compiler_Syntax.ff_core_Ordering_Order$ff_compiler_Syntax_Target.compare_(x_.body_, y_.body_);
3593
+ const bodyOrdering_ = ff_compiler_Syntax.ff_core_Ordering_Order$ff_compiler_Syntax_Lambda.compare_(x_.body_, y_.body_);
3705
3594
  if((bodyOrdering_ !== ff_core_Ordering.OrderingSame())) {
3706
3595
  return bodyOrdering_
3707
3596
  } else {
@@ -4691,7 +4580,7 @@ return 17
4691
4580
  if(z_a.EField) {
4692
4581
  return 18
4693
4582
  }
4694
- if(z_a.EWildcard) {
4583
+ {
4695
4584
  return 19
4696
4585
  }
4697
4586
  }
@@ -5209,7 +5098,7 @@ return 17
5209
5098
  if(z_a.EField) {
5210
5099
  return 18
5211
5100
  }
5212
- if(z_a.EWildcard) {
5101
+ {
5213
5102
  return 19
5214
5103
  }
5215
5104
  }
@@ -5268,7 +5157,7 @@ const z_a = z_;
5268
5157
  if(z_a.DynamicCall) {
5269
5158
  return 0
5270
5159
  }
5271
- if(z_a.StaticCall) {
5160
+ {
5272
5161
  return 1
5273
5162
  }
5274
5163
  }
@@ -5324,7 +5213,7 @@ const z_a = z_;
5324
5213
  if(z_a.DynamicCall) {
5325
5214
  return 0
5326
5215
  }
5327
- if(z_a.StaticCall) {
5216
+ {
5328
5217
  return 1
5329
5218
  }
5330
5219
  }
@@ -5558,7 +5447,7 @@ return 4
5558
5447
  if(z_a.PVariantAs) {
5559
5448
  return 5
5560
5449
  }
5561
- if(z_a.PAlias) {
5450
+ {
5562
5451
  return 6
5563
5452
  }
5564
5453
  }
@@ -5724,7 +5613,7 @@ return 4
5724
5613
  if(z_a.PVariantAs) {
5725
5614
  return 5
5726
5615
  }
5727
- if(z_a.PAlias) {
5616
+ {
5728
5617
  return 6
5729
5618
  }
5730
5619
  }
@@ -6318,101 +6207,6 @@ return
6318
6207
  }
6319
6208
  };
6320
6209
 
6321
- export const ff_core_Ordering_Order$ff_compiler_Syntax_Target = {
6322
- compare_(x_, y_) {
6323
- const x_a = x_;
6324
- const y_a = y_;
6325
- if((x_ === y_)) {
6326
- return ff_core_Ordering.OrderingSame()
6327
- }
6328
- if(x_a.FireflyTarget && y_a.FireflyTarget) {
6329
- const x_ = x_a;
6330
- const y_ = y_a;
6331
- const lambdaOrdering_ = ff_compiler_Syntax.ff_core_Ordering_Order$ff_compiler_Syntax_Lambda.compare_(x_.lambda_, y_.lambda_);
6332
- if((lambdaOrdering_ !== ff_core_Ordering.OrderingSame())) {
6333
- return lambdaOrdering_
6334
- } else {
6335
- return ff_core_Ordering.OrderingSame()
6336
- }
6337
- return
6338
- }
6339
- if(x_a.ForeignTarget && y_a.ForeignTarget) {
6340
- const x_ = x_a;
6341
- const y_ = y_a;
6342
- const syncCodeOrdering_ = ff_core_Option.ff_core_Ordering_Order$ff_core_Option_Option(ff_core_Ordering.ff_core_Ordering_Order$ff_core_String_String).compare_(x_.syncCode_, y_.syncCode_);
6343
- if((syncCodeOrdering_ !== ff_core_Ordering.OrderingSame())) {
6344
- return syncCodeOrdering_
6345
- } else {
6346
- const asyncCodeOrdering_ = ff_core_Option.ff_core_Ordering_Order$ff_core_Option_Option(ff_core_Ordering.ff_core_Ordering_Order$ff_core_String_String).compare_(x_.asyncCode_, y_.asyncCode_);
6347
- if((asyncCodeOrdering_ !== ff_core_Ordering.OrderingSame())) {
6348
- return asyncCodeOrdering_
6349
- } else {
6350
- return ff_core_Ordering.OrderingSame()
6351
- }
6352
- }
6353
- return
6354
- }
6355
- {
6356
- function number_(z_) {
6357
- const z_a = z_;
6358
- if(z_a.FireflyTarget) {
6359
- return 0
6360
- }
6361
- if(z_a.ForeignTarget) {
6362
- return 1
6363
- }
6364
- }
6365
- return ff_core_Ordering.ff_core_Ordering_Order$ff_core_Int_Int.compare_(number_(x_), number_(y_))
6366
- }
6367
- },
6368
- async compare_$(x_, y_, $task) {
6369
- const x_a = x_;
6370
- const y_a = y_;
6371
- if((x_ === y_)) {
6372
- return ff_core_Ordering.OrderingSame()
6373
- }
6374
- if(x_a.FireflyTarget && y_a.FireflyTarget) {
6375
- const x_ = x_a;
6376
- const y_ = y_a;
6377
- const lambdaOrdering_ = ff_compiler_Syntax.ff_core_Ordering_Order$ff_compiler_Syntax_Lambda.compare_(x_.lambda_, y_.lambda_);
6378
- if((lambdaOrdering_ !== ff_core_Ordering.OrderingSame())) {
6379
- return lambdaOrdering_
6380
- } else {
6381
- return ff_core_Ordering.OrderingSame()
6382
- }
6383
- return
6384
- }
6385
- if(x_a.ForeignTarget && y_a.ForeignTarget) {
6386
- const x_ = x_a;
6387
- const y_ = y_a;
6388
- const syncCodeOrdering_ = ff_core_Option.ff_core_Ordering_Order$ff_core_Option_Option(ff_core_Ordering.ff_core_Ordering_Order$ff_core_String_String).compare_(x_.syncCode_, y_.syncCode_);
6389
- if((syncCodeOrdering_ !== ff_core_Ordering.OrderingSame())) {
6390
- return syncCodeOrdering_
6391
- } else {
6392
- const asyncCodeOrdering_ = ff_core_Option.ff_core_Ordering_Order$ff_core_Option_Option(ff_core_Ordering.ff_core_Ordering_Order$ff_core_String_String).compare_(x_.asyncCode_, y_.asyncCode_);
6393
- if((asyncCodeOrdering_ !== ff_core_Ordering.OrderingSame())) {
6394
- return asyncCodeOrdering_
6395
- } else {
6396
- return ff_core_Ordering.OrderingSame()
6397
- }
6398
- }
6399
- return
6400
- }
6401
- {
6402
- function number_(z_) {
6403
- const z_a = z_;
6404
- if(z_a.FireflyTarget) {
6405
- return 0
6406
- }
6407
- if(z_a.ForeignTarget) {
6408
- return 1
6409
- }
6410
- }
6411
- return ff_core_Ordering.ff_core_Ordering_Order$ff_core_Int_Int.compare_(number_(x_), number_(y_))
6412
- }
6413
- }
6414
- };
6415
-
6416
6210
  export const ff_core_Ordering_Order$ff_compiler_Syntax_Type = {
6417
6211
  compare_(x_, y_) {
6418
6212
  const x_a = x_;
@@ -6463,7 +6257,7 @@ const z_a = z_;
6463
6257
  if(z_a.TConstructor) {
6464
6258
  return 0
6465
6259
  }
6466
- if(z_a.TVariable) {
6260
+ {
6467
6261
  return 1
6468
6262
  }
6469
6263
  }
@@ -6519,7 +6313,7 @@ const z_a = z_;
6519
6313
  if(z_a.TConstructor) {
6520
6314
  return 0
6521
6315
  }
6522
- if(z_a.TVariable) {
6316
+ {
6523
6317
  return 1
6524
6318
  }
6525
6319
  }
@@ -6544,7 +6338,7 @@ return 0
6544
6338
  if(z_a.Unsafe) {
6545
6339
  return 1
6546
6340
  }
6547
- if(z_a.Trusted) {
6341
+ {
6548
6342
  return 2
6549
6343
  }
6550
6344
  }
@@ -6566,7 +6360,7 @@ return 0
6566
6360
  if(z_a.Unsafe) {
6567
6361
  return 1
6568
6362
  }
6569
- if(z_a.Trusted) {
6363
+ {
6570
6364
  return 2
6571
6365
  }
6572
6366
  }
@@ -7392,7 +7186,7 @@ ff_core_Buffer.Buffer_setUint8(serialization_.buffer_, serialization_.offset_, 0
7392
7186
  serialization_.offset_ += 1;
7393
7187
  ff_compiler_Syntax.ff_core_Serializable_Serializable$ff_compiler_Syntax_Location.serializeUsing_(serialization_, v_.at_);
7394
7188
  ff_compiler_Syntax.ff_core_Serializable_Serializable$ff_compiler_Syntax_Signature.serializeUsing_(serialization_, v_.signature_);
7395
- ff_compiler_Syntax.ff_core_Serializable_Serializable$ff_compiler_Syntax_Target.serializeUsing_(serialization_, v_.body_)
7189
+ ff_compiler_Syntax.ff_core_Serializable_Serializable$ff_compiler_Syntax_Lambda.serializeUsing_(serialization_, v_.body_)
7396
7190
  return
7397
7191
  }
7398
7192
  },
@@ -7403,7 +7197,7 @@ serialization_.offset_ += 1;
7403
7197
  const _1 = variantIndex_;
7404
7198
  if(_1 === 0) {
7405
7199
  serialization_.checksum_ = ff_core_Int.Int_bitOr(((31 * serialization_.checksum_) + 28), 0);
7406
- return ff_compiler_Syntax.DFunction(ff_compiler_Syntax.ff_core_Serializable_Serializable$ff_compiler_Syntax_Location.deserializeUsing_(serialization_), ff_compiler_Syntax.ff_core_Serializable_Serializable$ff_compiler_Syntax_Signature.deserializeUsing_(serialization_), ff_compiler_Syntax.ff_core_Serializable_Serializable$ff_compiler_Syntax_Target.deserializeUsing_(serialization_))
7200
+ return ff_compiler_Syntax.DFunction(ff_compiler_Syntax.ff_core_Serializable_Serializable$ff_compiler_Syntax_Location.deserializeUsing_(serialization_), ff_compiler_Syntax.ff_core_Serializable_Serializable$ff_compiler_Syntax_Signature.deserializeUsing_(serialization_), ff_compiler_Syntax.ff_core_Serializable_Serializable$ff_compiler_Syntax_Lambda.deserializeUsing_(serialization_))
7407
7201
  }
7408
7202
  {
7409
7203
  throw Object.assign(new Error(), {ffException: ff_core_Any.toAny_(ff_core_Serializable.DeserializationChecksumException(), ff_core_Serializable.ff_core_Any_HasAnyTag$ff_core_Serializable_DeserializationChecksumException)})
@@ -7421,7 +7215,7 @@ ff_core_Buffer.Buffer_setUint8(serialization_.buffer_, serialization_.offset_, 0
7421
7215
  serialization_.offset_ += 1;
7422
7216
  ff_compiler_Syntax.ff_core_Serializable_Serializable$ff_compiler_Syntax_Location.serializeUsing_(serialization_, v_.at_);
7423
7217
  ff_compiler_Syntax.ff_core_Serializable_Serializable$ff_compiler_Syntax_Signature.serializeUsing_(serialization_, v_.signature_);
7424
- ff_compiler_Syntax.ff_core_Serializable_Serializable$ff_compiler_Syntax_Target.serializeUsing_(serialization_, v_.body_)
7218
+ ff_compiler_Syntax.ff_core_Serializable_Serializable$ff_compiler_Syntax_Lambda.serializeUsing_(serialization_, v_.body_)
7425
7219
  return
7426
7220
  }
7427
7221
  },
@@ -7432,7 +7226,7 @@ serialization_.offset_ += 1;
7432
7226
  const _1 = variantIndex_;
7433
7227
  if(_1 === 0) {
7434
7228
  serialization_.checksum_ = ff_core_Int.Int_bitOr(((31 * serialization_.checksum_) + 28), 0);
7435
- return ff_compiler_Syntax.DFunction(ff_compiler_Syntax.ff_core_Serializable_Serializable$ff_compiler_Syntax_Location.deserializeUsing_(serialization_), ff_compiler_Syntax.ff_core_Serializable_Serializable$ff_compiler_Syntax_Signature.deserializeUsing_(serialization_), ff_compiler_Syntax.ff_core_Serializable_Serializable$ff_compiler_Syntax_Target.deserializeUsing_(serialization_))
7229
+ return ff_compiler_Syntax.DFunction(ff_compiler_Syntax.ff_core_Serializable_Serializable$ff_compiler_Syntax_Location.deserializeUsing_(serialization_), ff_compiler_Syntax.ff_core_Serializable_Serializable$ff_compiler_Syntax_Signature.deserializeUsing_(serialization_), ff_compiler_Syntax.ff_core_Serializable_Serializable$ff_compiler_Syntax_Lambda.deserializeUsing_(serialization_))
7436
7230
  }
7437
7231
  {
7438
7232
  throw Object.assign(new Error(), {ffException: ff_core_Any.toAny_(ff_core_Serializable.DeserializationChecksumException(), ff_core_Serializable.ff_core_Any_HasAnyTag$ff_core_Serializable_DeserializationChecksumException)})
@@ -8003,7 +7797,7 @@ ff_compiler_Syntax.ff_core_Serializable_Serializable$ff_compiler_Syntax_Term.ser
8003
7797
  ff_core_Serializable.ff_core_Serializable_Serializable$ff_core_String_String.serializeUsing_(serialization_, v_.field_)
8004
7798
  return
8005
7799
  }
8006
- if(value_a.EWildcard) {
7800
+ {
8007
7801
  const v_ = value_a;
8008
7802
  serialization_.checksum_ = ff_core_Int.Int_bitOr(((31 * serialization_.checksum_) + 28), 0);
8009
7803
  ff_core_Serializable.Serialization_autoResize(serialization_, 1);
@@ -8322,7 +8116,7 @@ ff_compiler_Syntax.ff_core_Serializable_Serializable$ff_compiler_Syntax_Term.ser
8322
8116
  ff_core_Serializable.ff_core_Serializable_Serializable$ff_core_String_String.serializeUsing_(serialization_, v_.field_)
8323
8117
  return
8324
8118
  }
8325
- if(value_a.EWildcard) {
8119
+ {
8326
8120
  const v_ = value_a;
8327
8121
  serialization_.checksum_ = ff_core_Int.Int_bitOr(((31 * serialization_.checksum_) + 28), 0);
8328
8122
  ff_core_Serializable.Serialization_autoResize(serialization_, 1);
@@ -8439,7 +8233,7 @@ ff_compiler_Syntax.ff_core_Serializable_Serializable$ff_compiler_Syntax_Term.ser
8439
8233
  ff_core_Serializable.ff_core_Serializable_Serializable$ff_core_Bool_Bool.serializeUsing_(serialization_, v_.tailCall_)
8440
8234
  return
8441
8235
  }
8442
- if(value_a.StaticCall) {
8236
+ {
8443
8237
  const v_ = value_a;
8444
8238
  serialization_.checksum_ = ff_core_Int.Int_bitOr(((31 * serialization_.checksum_) + 29), 0);
8445
8239
  ff_core_Serializable.Serialization_autoResize(serialization_, 1);
@@ -8482,7 +8276,7 @@ ff_compiler_Syntax.ff_core_Serializable_Serializable$ff_compiler_Syntax_Term.ser
8482
8276
  ff_core_Serializable.ff_core_Serializable_Serializable$ff_core_Bool_Bool.serializeUsing_(serialization_, v_.tailCall_)
8483
8277
  return
8484
8278
  }
8485
- if(value_a.StaticCall) {
8279
+ {
8486
8280
  const v_ = value_a;
8487
8281
  serialization_.checksum_ = ff_core_Int.Int_bitOr(((31 * serialization_.checksum_) + 29), 0);
8488
8282
  ff_core_Serializable.Serialization_autoResize(serialization_, 1);
@@ -8644,7 +8438,7 @@ ff_compiler_Syntax.ff_core_Serializable_Serializable$ff_compiler_Syntax_Location
8644
8438
  ff_core_Option.ff_core_Serializable_Serializable$ff_core_Option_Option(ff_core_Serializable.ff_core_Serializable_Serializable$ff_core_String_String).serializeUsing_(serialization_, v_.variable_)
8645
8439
  return
8646
8440
  }
8647
- if(value_a.PAlias) {
8441
+ {
8648
8442
  const v_ = value_a;
8649
8443
  serialization_.checksum_ = ff_core_Int.Int_bitOr(((31 * serialization_.checksum_) + 25), 0);
8650
8444
  ff_core_Serializable.Serialization_autoResize(serialization_, 1);
@@ -8760,7 +8554,7 @@ ff_compiler_Syntax.ff_core_Serializable_Serializable$ff_compiler_Syntax_Location
8760
8554
  ff_core_Option.ff_core_Serializable_Serializable$ff_core_Option_Option(ff_core_Serializable.ff_core_Serializable_Serializable$ff_core_String_String).serializeUsing_(serialization_, v_.variable_)
8761
8555
  return
8762
8556
  }
8763
- if(value_a.PAlias) {
8557
+ {
8764
8558
  const v_ = value_a;
8765
8559
  serialization_.checksum_ = ff_core_Int.Int_bitOr(((31 * serialization_.checksum_) + 25), 0);
8766
8560
  ff_core_Serializable.Serialization_autoResize(serialization_, 1);
@@ -9379,91 +9173,6 @@ throw Object.assign(new Error(), {ffException: ff_core_Any.toAny_(ff_core_Serial
9379
9173
  }
9380
9174
  };
9381
9175
 
9382
- export const ff_core_Serializable_Serializable$ff_compiler_Syntax_Target = {
9383
- serializeUsing_(serialization_, value_) {
9384
- const serialization_a = serialization_;
9385
- const value_a = value_;
9386
- if(value_a.FireflyTarget) {
9387
- const v_ = value_a;
9388
- serialization_.checksum_ = ff_core_Int.Int_bitOr(((31 * serialization_.checksum_) + 32), 0);
9389
- ff_core_Serializable.Serialization_autoResize(serialization_, 1);
9390
- ff_core_Buffer.Buffer_setUint8(serialization_.buffer_, serialization_.offset_, 0);
9391
- serialization_.offset_ += 1;
9392
- ff_compiler_Syntax.ff_core_Serializable_Serializable$ff_compiler_Syntax_Lambda.serializeUsing_(serialization_, v_.lambda_)
9393
- return
9394
- }
9395
- if(value_a.ForeignTarget) {
9396
- const v_ = value_a;
9397
- serialization_.checksum_ = ff_core_Int.Int_bitOr(((31 * serialization_.checksum_) + 32), 0);
9398
- ff_core_Serializable.Serialization_autoResize(serialization_, 1);
9399
- ff_core_Buffer.Buffer_setUint8(serialization_.buffer_, serialization_.offset_, 1);
9400
- serialization_.offset_ += 1;
9401
- ff_core_Option.ff_core_Serializable_Serializable$ff_core_Option_Option(ff_core_Serializable.ff_core_Serializable_Serializable$ff_core_String_String).serializeUsing_(serialization_, v_.syncCode_);
9402
- ff_core_Option.ff_core_Serializable_Serializable$ff_core_Option_Option(ff_core_Serializable.ff_core_Serializable_Serializable$ff_core_String_String).serializeUsing_(serialization_, v_.asyncCode_)
9403
- return
9404
- }
9405
- },
9406
- deserializeUsing_(serialization_) {
9407
- const variantIndex_ = ff_core_Buffer.Buffer_grabUint8(serialization_.buffer_, serialization_.offset_);
9408
- serialization_.offset_ += 1;
9409
- {
9410
- const _1 = variantIndex_;
9411
- if(_1 === 0) {
9412
- serialization_.checksum_ = ff_core_Int.Int_bitOr(((31 * serialization_.checksum_) + 32), 0);
9413
- return ff_compiler_Syntax.FireflyTarget(ff_compiler_Syntax.ff_core_Serializable_Serializable$ff_compiler_Syntax_Lambda.deserializeUsing_(serialization_))
9414
- }
9415
- if(_1 === 1) {
9416
- serialization_.checksum_ = ff_core_Int.Int_bitOr(((31 * serialization_.checksum_) + 32), 0);
9417
- return ff_compiler_Syntax.ForeignTarget(ff_core_Option.ff_core_Serializable_Serializable$ff_core_Option_Option(ff_core_Serializable.ff_core_Serializable_Serializable$ff_core_String_String).deserializeUsing_(serialization_), ff_core_Option.ff_core_Serializable_Serializable$ff_core_Option_Option(ff_core_Serializable.ff_core_Serializable_Serializable$ff_core_String_String).deserializeUsing_(serialization_))
9418
- }
9419
- {
9420
- throw Object.assign(new Error(), {ffException: ff_core_Any.toAny_(ff_core_Serializable.DeserializationChecksumException(), ff_core_Serializable.ff_core_Any_HasAnyTag$ff_core_Serializable_DeserializationChecksumException)})
9421
- }
9422
- }
9423
- },
9424
- async serializeUsing_$(serialization_, value_, $task) {
9425
- const serialization_a = serialization_;
9426
- const value_a = value_;
9427
- if(value_a.FireflyTarget) {
9428
- const v_ = value_a;
9429
- serialization_.checksum_ = ff_core_Int.Int_bitOr(((31 * serialization_.checksum_) + 32), 0);
9430
- ff_core_Serializable.Serialization_autoResize(serialization_, 1);
9431
- ff_core_Buffer.Buffer_setUint8(serialization_.buffer_, serialization_.offset_, 0);
9432
- serialization_.offset_ += 1;
9433
- ff_compiler_Syntax.ff_core_Serializable_Serializable$ff_compiler_Syntax_Lambda.serializeUsing_(serialization_, v_.lambda_)
9434
- return
9435
- }
9436
- if(value_a.ForeignTarget) {
9437
- const v_ = value_a;
9438
- serialization_.checksum_ = ff_core_Int.Int_bitOr(((31 * serialization_.checksum_) + 32), 0);
9439
- ff_core_Serializable.Serialization_autoResize(serialization_, 1);
9440
- ff_core_Buffer.Buffer_setUint8(serialization_.buffer_, serialization_.offset_, 1);
9441
- serialization_.offset_ += 1;
9442
- ff_core_Option.ff_core_Serializable_Serializable$ff_core_Option_Option(ff_core_Serializable.ff_core_Serializable_Serializable$ff_core_String_String).serializeUsing_(serialization_, v_.syncCode_);
9443
- ff_core_Option.ff_core_Serializable_Serializable$ff_core_Option_Option(ff_core_Serializable.ff_core_Serializable_Serializable$ff_core_String_String).serializeUsing_(serialization_, v_.asyncCode_)
9444
- return
9445
- }
9446
- },
9447
- async deserializeUsing_$(serialization_, $task) {
9448
- const variantIndex_ = ff_core_Buffer.Buffer_grabUint8(serialization_.buffer_, serialization_.offset_);
9449
- serialization_.offset_ += 1;
9450
- {
9451
- const _1 = variantIndex_;
9452
- if(_1 === 0) {
9453
- serialization_.checksum_ = ff_core_Int.Int_bitOr(((31 * serialization_.checksum_) + 32), 0);
9454
- return ff_compiler_Syntax.FireflyTarget(ff_compiler_Syntax.ff_core_Serializable_Serializable$ff_compiler_Syntax_Lambda.deserializeUsing_(serialization_))
9455
- }
9456
- if(_1 === 1) {
9457
- serialization_.checksum_ = ff_core_Int.Int_bitOr(((31 * serialization_.checksum_) + 32), 0);
9458
- return ff_compiler_Syntax.ForeignTarget(ff_core_Option.ff_core_Serializable_Serializable$ff_core_Option_Option(ff_core_Serializable.ff_core_Serializable_Serializable$ff_core_String_String).deserializeUsing_(serialization_), ff_core_Option.ff_core_Serializable_Serializable$ff_core_Option_Option(ff_core_Serializable.ff_core_Serializable_Serializable$ff_core_String_String).deserializeUsing_(serialization_))
9459
- }
9460
- {
9461
- throw Object.assign(new Error(), {ffException: ff_core_Any.toAny_(ff_core_Serializable.DeserializationChecksumException(), ff_core_Serializable.ff_core_Any_HasAnyTag$ff_core_Serializable_DeserializationChecksumException)})
9462
- }
9463
- }
9464
- }
9465
- };
9466
-
9467
9176
  export const ff_core_Serializable_Serializable$ff_compiler_Syntax_Type = {
9468
9177
  serializeUsing_(serialization_, value_) {
9469
9178
  const serialization_a = serialization_;
@@ -9479,7 +9188,7 @@ ff_core_Serializable.ff_core_Serializable_Serializable$ff_core_String_String.ser
9479
9188
  ff_core_Serializable.ff_core_Serializable_Serializable$ff_core_List_List(ff_compiler_Syntax.ff_core_Serializable_Serializable$ff_compiler_Syntax_Type).serializeUsing_(serialization_, v_.generics_)
9480
9189
  return
9481
9190
  }
9482
- if(value_a.TVariable) {
9191
+ {
9483
9192
  const v_ = value_a;
9484
9193
  serialization_.checksum_ = ff_core_Int.Int_bitOr(((31 * serialization_.checksum_) + 28), 0);
9485
9194
  ff_core_Serializable.Serialization_autoResize(serialization_, 1);
@@ -9522,7 +9231,7 @@ ff_core_Serializable.ff_core_Serializable_Serializable$ff_core_String_String.ser
9522
9231
  ff_core_Serializable.ff_core_Serializable_Serializable$ff_core_List_List(ff_compiler_Syntax.ff_core_Serializable_Serializable$ff_compiler_Syntax_Type).serializeUsing_(serialization_, v_.generics_)
9523
9232
  return
9524
9233
  }
9525
- if(value_a.TVariable) {
9234
+ {
9526
9235
  const v_ = value_a;
9527
9236
  serialization_.checksum_ = ff_core_Int.Int_bitOr(((31 * serialization_.checksum_) + 28), 0);
9528
9237
  ff_core_Serializable.Serialization_autoResize(serialization_, 1);
@@ -9573,7 +9282,7 @@ ff_core_Buffer.Buffer_setUint8(serialization_.buffer_, serialization_.offset_, 1
9573
9282
  serialization_.offset_ += 1
9574
9283
  return
9575
9284
  }
9576
- if(value_a.Trusted) {
9285
+ {
9577
9286
  const v_ = value_a;
9578
9287
  serialization_.checksum_ = ff_core_Int.Int_bitOr(((31 * serialization_.checksum_) + 26), 0);
9579
9288
  ff_core_Serializable.Serialization_autoResize(serialization_, 1);
@@ -9623,7 +9332,7 @@ ff_core_Buffer.Buffer_setUint8(serialization_.buffer_, serialization_.offset_, 1
9623
9332
  serialization_.offset_ += 1
9624
9333
  return
9625
9334
  }
9626
- if(value_a.Trusted) {
9335
+ {
9627
9336
  const v_ = value_a;
9628
9337
  serialization_.checksum_ = ff_core_Int.Int_bitOr(((31 * serialization_.checksum_) + 26), 0);
9629
9338
  ff_core_Serializable.Serialization_autoResize(serialization_, 1);