@magnusopera/fscript 0.86.1 → 0.86.3
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.
- package/dist/FScript.Language/Ast.js +2 -2
- package/dist/FScript.Language/BuiltinFunctions.js +106 -61
- package/dist/FScript.Language/BuiltinSignatures.js +6 -6
- package/dist/FScript.Language/BuiltinTypes.js +1 -1
- package/dist/FScript.Language/Error.js +2 -2
- package/dist/FScript.Language/Eval.js +52 -60
- package/dist/FScript.Language/Execution.js +6 -6
- package/dist/FScript.Language/ExportSignatures.js +5 -5
- package/dist/FScript.Language/HostInterop.js +8 -8
- package/dist/FScript.Language/IncludeResolver.js +10 -10
- package/dist/FScript.Language/Interactive.js +7 -7
- package/dist/FScript.Language/Lexer.js +19 -11
- package/dist/FScript.Language/Parser.js +16 -16
- package/dist/FScript.Language/Pretty.js +4 -4
- package/dist/FScript.Language/Span.js +2 -2
- package/dist/FScript.Language/TaskFunctions.js +2 -2
- package/dist/FScript.Language/TaskSharingAnalysis.js +207 -197
- package/dist/FScript.Language/Token.js +2 -2
- package/dist/FScript.Language/TypeInfer.js +188 -168
- package/dist/FScript.Language/Types.js +8 -8
- package/dist/FScript.Language/Value.js +2 -2
- package/dist/Library.js +13 -13
- package/dist/fable_modules/fable-library-js.5.24.0/Async.js +363 -0
- package/dist/fable_modules/{fable-library-js.5.13.0 → fable-library-js.5.24.0}/AsyncBuilder.js +70 -10
- package/dist/fable_modules/{fable-library-js.5.13.0 → fable-library-js.5.24.0}/CHANGELOG.md +90 -1
- package/dist/fable_modules/{fable-library-js.5.13.0 → fable-library-js.5.24.0}/CollectionUtil.js +10 -16
- package/dist/fable_modules/fable-library-js.5.24.0/DateOnlyTemporal.js +146 -0
- package/dist/fable_modules/fable-library-js.5.24.0/DateTimeFormat.js +523 -0
- package/dist/fable_modules/fable-library-js.5.24.0/DateTimeOffsetTemporal.js +283 -0
- package/dist/fable_modules/fable-library-js.5.24.0/DateTimeTemporal.js +243 -0
- package/dist/fable_modules/{fable-library-js.5.13.0 → fable-library-js.5.24.0}/Decimal.js +100 -11
- package/dist/fable_modules/{fable-library-js.5.13.0 → fable-library-js.5.24.0}/Encoding.js +23 -16
- package/dist/fable_modules/{fable-library-js.5.13.0 → fable-library-js.5.24.0}/Guid.js +3 -1
- package/dist/fable_modules/{fable-library-js.5.13.0 → fable-library-js.5.24.0}/MailboxProcessor.js +23 -3
- package/dist/fable_modules/{fable-library-js.5.13.0 → fable-library-js.5.24.0}/MutableMap.js +5 -1
- package/dist/fable_modules/{fable-library-js.5.13.0 → fable-library-js.5.24.0}/MutableSet.js +5 -1
- package/dist/fable_modules/{fable-library-js.5.13.0 → fable-library-js.5.24.0}/Numeric.js +38 -1
- package/dist/fable_modules/fable-library-js.5.24.0/Stopwatch.js +65 -0
- package/dist/fable_modules/{fable-library-js.5.13.0 → fable-library-js.5.24.0}/String.js +43 -9
- package/dist/fable_modules/{fable-library-js.5.13.0 → fable-library-js.5.24.0}/System.Text.js +9 -9
- package/dist/fable_modules/{fable-library-js.5.13.0 → fable-library-js.5.24.0}/Task.js +22 -0
- package/dist/fable_modules/fable-library-js.5.24.0/TimeOnlyTemporal.js +142 -0
- package/dist/fable_modules/fable-library-js.5.24.0/TimeSpanTemporal.js +259 -0
- package/dist/fable_modules/{fable-library-js.5.13.0 → fable-library-js.5.24.0}/Util.js +15 -3
- package/dist/fable_modules/{fable-library-js.5.13.0 → fable-library-js.5.24.0}/big.d.ts +1 -0
- package/dist/fable_modules/{fable-library-js.5.13.0 → fable-library-js.5.24.0}/lib/big.js +111 -64
- package/dist/fable_modules/{fable-library-js.5.13.0 → fable-library-js.5.24.0}/package.json +1 -1
- package/dist/fable_modules/{fable-library-js.5.13.0 → fable-library-js.5.24.0}/quotation.js +47 -0
- package/dist/fable_modules/project_cracked.json +1 -1
- package/package.json +1 -1
- package/dist/fable_modules/fable-library-js.5.13.0/Async.js +0 -163
- /package/dist/fable_modules/{fable-library-js.5.13.0 → fable-library-js.5.24.0}/Array.js +0 -0
- /package/dist/fable_modules/{fable-library-js.5.13.0 → fable-library-js.5.24.0}/BigInt.js +0 -0
- /package/dist/fable_modules/{fable-library-js.5.13.0 → fable-library-js.5.24.0}/BitConverter.js +0 -0
- /package/dist/fable_modules/{fable-library-js.5.13.0 → fable-library-js.5.24.0}/Boolean.js +0 -0
- /package/dist/fable_modules/{fable-library-js.5.13.0 → fable-library-js.5.24.0}/Char.js +0 -0
- /package/dist/fable_modules/{fable-library-js.5.13.0 → fable-library-js.5.24.0}/Choice.js +0 -0
- /package/dist/fable_modules/{fable-library-js.5.13.0 → fable-library-js.5.24.0}/ConditionalWeakTable.js +0 -0
- /package/dist/fable_modules/{fable-library-js.5.13.0 → fable-library-js.5.24.0}/Date.js +0 -0
- /package/dist/fable_modules/{fable-library-js.5.13.0 → fable-library-js.5.24.0}/DateOffset.js +0 -0
- /package/dist/fable_modules/{fable-library-js.5.13.0 → fable-library-js.5.24.0}/DateOnly.js +0 -0
- /package/dist/fable_modules/{fable-library-js.5.13.0 → fable-library-js.5.24.0}/Directory.js +0 -0
- /package/dist/fable_modules/{fable-library-js.5.13.0 → fable-library-js.5.24.0}/Double.js +0 -0
- /package/dist/fable_modules/{fable-library-js.5.13.0 → fable-library-js.5.24.0}/Environment.js +0 -0
- /package/dist/fable_modules/{fable-library-js.5.13.0 → fable-library-js.5.24.0}/Event.js +0 -0
- /package/dist/fable_modules/{fable-library-js.5.13.0 → fable-library-js.5.24.0}/FSharp.Collections.js +0 -0
- /package/dist/fable_modules/{fable-library-js.5.13.0 → fable-library-js.5.24.0}/FSharp.Core.CompilerServices.js +0 -0
- /package/dist/fable_modules/{fable-library-js.5.13.0 → fable-library-js.5.24.0}/FSharp.Core.js +0 -0
- /package/dist/fable_modules/{fable-library-js.5.13.0 → fable-library-js.5.24.0}/File.js +0 -0
- /package/dist/fable_modules/{fable-library-js.5.13.0 → fable-library-js.5.24.0}/Global.js +0 -0
- /package/dist/fable_modules/{fable-library-js.5.13.0 → fable-library-js.5.24.0}/Int32.js +0 -0
- /package/dist/fable_modules/{fable-library-js.5.13.0 → fable-library-js.5.24.0}/List.js +0 -0
- /package/dist/fable_modules/{fable-library-js.5.13.0 → fable-library-js.5.24.0}/Long.js +0 -0
- /package/dist/fable_modules/{fable-library-js.5.13.0 → fable-library-js.5.24.0}/Map.js +0 -0
- /package/dist/fable_modules/{fable-library-js.5.13.0 → fable-library-js.5.24.0}/MapUtil.js +0 -0
- /package/dist/fable_modules/{fable-library-js.5.13.0 → fable-library-js.5.24.0}/Native.js +0 -0
- /package/dist/fable_modules/{fable-library-js.5.13.0 → fable-library-js.5.24.0}/Observable.js +0 -0
- /package/dist/fable_modules/{fable-library-js.5.13.0 → fable-library-js.5.24.0}/Option.js +0 -0
- /package/dist/fable_modules/{fable-library-js.5.13.0 → fable-library-js.5.24.0}/Path.js +0 -0
- /package/dist/fable_modules/{fable-library-js.5.13.0 → fable-library-js.5.24.0}/README.md +0 -0
- /package/dist/fable_modules/{fable-library-js.5.13.0 → fable-library-js.5.24.0}/Random.js +0 -0
- /package/dist/fable_modules/{fable-library-js.5.13.0 → fable-library-js.5.24.0}/Range.js +0 -0
- /package/dist/fable_modules/{fable-library-js.5.13.0 → fable-library-js.5.24.0}/Reflection.js +0 -0
- /package/dist/fable_modules/{fable-library-js.5.13.0 → fable-library-js.5.24.0}/RegExp.js +0 -0
- /package/dist/fable_modules/{fable-library-js.5.13.0 → fable-library-js.5.24.0}/Result.js +0 -0
- /package/dist/fable_modules/{fable-library-js.5.13.0 → fable-library-js.5.24.0}/Seq.js +0 -0
- /package/dist/fable_modules/{fable-library-js.5.13.0 → fable-library-js.5.24.0}/Seq2.js +0 -0
- /package/dist/fable_modules/{fable-library-js.5.13.0 → fable-library-js.5.24.0}/Set.js +0 -0
- /package/dist/fable_modules/{fable-library-js.5.13.0 → fable-library-js.5.24.0}/System.Collections.Generic.js +0 -0
- /package/dist/fable_modules/{fable-library-js.5.13.0 → fable-library-js.5.24.0}/System.js +0 -0
- /package/dist/fable_modules/{fable-library-js.5.13.0 → fable-library-js.5.24.0}/TaskBuilder.js +0 -0
- /package/dist/fable_modules/{fable-library-js.5.13.0 → fable-library-js.5.24.0}/TimeOnly.js +0 -0
- /package/dist/fable_modules/{fable-library-js.5.13.0 → fable-library-js.5.24.0}/TimeSpan.js +0 -0
- /package/dist/fable_modules/{fable-library-js.5.13.0 → fable-library-js.5.24.0}/Timer.js +0 -0
- /package/dist/fable_modules/{fable-library-js.5.13.0 → fable-library-js.5.24.0}/Types.js +0 -0
- /package/dist/fable_modules/{fable-library-js.5.13.0 → fable-library-js.5.24.0}/Unicode.13.0.0.js +0 -0
- /package/dist/fable_modules/{fable-library-js.5.13.0 → fable-library-js.5.24.0}/Uri.js +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
|
|
2
|
-
import { Union, Record } from "../fable_modules/fable-library-js.5.
|
|
3
|
-
import { float64_type, int64_type, union_type, option_type, list_type, tuple_type, bool_type, record_type, string_type } from "../fable_modules/fable-library-js.5.
|
|
2
|
+
import { Union, Record } from "../fable_modules/fable-library-js.5.24.0/Types.js";
|
|
3
|
+
import { float64_type, int64_type, union_type, option_type, list_type, tuple_type, bool_type, record_type, string_type } from "../fable_modules/fable-library-js.5.24.0/Reflection.js";
|
|
4
4
|
import { Span_$reflection } from "./Span.js";
|
|
5
5
|
|
|
6
6
|
export class BackendImport extends Record {
|
|
@@ -1,24 +1,25 @@
|
|
|
1
1
|
|
|
2
2
|
import { Span, Position } from "./Span.js";
|
|
3
3
|
import { EvalException, EvalError$ } from "./Error.js";
|
|
4
|
-
import { FSharpMap__Remove, toList, add, FSharpMap__Add, FSharpMap__ContainsKey, FSharpMap__TryFind, empty as empty_1,
|
|
4
|
+
import { FSharpMap__Remove, toList, add, FSharpMap__Add, FSharpMap__ContainsKey, FSharpMap__TryFind, empty as empty_1, forAll, FSharpMap__get_Count, tryFind } from "../fable_modules/fable-library-js.5.24.0/Map.js";
|
|
5
5
|
import { builtinSchemes } from "./BuiltinSignatures.js";
|
|
6
|
-
import {
|
|
7
|
-
import { endsWith, split, join, substring, indexOf, replace, format, concat } from "../fable_modules/fable-library-js.5.
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import { Execution_fold, Execution_execution, Execution_Builder__For_Z3A5BE4A, Execution$1__get_IsImmediate, Execution_map, Execution$1, Execution_run } from "./Execution.js";
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import { tryParse
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
6
|
+
import { compare as compare_1, equals as equals_1, curry2, defaultOf, Exception } from "../fable_modules/fable-library-js.5.24.0/Util.js";
|
|
7
|
+
import { endsWith, split, join, substring, indexOf, replace, format, concat } from "../fable_modules/fable-library-js.5.24.0/String.js";
|
|
8
|
+
import { FSharpRef, Record } from "../fable_modules/fable-library-js.5.24.0/Types.js";
|
|
9
|
+
import { Value, MapKey, ExternalFunction, Value_$reflection } from "./Value.js";
|
|
10
|
+
import { Execution_fold, Execution_execution, Execution_Builder__For_Z3A5BE4A, Execution$1__get_IsImmediate, Execution_map, Execution$1, Execution_run, Execution$1_$reflection } from "./Execution.js";
|
|
11
|
+
import { record_type, list_type, lambda_type } from "../fable_modules/fable-library-js.5.24.0/Reflection.js";
|
|
12
|
+
import { Dictionary } from "../fable_modules/fable-library-js.5.24.0/MutableMap.js";
|
|
13
|
+
import { HashIdentity_Reference } from "../fable_modules/fable-library-js.5.24.0/FSharp.Collections.js";
|
|
14
|
+
import { tryGetValue, addToDict } from "../fable_modules/fable-library-js.5.24.0/MapUtil.js";
|
|
15
|
+
import { tryParse } from "../fable_modules/fable-library-js.5.24.0/Long.js";
|
|
16
|
+
import { tryParse as tryParse_1 } from "../fable_modules/fable-library-js.5.24.0/Double.js";
|
|
17
|
+
import { append, tryHead, choose, concat as concat_1, ofArray, map, exists as exists_1, fold, forAll2, length as length_1, empty, reverse, cons, tail as tail_1, head as head_1, isEmpty } from "../fable_modules/fable-library-js.5.24.0/List.js";
|
|
18
|
+
import { compare, op_Addition, toInt32_unchecked, fromInt32, toInt64_unchecked, equals } from "../fable_modules/fable-library-js.5.24.0/BigInt.js";
|
|
19
|
+
import { exists } from "../fable_modules/fable-library-js.5.24.0/Seq.js";
|
|
20
|
+
import { some, toArray } from "../fable_modules/fable-library-js.5.24.0/Option.js";
|
|
19
21
|
import { $007CRecordFields$007C_$007C } from "./HostInterop.js";
|
|
20
|
-
import { tryParse as tryParse_2 } from "../fable_modules/fable-library-js.5.
|
|
21
|
-
import { some } from "../fable_modules/fable-library-js.5.13.0/Option.js";
|
|
22
|
+
import { tryParse as tryParse_2 } from "../fable_modules/fable-library-js.5.24.0/Boolean.js";
|
|
22
23
|
|
|
23
24
|
const unknownSpan = new Span(new Position(undefined, 0, 0), new Position(undefined, 0, 0));
|
|
24
25
|
|
|
@@ -36,11 +37,22 @@ function scheme(name) {
|
|
|
36
37
|
}
|
|
37
38
|
}
|
|
38
39
|
|
|
40
|
+
class ResumableImplementation extends Record {
|
|
41
|
+
constructor(Invoke) {
|
|
42
|
+
super();
|
|
43
|
+
this.Invoke = Invoke;
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
function ResumableImplementation_$reflection() {
|
|
48
|
+
return record_type("FScript.Language.BuiltinFunctions.ResumableImplementation", [], ResumableImplementation, () => [["Invoke", lambda_type(lambda_type(Value_$reflection(), lambda_type(Value_$reflection(), Execution$1_$reflection(Value_$reflection()))), lambda_type(list_type(Value_$reflection()), Execution$1_$reflection(Value_$reflection())))]]);
|
|
49
|
+
}
|
|
50
|
+
|
|
39
51
|
const implementations = new Dictionary([], HashIdentity_Reference());
|
|
40
52
|
|
|
41
53
|
function resumable(name, arity, implementation) {
|
|
42
54
|
const descriptor = new ExternalFunction(name, scheme(name), (context, arguments$) => Execution_run(implementation((f) => ((a) => (new Execution$1(context.Apply(f, a), defaultOf()))), arguments$)), arity);
|
|
43
|
-
addToDict(implementations, descriptor,
|
|
55
|
+
addToDict(implementations, descriptor, new ResumableImplementation(implementation));
|
|
44
56
|
return descriptor;
|
|
45
57
|
}
|
|
46
58
|
|
|
@@ -48,10 +60,10 @@ export function tryExecution(descriptor) {
|
|
|
48
60
|
let matchValue;
|
|
49
61
|
let outArg = defaultOf();
|
|
50
62
|
matchValue = [tryGetValue(implementations, descriptor, new FSharpRef(() => outArg, (v) => {
|
|
51
|
-
outArg =
|
|
63
|
+
outArg = v;
|
|
52
64
|
})), outArg];
|
|
53
65
|
if (matchValue[0]) {
|
|
54
|
-
return matchValue[1];
|
|
66
|
+
return curry2(matchValue[1].Invoke);
|
|
55
67
|
}
|
|
56
68
|
else {
|
|
57
69
|
return undefined;
|
|
@@ -536,18 +548,14 @@ function valueEquals(a_mut, b_mut) {
|
|
|
536
548
|
return false;
|
|
537
549
|
}
|
|
538
550
|
case 7:
|
|
539
|
-
if (
|
|
540
|
-
|
|
541
|
-
}).Equals(ofSeq(FSharpMap__get_Keys(yf), {
|
|
542
|
-
Compare: (x_5, y_5) => (comparePrimitives(x_5, y_5) | 0),
|
|
543
|
-
}))) {
|
|
544
|
-
return forAll((k, xv) => valueEquals(xv, FSharpMap__get_Item(yf, k)), xf);
|
|
551
|
+
if (FSharpMap__get_Count(xf) === FSharpMap__get_Count(yf)) {
|
|
552
|
+
return forAll((key, value) => exists((b_3) => valueEquals(value, b_3), toArray(tryFind(key, yf))), xf);
|
|
545
553
|
}
|
|
546
554
|
else {
|
|
547
555
|
return false;
|
|
548
556
|
}
|
|
549
557
|
default: {
|
|
550
|
-
let matchResult_1, xf_1, yf_1,
|
|
558
|
+
let matchResult_1, xf_1, yf_1, x_4, y_4, cx, cy, px, py, tx, ty, tx_1, ty_1;
|
|
551
559
|
switch (a.tag) {
|
|
552
560
|
case 8: {
|
|
553
561
|
if (b.tag === 8) {
|
|
@@ -565,8 +573,8 @@ function valueEquals(a_mut, b_mut) {
|
|
|
565
573
|
if (b.tag === 9) {
|
|
566
574
|
if (b.fields[0] != null) {
|
|
567
575
|
matchResult_1 = 2;
|
|
568
|
-
|
|
569
|
-
|
|
576
|
+
x_4 = a.fields[0];
|
|
577
|
+
y_4 = b.fields[0];
|
|
570
578
|
}
|
|
571
579
|
else {
|
|
572
580
|
matchResult_1 = 5;
|
|
@@ -620,12 +628,8 @@ function valueEquals(a_mut, b_mut) {
|
|
|
620
628
|
}
|
|
621
629
|
switch (matchResult_1) {
|
|
622
630
|
case 0:
|
|
623
|
-
if (
|
|
624
|
-
|
|
625
|
-
}).Equals(ofSeq(FSharpMap__get_Keys(yf_1), {
|
|
626
|
-
Compare: (x_7, y_7) => (compare(x_7, y_7) | 0),
|
|
627
|
-
}))) {
|
|
628
|
-
return forAll((k_1, xv_1) => valueEquals(xv_1, FSharpMap__get_Item(yf_1, k_1)), xf_1);
|
|
631
|
+
if (FSharpMap__get_Count(xf_1) === FSharpMap__get_Count(yf_1)) {
|
|
632
|
+
return forAll((key_1, value_1) => exists((b_4) => valueEquals(value_1, b_4), toArray(tryFind(key_1, yf_1))), xf_1);
|
|
629
633
|
}
|
|
630
634
|
else {
|
|
631
635
|
return false;
|
|
@@ -633,17 +637,17 @@ function valueEquals(a_mut, b_mut) {
|
|
|
633
637
|
case 1:
|
|
634
638
|
return true;
|
|
635
639
|
case 2: {
|
|
636
|
-
a_mut =
|
|
637
|
-
b_mut =
|
|
640
|
+
a_mut = x_4;
|
|
641
|
+
b_mut = y_4;
|
|
638
642
|
continue valueEquals;
|
|
639
643
|
}
|
|
640
644
|
case 3:
|
|
641
645
|
if ((tx === ty) && (cx === cy)) {
|
|
642
|
-
let matchResult_2,
|
|
646
|
+
let matchResult_2, xv, yv;
|
|
643
647
|
if (px != null) {
|
|
644
648
|
if (py != null) {
|
|
645
649
|
matchResult_2 = 1;
|
|
646
|
-
|
|
650
|
+
xv = px;
|
|
647
651
|
yv = py;
|
|
648
652
|
}
|
|
649
653
|
else {
|
|
@@ -660,7 +664,7 @@ function valueEquals(a_mut, b_mut) {
|
|
|
660
664
|
case 0:
|
|
661
665
|
return true;
|
|
662
666
|
case 1: {
|
|
663
|
-
a_mut =
|
|
667
|
+
a_mut = xv;
|
|
664
668
|
b_mut = yv;
|
|
665
669
|
continue valueEquals;
|
|
666
670
|
}
|
|
@@ -684,7 +688,7 @@ function valueEquals(a_mut, b_mut) {
|
|
|
684
688
|
|
|
685
689
|
function distinctValues(values) {
|
|
686
690
|
return reverse(fold((acc, value) => {
|
|
687
|
-
if (
|
|
691
|
+
if (exists_1((existing) => valueEquals(existing, value), acc)) {
|
|
688
692
|
return acc;
|
|
689
693
|
}
|
|
690
694
|
else {
|
|
@@ -1177,11 +1181,26 @@ const builtinListChoose = resumable("List.choose", 2, (apply, args) => {
|
|
|
1177
1181
|
}
|
|
1178
1182
|
switch (matchResult) {
|
|
1179
1183
|
case 0: {
|
|
1180
|
-
|
|
1181
|
-
|
|
1184
|
+
let results = empty();
|
|
1185
|
+
const second = () => (new Execution$1(new Value(/* VList */ 5, [reverse(results)]), defaultOf()));
|
|
1186
|
+
const body_2 = Execution_Builder__For_Z3A5BE4A(Execution_execution, values, (_arg) => {
|
|
1187
|
+
const body_1 = apply(callback)(_arg);
|
|
1182
1188
|
if (Execution$1__get_IsImmediate(body_1)) {
|
|
1183
1189
|
const result = body_1.Value;
|
|
1184
|
-
|
|
1190
|
+
if (result.tag === 9) {
|
|
1191
|
+
if (result.fields[0] == null) {
|
|
1192
|
+
return new Execution$1(undefined, defaultOf());
|
|
1193
|
+
}
|
|
1194
|
+
else {
|
|
1195
|
+
const item = result.fields[0];
|
|
1196
|
+
results = cons(item, results);
|
|
1197
|
+
return new Execution$1(undefined, defaultOf());
|
|
1198
|
+
}
|
|
1199
|
+
}
|
|
1200
|
+
else {
|
|
1201
|
+
fail("List.choose chooser must return option");
|
|
1202
|
+
return new Execution$1(undefined, defaultOf());
|
|
1203
|
+
}
|
|
1185
1204
|
}
|
|
1186
1205
|
else {
|
|
1187
1206
|
return new Execution$1(defaultOf(), (continuation) => {
|
|
@@ -1189,7 +1208,20 @@ const builtinListChoose = resumable("List.choose", 2, (apply, args) => {
|
|
|
1189
1208
|
if (Execution$1__get_IsImmediate(execution_1)) {
|
|
1190
1209
|
let execution;
|
|
1191
1210
|
const result = execution_1.Value;
|
|
1192
|
-
|
|
1211
|
+
if (result.tag === 9) {
|
|
1212
|
+
if (result.fields[0] == null) {
|
|
1213
|
+
execution = (new Execution$1(undefined, defaultOf()));
|
|
1214
|
+
}
|
|
1215
|
+
else {
|
|
1216
|
+
const item = result.fields[0];
|
|
1217
|
+
results = cons(item, results);
|
|
1218
|
+
execution = (new Execution$1(undefined, defaultOf()));
|
|
1219
|
+
}
|
|
1220
|
+
}
|
|
1221
|
+
else {
|
|
1222
|
+
fail("List.choose chooser must return option");
|
|
1223
|
+
execution = (new Execution$1(undefined, defaultOf()));
|
|
1224
|
+
}
|
|
1193
1225
|
const continuation_1 = continuation;
|
|
1194
1226
|
if (Execution$1__get_IsImmediate(execution)) {
|
|
1195
1227
|
return continuation_1(execution.Value);
|
|
@@ -1199,21 +1231,34 @@ const builtinListChoose = resumable("List.choose", 2, (apply, args) => {
|
|
|
1199
1231
|
}
|
|
1200
1232
|
}
|
|
1201
1233
|
else {
|
|
1202
|
-
return execution_1.Resume((
|
|
1234
|
+
return execution_1.Resume((value_4) => {
|
|
1203
1235
|
let execution;
|
|
1204
|
-
const result =
|
|
1205
|
-
|
|
1236
|
+
const result = value_4;
|
|
1237
|
+
if (result.tag === 9) {
|
|
1238
|
+
if (result.fields[0] == null) {
|
|
1239
|
+
execution = (new Execution$1(undefined, defaultOf()));
|
|
1240
|
+
}
|
|
1241
|
+
else {
|
|
1242
|
+
const item = result.fields[0];
|
|
1243
|
+
results = cons(item, results);
|
|
1244
|
+
execution = (new Execution$1(undefined, defaultOf()));
|
|
1245
|
+
}
|
|
1246
|
+
}
|
|
1247
|
+
else {
|
|
1248
|
+
fail("List.choose chooser must return option");
|
|
1249
|
+
execution = (new Execution$1(undefined, defaultOf()));
|
|
1250
|
+
}
|
|
1206
1251
|
const continuation_1 = continuation;
|
|
1207
1252
|
return Execution$1__get_IsImmediate(execution) ? continuation_1(execution.Value) : execution.Resume(continuation_1);
|
|
1208
1253
|
});
|
|
1209
1254
|
}
|
|
1210
1255
|
});
|
|
1211
1256
|
}
|
|
1212
|
-
}
|
|
1213
|
-
return Execution$1__get_IsImmediate(
|
|
1214
|
-
const execution_3 =
|
|
1257
|
+
});
|
|
1258
|
+
return Execution$1__get_IsImmediate(body_2) ? second() : (new Execution$1(defaultOf(), (continuation_3) => {
|
|
1259
|
+
const execution_3 = body_2;
|
|
1215
1260
|
if (Execution$1__get_IsImmediate(execution_3)) {
|
|
1216
|
-
const execution_2 =
|
|
1261
|
+
const execution_2 = second();
|
|
1217
1262
|
const continuation_4 = continuation_3;
|
|
1218
1263
|
if (Execution$1__get_IsImmediate(execution_2)) {
|
|
1219
1264
|
return continuation_4(execution_2.Value);
|
|
@@ -1223,8 +1268,8 @@ const builtinListChoose = resumable("List.choose", 2, (apply, args) => {
|
|
|
1223
1268
|
}
|
|
1224
1269
|
}
|
|
1225
1270
|
else {
|
|
1226
|
-
return execution_3.Resume((
|
|
1227
|
-
const execution_2 =
|
|
1271
|
+
return execution_3.Resume((value_7) => {
|
|
1272
|
+
const execution_2 = second();
|
|
1228
1273
|
const continuation_4 = continuation_3;
|
|
1229
1274
|
return Execution$1__get_IsImmediate(execution_2) ? continuation_4(execution_2.Value) : execution_2.Resume(continuation_4);
|
|
1230
1275
|
});
|
|
@@ -1439,7 +1484,7 @@ const builtinListContains = new ExternalFunction("List.contains", scheme("List.c
|
|
|
1439
1484
|
}
|
|
1440
1485
|
switch (matchResult) {
|
|
1441
1486
|
case 0:
|
|
1442
|
-
return new Value(/* VBool */ 3, [
|
|
1487
|
+
return new Value(/* VBool */ 3, [exists_1((value) => {
|
|
1443
1488
|
let matchResult_1, x, y, x_1, y_1, x_2, y_2, x_3, y_3;
|
|
1444
1489
|
switch (value.tag) {
|
|
1445
1490
|
case 0: {
|
|
@@ -1914,7 +1959,7 @@ const builtinListTryItem = new ExternalFunction("List.tryItem", scheme("List.try
|
|
|
1914
1959
|
break;
|
|
1915
1960
|
}
|
|
1916
1961
|
};
|
|
1917
|
-
return (
|
|
1962
|
+
return (compare(index, 0n) < 0) ? (new Value(/* VOption */ 9, [undefined])) : (new Value(/* VOption */ 9, [loop(values, 0n)]));
|
|
1918
1963
|
}
|
|
1919
1964
|
default:
|
|
1920
1965
|
return fail("List.tryItem expects (index, values)");
|
|
@@ -2190,7 +2235,7 @@ const builtinOptionMap = resumable("Option.map", 2, (apply, args) => {
|
|
|
2190
2235
|
});
|
|
2191
2236
|
|
|
2192
2237
|
const builtinMapEmpty = new ExternalFunction("Map.empty", scheme("Map.empty"), (_arg, _arg_1) => (new Value(/* VMap */ 8, [empty_1({
|
|
2193
|
-
Compare: (x, y) => (
|
|
2238
|
+
Compare: (x, y) => (compare_1(x, y) | 0),
|
|
2194
2239
|
})])), 0);
|
|
2195
2240
|
|
|
2196
2241
|
const builtinMapTryGet = new ExternalFunction("Map.tryGet", scheme("Map.tryGet"), (_arg, args) => {
|
|
@@ -2351,7 +2396,7 @@ const builtinMapOfList = new ExternalFunction("Map.ofList", scheme("Map.ofList")
|
|
|
2351
2396
|
return fail("Map.ofList expects [(key * value)]");
|
|
2352
2397
|
}
|
|
2353
2398
|
}, empty_1({
|
|
2354
|
-
Compare: (x, y) => (
|
|
2399
|
+
Compare: (x, y) => (compare_1(x, y) | 0),
|
|
2355
2400
|
}), pairs)]);
|
|
2356
2401
|
default:
|
|
2357
2402
|
return fail("Map.ofList expects (pairs)");
|
|
@@ -2656,7 +2701,7 @@ const builtinMapFilter = resumable("Map.filter", 2, (apply, args) => {
|
|
|
2656
2701
|
});
|
|
2657
2702
|
}
|
|
2658
2703
|
}, empty_1({
|
|
2659
|
-
Compare: (x, y) => (
|
|
2704
|
+
Compare: (x, y) => (compare_1(x, y) | 0),
|
|
2660
2705
|
}), items);
|
|
2661
2706
|
return Execution$1__get_IsImmediate(body_5) ? (new Execution$1(new Value(/* VMap */ 8, [body_5.Value]), defaultOf())) : (new Execution$1(defaultOf(), (continuation_6) => {
|
|
2662
2707
|
const execution_5 = body_5;
|
|
@@ -2854,7 +2899,7 @@ const builtinMapChoose = resumable("Map.choose", 2, (apply, args) => {
|
|
|
2854
2899
|
});
|
|
2855
2900
|
}
|
|
2856
2901
|
}, empty_1({
|
|
2857
|
-
Compare: (x, y) => (
|
|
2902
|
+
Compare: (x, y) => (compare_1(x, y) | 0),
|
|
2858
2903
|
}), items);
|
|
2859
2904
|
return Execution$1__get_IsImmediate(body_5) ? (new Execution$1(new Value(/* VMap */ 8, [body_5.Value]), defaultOf())) : (new Execution$1(defaultOf(), (continuation_6) => {
|
|
2860
2905
|
const execution_5 = body_5;
|
|
@@ -2940,7 +2985,7 @@ const builtinMapMap = resumable("Map.map", 2, (apply, args) => {
|
|
|
2940
2985
|
});
|
|
2941
2986
|
}
|
|
2942
2987
|
}, empty_1({
|
|
2943
|
-
Compare: (x, y) => (
|
|
2988
|
+
Compare: (x, y) => (compare_1(x, y) | 0),
|
|
2944
2989
|
}), items);
|
|
2945
2990
|
return Execution$1__get_IsImmediate(body_3) ? (new Execution$1(new Value(/* VMap */ 8, [body_3.Value]), defaultOf())) : (new Execution$1(defaultOf(), (continuation_3) => {
|
|
2946
2991
|
const execution_3 = body_3;
|
|
@@ -3093,7 +3138,7 @@ const builtinMapIter = resumable("Map.iter", 2, (apply, args) => {
|
|
|
3093
3138
|
});
|
|
3094
3139
|
}
|
|
3095
3140
|
}, empty_1({
|
|
3096
|
-
Compare: (x, y) => (
|
|
3141
|
+
Compare: (x, y) => (compare_1(x, y) | 0),
|
|
3097
3142
|
}), items);
|
|
3098
3143
|
return Execution$1__get_IsImmediate(body_5) ? (new Execution$1(Value.VUnit, defaultOf())) : (new Execution$1(defaultOf(), (continuation_6) => {
|
|
3099
3144
|
const execution_5 = body_5;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
|
|
2
|
-
import { keys, ofList } from "../fable_modules/fable-library-js.5.
|
|
3
|
-
import { ofArray, singleton, empty } from "../fable_modules/fable-library-js.5.
|
|
2
|
+
import { keys, ofList } from "../fable_modules/fable-library-js.5.24.0/Map.js";
|
|
3
|
+
import { ofArray, singleton, empty } from "../fable_modules/fable-library-js.5.24.0/List.js";
|
|
4
4
|
import { Scheme, Type } from "./Types.js";
|
|
5
|
-
import { comparePrimitives } from "../fable_modules/fable-library-js.5.
|
|
6
|
-
import { ofSeq } from "../fable_modules/fable-library-js.5.
|
|
7
|
-
import { filter } from "../fable_modules/fable-library-js.5.
|
|
8
|
-
import { startsWith } from "../fable_modules/fable-library-js.5.
|
|
5
|
+
import { comparePrimitives } from "../fable_modules/fable-library-js.5.24.0/Util.js";
|
|
6
|
+
import { ofSeq } from "../fable_modules/fable-library-js.5.24.0/Set.js";
|
|
7
|
+
import { filter } from "../fable_modules/fable-library-js.5.24.0/Seq.js";
|
|
8
|
+
import { startsWith } from "../fable_modules/fable-library-js.5.24.0/String.js";
|
|
9
9
|
|
|
10
10
|
export const builtinSchemes = ofList(ofArray([["Env.setExitCode", new Scheme(empty(), new Type(/* TFun */ 11, [Type.TInt, Type.TUnit]))], ["ignore", new Scheme(singleton(0), new Type(/* TFun */ 11, [new Type(/* TVar */ 15, [0]), Type.TUnit]))], ["Int.tryParse", new Scheme(empty(), new Type(/* TFun */ 11, [Type.TString, new Type(/* TOption */ 10, [Type.TInt])]))], ["Float.tryParse", new Scheme(empty(), new Type(/* TFun */ 11, [Type.TString, new Type(/* TOption */ 10, [Type.TFloat])]))], ["Bool.tryParse", new Scheme(empty(), new Type(/* TFun */ 11, [Type.TString, new Type(/* TOption */ 10, [Type.TBool])]))], ["Int.toString", new Scheme(empty(), new Type(/* TFun */ 11, [Type.TInt, Type.TString]))], ["Float.toString", new Scheme(empty(), new Type(/* TFun */ 11, [Type.TFloat, Type.TString]))], ["Bool.toString", new Scheme(empty(), new Type(/* TFun */ 11, [Type.TBool, Type.TString]))], ["String.replace", new Scheme(empty(), new Type(/* TFun */ 11, [Type.TString, new Type(/* TFun */ 11, [Type.TString, new Type(/* TFun */ 11, [Type.TString, Type.TString])])]))], ["String.indexOf", new Scheme(empty(), new Type(/* TFun */ 11, [Type.TString, new Type(/* TFun */ 11, [Type.TString, new Type(/* TOption */ 10, [Type.TInt])])]))], ["String.toLower", new Scheme(empty(), new Type(/* TFun */ 11, [Type.TString, Type.TString]))], ["String.toUpper", new Scheme(empty(), new Type(/* TFun */ 11, [Type.TString, Type.TString]))], ["String.substring", new Scheme(empty(), new Type(/* TFun */ 11, [Type.TInt, new Type(/* TFun */ 11, [Type.TInt, new Type(/* TFun */ 11, [Type.TString, new Type(/* TOption */ 10, [Type.TString])])])]))], ["String.concat", new Scheme(empty(), new Type(/* TFun */ 11, [Type.TString, new Type(/* TFun */ 11, [new Type(/* TList */ 5, [Type.TString]), Type.TString])]))], ["String.split", new Scheme(empty(), new Type(/* TFun */ 11, [Type.TString, new Type(/* TFun */ 11, [Type.TString, new Type(/* TList */ 5, [Type.TString])])]))], ["String.endsWith", new Scheme(empty(), new Type(/* TFun */ 11, [Type.TString, new Type(/* TFun */ 11, [Type.TString, Type.TBool])]))], ["List.empty", new Scheme(singleton(0), new Type(/* TList */ 5, [new Type(/* TVar */ 15, [0])]))], ["List.map", new Scheme(ofArray([0, 1]), new Type(/* TFun */ 11, [new Type(/* TFun */ 11, [new Type(/* TVar */ 15, [0]), new Type(/* TVar */ 15, [1])]), new Type(/* TFun */ 11, [new Type(/* TList */ 5, [new Type(/* TVar */ 15, [0])]), new Type(/* TList */ 5, [new Type(/* TVar */ 15, [1])])])]))], ["List.iter", new Scheme(singleton(0), new Type(/* TFun */ 11, [new Type(/* TFun */ 11, [new Type(/* TVar */ 15, [0]), Type.TUnit]), new Type(/* TFun */ 11, [new Type(/* TList */ 5, [new Type(/* TVar */ 15, [0])]), Type.TUnit])]))], ["List.choose", new Scheme(ofArray([0, 1]), new Type(/* TFun */ 11, [new Type(/* TFun */ 11, [new Type(/* TVar */ 15, [0]), new Type(/* TOption */ 10, [new Type(/* TVar */ 15, [1])])]), new Type(/* TFun */ 11, [new Type(/* TList */ 5, [new Type(/* TVar */ 15, [0])]), new Type(/* TList */ 5, [new Type(/* TVar */ 15, [1])])])]))], ["List.collect", new Scheme(ofArray([0, 1]), new Type(/* TFun */ 11, [new Type(/* TFun */ 11, [new Type(/* TVar */ 15, [0]), new Type(/* TList */ 5, [new Type(/* TVar */ 15, [1])])]), new Type(/* TFun */ 11, [new Type(/* TList */ 5, [new Type(/* TVar */ 15, [0])]), new Type(/* TList */ 5, [new Type(/* TVar */ 15, [1])])])]))], ["List.exists", new Scheme(singleton(0), new Type(/* TFun */ 11, [new Type(/* TFun */ 11, [new Type(/* TVar */ 15, [0]), Type.TBool]), new Type(/* TFun */ 11, [new Type(/* TList */ 5, [new Type(/* TVar */ 15, [0])]), Type.TBool])]))], ["List.contains", new Scheme(singleton(0), new Type(/* TFun */ 11, [new Type(/* TVar */ 15, [0]), new Type(/* TFun */ 11, [new Type(/* TList */ 5, [new Type(/* TVar */ 15, [0])]), Type.TBool])]))], ["List.rev", new Scheme(singleton(0), new Type(/* TFun */ 11, [new Type(/* TList */ 5, [new Type(/* TVar */ 15, [0])]), new Type(/* TList */ 5, [new Type(/* TVar */ 15, [0])])]))], ["List.distinct", new Scheme(singleton(0), new Type(/* TFun */ 11, [new Type(/* TList */ 5, [new Type(/* TVar */ 15, [0])]), new Type(/* TList */ 5, [new Type(/* TVar */ 15, [0])])]))], ["List.fold", new Scheme(ofArray([0, 1]), new Type(/* TFun */ 11, [new Type(/* TFun */ 11, [new Type(/* TVar */ 15, [1]), new Type(/* TFun */ 11, [new Type(/* TVar */ 15, [0]), new Type(/* TVar */ 15, [1])])]), new Type(/* TFun */ 11, [new Type(/* TVar */ 15, [1]), new Type(/* TFun */ 11, [new Type(/* TList */ 5, [new Type(/* TVar */ 15, [0])]), new Type(/* TVar */ 15, [1])])])]))], ["List.filter", new Scheme(singleton(0), new Type(/* TFun */ 11, [new Type(/* TFun */ 11, [new Type(/* TVar */ 15, [0]), Type.TBool]), new Type(/* TFun */ 11, [new Type(/* TList */ 5, [new Type(/* TVar */ 15, [0])]), new Type(/* TList */ 5, [new Type(/* TVar */ 15, [0])])])]))], ["List.length", new Scheme(singleton(0), new Type(/* TFun */ 11, [new Type(/* TList */ 5, [new Type(/* TVar */ 15, [0])]), Type.TInt]))], ["List.tryFind", new Scheme(singleton(0), new Type(/* TFun */ 11, [new Type(/* TFun */ 11, [new Type(/* TVar */ 15, [0]), Type.TBool]), new Type(/* TFun */ 11, [new Type(/* TList */ 5, [new Type(/* TVar */ 15, [0])]), new Type(/* TOption */ 10, [new Type(/* TVar */ 15, [0])])])]))], ["List.tryGet", new Scheme(singleton(0), new Type(/* TFun */ 11, [new Type(/* TFun */ 11, [new Type(/* TVar */ 15, [0]), Type.TBool]), new Type(/* TFun */ 11, [new Type(/* TList */ 5, [new Type(/* TVar */ 15, [0])]), new Type(/* TOption */ 10, [Type.TInt])])]))], ["List.tryItem", new Scheme(singleton(0), new Type(/* TFun */ 11, [Type.TInt, new Type(/* TFun */ 11, [new Type(/* TList */ 5, [new Type(/* TVar */ 15, [0])]), new Type(/* TOption */ 10, [new Type(/* TVar */ 15, [0])])])]))], ["List.tryHead", new Scheme(singleton(0), new Type(/* TFun */ 11, [new Type(/* TList */ 5, [new Type(/* TVar */ 15, [0])]), new Type(/* TOption */ 10, [new Type(/* TVar */ 15, [0])])]))], ["List.tail", new Scheme(singleton(0), new Type(/* TFun */ 11, [new Type(/* TList */ 5, [new Type(/* TVar */ 15, [0])]), new Type(/* TList */ 5, [new Type(/* TVar */ 15, [0])])]))], ["List.append", new Scheme(singleton(0), new Type(/* TFun */ 11, [new Type(/* TList */ 5, [new Type(/* TVar */ 15, [0])]), new Type(/* TFun */ 11, [new Type(/* TList */ 5, [new Type(/* TVar */ 15, [0])]), new Type(/* TList */ 5, [new Type(/* TVar */ 15, [0])])])]))], ["Option.defaultValue", new Scheme(singleton(0), new Type(/* TFun */ 11, [new Type(/* TVar */ 15, [0]), new Type(/* TFun */ 11, [new Type(/* TOption */ 10, [new Type(/* TVar */ 15, [0])]), new Type(/* TVar */ 15, [0])])]))], ["Option.defaultWith", new Scheme(singleton(0), new Type(/* TFun */ 11, [new Type(/* TFun */ 11, [Type.TUnit, new Type(/* TVar */ 15, [0])]), new Type(/* TFun */ 11, [new Type(/* TOption */ 10, [new Type(/* TVar */ 15, [0])]), new Type(/* TVar */ 15, [0])])]))], ["Option.isNone", new Scheme(singleton(0), new Type(/* TFun */ 11, [new Type(/* TOption */ 10, [new Type(/* TVar */ 15, [0])]), Type.TBool]))], ["Option.isSome", new Scheme(singleton(0), new Type(/* TFun */ 11, [new Type(/* TOption */ 10, [new Type(/* TVar */ 15, [0])]), Type.TBool]))], ["Option.map", new Scheme(ofArray([0, 1]), new Type(/* TFun */ 11, [new Type(/* TFun */ 11, [new Type(/* TVar */ 15, [0]), new Type(/* TVar */ 15, [1])]), new Type(/* TFun */ 11, [new Type(/* TOption */ 10, [new Type(/* TVar */ 15, [0])]), new Type(/* TOption */ 10, [new Type(/* TVar */ 15, [1])])])]))], ["Map.empty", new Scheme(ofArray([0, 1]), new Type(/* TMap */ 9, [new Type(/* TVar */ 15, [1]), new Type(/* TVar */ 15, [0])]))], ["Map.tryGet", new Scheme(ofArray([0, 1]), new Type(/* TFun */ 11, [new Type(/* TVar */ 15, [1]), new Type(/* TFun */ 11, [new Type(/* TMap */ 9, [new Type(/* TVar */ 15, [1]), new Type(/* TVar */ 15, [0])]), new Type(/* TOption */ 10, [new Type(/* TVar */ 15, [0])])])]))], ["Map.containsKey", new Scheme(ofArray([0, 1]), new Type(/* TFun */ 11, [new Type(/* TVar */ 15, [1]), new Type(/* TFun */ 11, [new Type(/* TMap */ 9, [new Type(/* TVar */ 15, [1]), new Type(/* TVar */ 15, [0])]), Type.TBool])]))], ["Map.add", new Scheme(ofArray([0, 1]), new Type(/* TFun */ 11, [new Type(/* TVar */ 15, [1]), new Type(/* TFun */ 11, [new Type(/* TVar */ 15, [0]), new Type(/* TFun */ 11, [new Type(/* TMap */ 9, [new Type(/* TVar */ 15, [1]), new Type(/* TVar */ 15, [0])]), new Type(/* TMap */ 9, [new Type(/* TVar */ 15, [1]), new Type(/* TVar */ 15, [0])])])])]))], ["Map.ofList", new Scheme(ofArray([0, 1]), new Type(/* TFun */ 11, [new Type(/* TList */ 5, [new Type(/* TTuple */ 7, [ofArray([new Type(/* TVar */ 15, [1]), new Type(/* TVar */ 15, [0])])])]), new Type(/* TMap */ 9, [new Type(/* TVar */ 15, [1]), new Type(/* TVar */ 15, [0])])]))], ["Map.fold", new Scheme(ofArray([0, 1, 2]), new Type(/* TFun */ 11, [new Type(/* TFun */ 11, [new Type(/* TVar */ 15, [2]), new Type(/* TFun */ 11, [new Type(/* TVar */ 15, [1]), new Type(/* TFun */ 11, [new Type(/* TVar */ 15, [0]), new Type(/* TVar */ 15, [2])])])]), new Type(/* TFun */ 11, [new Type(/* TVar */ 15, [2]), new Type(/* TFun */ 11, [new Type(/* TMap */ 9, [new Type(/* TVar */ 15, [1]), new Type(/* TVar */ 15, [0])]), new Type(/* TVar */ 15, [2])])])]))], ["Map.count", new Scheme(ofArray([0, 1]), new Type(/* TFun */ 11, [new Type(/* TMap */ 9, [new Type(/* TVar */ 15, [1]), new Type(/* TVar */ 15, [0])]), Type.TInt]))], ["Map.filter", new Scheme(ofArray([0, 1]), new Type(/* TFun */ 11, [new Type(/* TFun */ 11, [new Type(/* TVar */ 15, [1]), new Type(/* TFun */ 11, [new Type(/* TVar */ 15, [0]), Type.TBool])]), new Type(/* TFun */ 11, [new Type(/* TMap */ 9, [new Type(/* TVar */ 15, [1]), new Type(/* TVar */ 15, [0])]), new Type(/* TMap */ 9, [new Type(/* TVar */ 15, [1]), new Type(/* TVar */ 15, [0])])])]))], ["Map.choose", new Scheme(ofArray([0, 1, 2]), new Type(/* TFun */ 11, [new Type(/* TFun */ 11, [new Type(/* TVar */ 15, [1]), new Type(/* TFun */ 11, [new Type(/* TVar */ 15, [0]), new Type(/* TOption */ 10, [new Type(/* TVar */ 15, [2])])])]), new Type(/* TFun */ 11, [new Type(/* TMap */ 9, [new Type(/* TVar */ 15, [1]), new Type(/* TVar */ 15, [0])]), new Type(/* TMap */ 9, [new Type(/* TVar */ 15, [1]), new Type(/* TVar */ 15, [2])])])]))], ["Map.map", new Scheme(ofArray([0, 1, 2]), new Type(/* TFun */ 11, [new Type(/* TFun */ 11, [new Type(/* TVar */ 15, [0]), new Type(/* TVar */ 15, [2])]), new Type(/* TFun */ 11, [new Type(/* TMap */ 9, [new Type(/* TVar */ 15, [1]), new Type(/* TVar */ 15, [0])]), new Type(/* TMap */ 9, [new Type(/* TVar */ 15, [1]), new Type(/* TVar */ 15, [2])])])]))], ["Map.iter", new Scheme(ofArray([0, 1]), new Type(/* TFun */ 11, [new Type(/* TFun */ 11, [new Type(/* TVar */ 15, [1]), new Type(/* TFun */ 11, [new Type(/* TVar */ 15, [0]), Type.TUnit])]), new Type(/* TFun */ 11, [new Type(/* TMap */ 9, [new Type(/* TVar */ 15, [1]), new Type(/* TVar */ 15, [0])]), Type.TUnit])]))], ["Map.remove", new Scheme(ofArray([0, 1]), new Type(/* TFun */ 11, [new Type(/* TVar */ 15, [1]), new Type(/* TFun */ 11, [new Type(/* TMap */ 9, [new Type(/* TVar */ 15, [1]), new Type(/* TVar */ 15, [0])]), new Type(/* TMap */ 9, [new Type(/* TVar */ 15, [1]), new Type(/* TVar */ 15, [0])])])]))]]), {
|
|
11
11
|
Compare: (x, y) => (comparePrimitives(x, y) | 0),
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
|
|
2
2
|
import { Span, Position } from "./Span.js";
|
|
3
3
|
import { TypeDef, TypeRef } from "./Ast.js";
|
|
4
|
-
import { empty, ofArray } from "../fable_modules/fable-library-js.5.
|
|
4
|
+
import { empty, ofArray } from "../fable_modules/fable-library-js.5.24.0/List.js";
|
|
5
5
|
|
|
6
6
|
const unknownSpan = new Span(new Position(undefined, 0, 0), new Position(undefined, 0, 0));
|
|
7
7
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
|
|
2
|
-
import { FSharpException, Record } from "../fable_modules/fable-library-js.5.
|
|
3
|
-
import { class_type, record_type, string_type } from "../fable_modules/fable-library-js.5.
|
|
2
|
+
import { FSharpException, Record } from "../fable_modules/fable-library-js.5.24.0/Types.js";
|
|
3
|
+
import { class_type, record_type, string_type } from "../fable_modules/fable-library-js.5.24.0/Reflection.js";
|
|
4
4
|
import { Span_$reflection } from "./Span.js";
|
|
5
5
|
|
|
6
6
|
export class ParseError extends Record {
|