@explorable-viz/fluid 0.7.106 → 0.8.0
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/fluid/shared/fluid.mjs +403 -209
- package/dist/fluid/shared/load-figure.js +360 -222
- package/dist/fluid/shared/webtest-lib.js +596 -596
- package/package.json +1 -1
- package/website/article/convolution/index.html +2 -2
- package/website/article/convolution/spec.json +0 -2
- package/website/article/fluid/convolution.fld +3 -0
- package/website/article/moving-average/index.html +2 -1
- package/website/article/moving-average/spec.json +1 -3
- package/website/article/non-renewables/index.html +2 -2
- package/website/article/non-renewables/spec.json +1 -3
- package/website/article/transparent-text/index.html +2 -3
- package/website/article/transparent-text/spec.json +1 -2
- /package/website/article/fluid/convolution/{test-image.fld → testImage.fld} +0 -0
@@ -4268,10 +4268,10 @@ var eqMap = (dictEq) => (dictEq1) => {
|
|
4268
4268
|
};
|
4269
4269
|
var fromFoldable = (dictOrd) => (dictFoldable) => dictFoldable.foldl((m) => (v) => insert(dictOrd)(v._1)(v._2)(m))(Leaf2);
|
4270
4270
|
var filterWithKey = (dictOrd) => {
|
4271
|
-
const
|
4271
|
+
const fromFoldable112 = fromFoldable(dictOrd)(foldableList2);
|
4272
4272
|
return (predicate) => {
|
4273
4273
|
const $0 = filter2((v) => predicate(v._1)(v._2));
|
4274
|
-
return (x) =>
|
4274
|
+
return (x) => fromFoldable112($0(toUnfoldable3(unfoldableList2)(x)));
|
4275
4275
|
};
|
4276
4276
|
};
|
4277
4277
|
var $$delete = (dictOrd) => (k) => (m) => {
|
@@ -9708,10 +9708,10 @@ var insert2 = (k) => (v) => mutate(($0) => () => {
|
|
9708
9708
|
var functorObject = { map: (f) => (m) => _fmapObject(m, f) };
|
9709
9709
|
var functorWithIndexObject = { mapWithIndex: mapWithKey, Functor0: () => functorObject };
|
9710
9710
|
var fromFoldable2 = (dictFoldable) => {
|
9711
|
-
const
|
9711
|
+
const fromFoldable112 = fromFoldableImpl(dictFoldable.foldr);
|
9712
9712
|
return (l) => {
|
9713
9713
|
const s = {};
|
9714
|
-
for (const v of
|
9714
|
+
for (const v of fromFoldable112(l)) {
|
9715
9715
|
s[v._1] = v._2;
|
9716
9716
|
}
|
9717
9717
|
return s;
|
@@ -10170,9 +10170,9 @@ var mapFObjectString = {
|
|
10170
10170
|
mapWithKey
|
10171
10171
|
};
|
10172
10172
|
var asMaplet = (dictMap) => {
|
10173
|
-
const
|
10173
|
+
const toUnfoldable16 = dictMap.toUnfoldable(unfoldableList);
|
10174
10174
|
return (m) => assertWith("")(dictMap.Set0().size(m) === 1)(definitely("singleton map")((() => {
|
10175
|
-
const $0 =
|
10175
|
+
const $0 = toUnfoldable16(m);
|
10176
10176
|
if ($0.tag === "Nil") {
|
10177
10177
|
return Nothing;
|
10178
10178
|
}
|
@@ -16729,7 +16729,7 @@ var toUnfoldable13 = /* @__PURE__ */ toAscUnfoldable(unfoldableList);
|
|
16729
16729
|
var Simple = /* @__PURE__ */ $ExprType("Simple");
|
16730
16730
|
var Expression = /* @__PURE__ */ $ExprType("Expression");
|
16731
16731
|
var vert = (dictFoldable) => {
|
16732
|
-
const
|
16732
|
+
const fromFoldable27 = dictFoldable.foldr(Cons)(Nil);
|
16733
16733
|
return (delim) => {
|
16734
16734
|
const vert$p = (v) => {
|
16735
16735
|
if (v.tag === "Nil") {
|
@@ -16745,7 +16745,7 @@ var vert = (dictFoldable) => {
|
|
16745
16745
|
}
|
16746
16746
|
fail();
|
16747
16747
|
};
|
16748
|
-
return (x) => vert$p(
|
16748
|
+
return (x) => vert$p(fromFoldable27(x));
|
16749
16749
|
};
|
16750
16750
|
};
|
16751
16751
|
var vert1 = /* @__PURE__ */ vert(foldableArray);
|
@@ -18023,8 +18023,8 @@ var isZeroNumber = { isZero: ($0) => 0 === $0 };
|
|
18023
18023
|
var isZeroInt = { isZero: ($0) => 0 === $0 };
|
18024
18024
|
var unary = (dictBoundedJoinSemilattice) => {
|
18025
18025
|
const bot = dictBoundedJoinSemilattice.bot;
|
18026
|
-
return (
|
18027
|
-
|
18026
|
+
return (id2) => (f) => $Tuple(
|
18027
|
+
id2,
|
18028
18028
|
$Val(
|
18029
18029
|
bot,
|
18030
18030
|
None,
|
@@ -18033,12 +18033,12 @@ var unary = (dictBoundedJoinSemilattice) => {
|
|
18033
18033
|
$Fun(
|
18034
18034
|
"Foreign",
|
18035
18035
|
$Tuple(
|
18036
|
-
|
18036
|
+
id2,
|
18037
18037
|
$ForeignOp$p({
|
18038
18038
|
arity: 1,
|
18039
18039
|
op: (dictMonadWithGraphAlloc) => {
|
18040
18040
|
const $$new = dictMonadWithGraphAlloc.new(typeNameVal);
|
18041
|
-
return (dictMonadError) => (dictMonadReader) => (dictLoadFile) => (v) => {
|
18041
|
+
return (dictMonadError) => (dictMonadAff) => (dictMonadReader) => (dictLoadFile) => (v) => {
|
18042
18042
|
if (v.tag === "Cons" && v._2.tag === "Nil") {
|
18043
18043
|
const $0 = v._1._2;
|
18044
18044
|
return $$new((a) => Val(a)($0))($$$Map("Two", Leaf2, v._1._1, void 0, Leaf2))(f.o.pack(f.fwd(f.i.unpack(v._1._3))));
|
@@ -18172,8 +18172,8 @@ var $$boolean = {
|
|
18172
18172
|
};
|
18173
18173
|
var binaryZero = (dictBoundedJoinSemilattice) => {
|
18174
18174
|
const bot = dictBoundedJoinSemilattice.bot;
|
18175
|
-
return (dictIsZero) => (
|
18176
|
-
|
18175
|
+
return (dictIsZero) => (id2) => (f) => $Tuple(
|
18176
|
+
id2,
|
18177
18177
|
$Val(
|
18178
18178
|
bot,
|
18179
18179
|
None,
|
@@ -18182,12 +18182,12 @@ var binaryZero = (dictBoundedJoinSemilattice) => {
|
|
18182
18182
|
$Fun(
|
18183
18183
|
"Foreign",
|
18184
18184
|
$Tuple(
|
18185
|
-
|
18185
|
+
id2,
|
18186
18186
|
$ForeignOp$p({
|
18187
18187
|
arity: 2,
|
18188
18188
|
op: (dictMonadWithGraphAlloc) => {
|
18189
18189
|
const $$new = dictMonadWithGraphAlloc.new(typeNameVal);
|
18190
|
-
return (dictMonadError) => (dictMonadReader) => (dictLoadFile) => (v) => {
|
18190
|
+
return (dictMonadError) => (dictMonadAff) => (dictMonadReader) => (dictLoadFile) => (v) => {
|
18191
18191
|
if (v.tag === "Cons" && v._2.tag === "Cons" && v._2._2.tag === "Nil") {
|
18192
18192
|
const $0 = f.i.unpack(v._1._3);
|
18193
18193
|
const $1 = f.i.unpack(v._2._1._3);
|
@@ -18220,8 +18220,8 @@ var binaryZero = (dictBoundedJoinSemilattice) => {
|
|
18220
18220
|
};
|
18221
18221
|
var binary = (dictBoundedJoinSemilattice) => {
|
18222
18222
|
const bot = dictBoundedJoinSemilattice.bot;
|
18223
|
-
return (
|
18224
|
-
|
18223
|
+
return (id2) => (f) => $Tuple(
|
18224
|
+
id2,
|
18225
18225
|
$Val(
|
18226
18226
|
bot,
|
18227
18227
|
None,
|
@@ -18230,12 +18230,12 @@ var binary = (dictBoundedJoinSemilattice) => {
|
|
18230
18230
|
$Fun(
|
18231
18231
|
"Foreign",
|
18232
18232
|
$Tuple(
|
18233
|
-
|
18233
|
+
id2,
|
18234
18234
|
$ForeignOp$p({
|
18235
18235
|
arity: 2,
|
18236
18236
|
op: (dictMonadWithGraphAlloc) => {
|
18237
18237
|
const $$new = dictMonadWithGraphAlloc.new(typeNameVal);
|
18238
|
-
return (dictMonadError) => (dictMonadReader) => (dictLoadFile) => (v) => {
|
18238
|
+
return (dictMonadError) => (dictMonadAff) => (dictMonadReader) => (dictLoadFile) => (v) => {
|
18239
18239
|
if (v.tag === "Cons" && v._2.tag === "Cons" && v._2._2.tag === "Nil") {
|
18240
18240
|
return $$new((a) => Val(a)(None))(insert(ordVertex)(v._2._1._1)()($$$Map(
|
18241
18241
|
"Two",
|
@@ -18436,14 +18436,14 @@ var closeDefs = (dictMonadWithGraphAlloc) => {
|
|
18436
18436
|
var new$p = (dictMonadWithGraphAlloc) => {
|
18437
18437
|
const $$new = dictMonadWithGraphAlloc.new(typeNameVal);
|
18438
18438
|
const fresh = dictMonadWithGraphAlloc.MonadAlloc0().fresh;
|
18439
|
-
return (dictMonadReader) => {
|
18440
|
-
const Monad0 =
|
18439
|
+
return (dictMonadReader) => (dictMonadAff) => {
|
18440
|
+
const Monad0 = dictMonadAff.MonadEffect0().Monad0();
|
18441
18441
|
const Bind1 = Monad0.Bind1();
|
18442
18442
|
return (dictLoadFile) => (v) => (v1) => (v2) => (v3) => {
|
18443
18443
|
if (v2.tag === "None") {
|
18444
18444
|
return $$new((\u03B1s$p) => (u$p) => $Val(\u03B1s$p, None, u$p))(v1)(v3);
|
18445
18445
|
}
|
18446
|
-
return Bind1.bind(fresh)((\u03B1) => Bind1.bind(evalDocOpt(dictMonadWithGraphAlloc)(dictMonadReader)(dictLoadFile)(unionWith2((v$1) => identity13)(v)((() => {
|
18446
|
+
return Bind1.bind(fresh)((\u03B1) => Bind1.bind(evalDocOpt(dictMonadWithGraphAlloc)(dictMonadReader)(dictMonadAff)(dictLoadFile)(unionWith2((v$1) => identity13)(v)((() => {
|
18447
18447
|
const $0 = {};
|
18448
18448
|
$0.this = $Val(\u03B1, None, v3);
|
18449
18449
|
return $0;
|
@@ -18455,8 +18455,8 @@ var new$p = (dictMonadWithGraphAlloc) => {
|
|
18455
18455
|
};
|
18456
18456
|
};
|
18457
18457
|
};
|
18458
|
-
var evalDocOpt = (dictMonadWithGraphAlloc) => (dictMonadReader) => {
|
18459
|
-
const Monad0 =
|
18458
|
+
var evalDocOpt = (dictMonadWithGraphAlloc) => (dictMonadReader) => (dictMonadAff) => {
|
18459
|
+
const Monad0 = dictMonadAff.MonadEffect0().Monad0();
|
18460
18460
|
const Applicative0 = Monad0.Applicative0();
|
18461
18461
|
const $0 = Monad0.Bind1().Apply0().Functor0();
|
18462
18462
|
const sequence2 = traversableList.traverse(Applicative0)(identity5);
|
@@ -18470,7 +18470,7 @@ var evalDocOpt = (dictMonadWithGraphAlloc) => (dictMonadReader) => {
|
|
18470
18470
|
return Applicative0.pure($DocCommentElem("Token", v2._1));
|
18471
18471
|
}
|
18472
18472
|
if (v2.tag === "Unquote") {
|
18473
|
-
return $0.map(Unquote)($$eval(dictMonadWithGraphAlloc)(dictMonadReader)(dictLoadFile)(v)(v2._1)(setSet4.empty));
|
18473
|
+
return $0.map(Unquote)($$eval(dictMonadWithGraphAlloc)(dictMonadReader)(dictMonadAff)(dictLoadFile)(v)(v2._1)(setSet4.empty));
|
18474
18474
|
}
|
18475
18475
|
fail();
|
18476
18476
|
})(v1._1)));
|
@@ -18486,8 +18486,8 @@ var $$eval = (dictMonadWithGraphAlloc) => {
|
|
18486
18486
|
const $$new = dictMonadWithGraphAlloc.new(typeNameVal);
|
18487
18487
|
const match1 = match(dictMonadWithGraphAlloc);
|
18488
18488
|
const closeDefs1 = closeDefs(dictMonadWithGraphAlloc);
|
18489
|
-
return (dictMonadReader) => {
|
18490
|
-
const Monad0 =
|
18489
|
+
return (dictMonadReader) => (dictMonadAff) => {
|
18490
|
+
const Monad0 = dictMonadAff.MonadEffect0().Monad0();
|
18491
18491
|
const Bind1 = Monad0.Bind1();
|
18492
18492
|
const $0 = Bind1.Apply0().Functor0();
|
18493
18493
|
const Applicative0 = Monad0.Applicative0();
|
@@ -18502,23 +18502,32 @@ var $$eval = (dictMonadWithGraphAlloc) => {
|
|
18502
18502
|
return withMsg2("Variable lookup")(lookup$p(MonadThrow0)(showString)(mapEnvStringVal)(v1._1)(v));
|
18503
18503
|
}
|
18504
18504
|
if (v1.tag === "Int") {
|
18505
|
-
return new$p(dictMonadWithGraphAlloc)(dictMonadReader)(dictLoadFile)(v)(insert(ordVertex)(v1._1)()(v2))(v1._2)($BaseVal(
|
18505
|
+
return new$p(dictMonadWithGraphAlloc)(dictMonadReader)(dictMonadAff)(dictLoadFile)(v)(insert(ordVertex)(v1._1)()(v2))(v1._2)($BaseVal(
|
18506
|
+
"Int",
|
18507
|
+
v1._3
|
18508
|
+
));
|
18506
18509
|
}
|
18507
18510
|
if (v1.tag === "Float") {
|
18508
|
-
return new$p(dictMonadWithGraphAlloc)(dictMonadReader)(dictLoadFile)(v)(insert(ordVertex)(v1._1)()(v2))(v1._2)($BaseVal(
|
18511
|
+
return new$p(dictMonadWithGraphAlloc)(dictMonadReader)(dictMonadAff)(dictLoadFile)(v)(insert(ordVertex)(v1._1)()(v2))(v1._2)($BaseVal(
|
18512
|
+
"Float",
|
18513
|
+
v1._3
|
18514
|
+
));
|
18509
18515
|
}
|
18510
18516
|
if (v1.tag === "Str") {
|
18511
|
-
return new$p(dictMonadWithGraphAlloc)(dictMonadReader)(dictLoadFile)(v)(insert(ordVertex)(v1._1)()(v2))(v1._2)($BaseVal(
|
18517
|
+
return new$p(dictMonadWithGraphAlloc)(dictMonadReader)(dictMonadAff)(dictLoadFile)(v)(insert(ordVertex)(v1._1)()(v2))(v1._2)($BaseVal(
|
18518
|
+
"Str",
|
18519
|
+
v1._3
|
18520
|
+
));
|
18512
18521
|
}
|
18513
18522
|
if (v1.tag === "Dictionary") {
|
18514
18523
|
const $1 = v1._2;
|
18515
18524
|
const $2 = v1._1;
|
18516
18525
|
return Bind1.bind($0.map(unzip3)(traverse2(traverse3((() => {
|
18517
|
-
const $3 = $$eval(dictMonadWithGraphAlloc)(dictMonadReader)(dictLoadFile)(v);
|
18526
|
+
const $3 = $$eval(dictMonadWithGraphAlloc)(dictMonadReader)(dictMonadAff)(dictLoadFile)(v);
|
18518
18527
|
return (a) => $3(a)(v2);
|
18519
18528
|
})()))(v1._3)))((v3) => {
|
18520
18529
|
const v4 = unzip(listMap((v$1) => $Tuple(v$1._3.tag === "Str" ? v$1._3._1 : typeError(v$1._3)("Str"), v$1._1))(v3._1));
|
18521
|
-
return new$p(dictMonadWithGraphAlloc)(dictMonadReader)(dictLoadFile)(v)(insert(ordVertex)($2)()(v2))($1)($BaseVal(
|
18530
|
+
return new$p(dictMonadWithGraphAlloc)(dictMonadReader)(dictMonadAff)(dictLoadFile)(v)(insert(ordVertex)($2)()(v2))($1)($BaseVal(
|
18522
18531
|
"Dictionary",
|
18523
18532
|
fromFoldable17(zipWith2(Tuple)(v4._1)(zipWith2(Tuple)(v4._2)(v3._2)))
|
18524
18533
|
));
|
@@ -18550,9 +18559,13 @@ var $$eval = (dictMonadWithGraphAlloc) => {
|
|
18550
18559
|
};
|
18551
18560
|
return go(0)($3);
|
18552
18561
|
})()))(() => Bind1.bind(traverse2((() => {
|
18553
|
-
const $5 = $$eval(dictMonadWithGraphAlloc)(dictMonadReader)(dictLoadFile)(v);
|
18562
|
+
const $5 = $$eval(dictMonadWithGraphAlloc)(dictMonadReader)(dictMonadAff)(dictLoadFile)(v);
|
18554
18563
|
return (a) => $5(a)(v2);
|
18555
|
-
})())($3))((vs) => new$p(dictMonadWithGraphAlloc)(dictMonadReader)(dictLoadFile)(v)(insert(ordVertex)($4)()(v2))($2)($BaseVal(
|
18564
|
+
})())($3))((vs) => new$p(dictMonadWithGraphAlloc)(dictMonadReader)(dictMonadAff)(dictLoadFile)(v)(insert(ordVertex)($4)()(v2))($2)($BaseVal(
|
18565
|
+
"Constr",
|
18566
|
+
$1,
|
18567
|
+
vs
|
18568
|
+
))));
|
18556
18569
|
}
|
18557
18570
|
if (v1.tag === "Matrix") {
|
18558
18571
|
const $1 = v1._2;
|
@@ -18560,7 +18573,7 @@ var $$eval = (dictMonadWithGraphAlloc) => {
|
|
18560
18573
|
const $3 = v1._4._1;
|
18561
18574
|
const $4 = v1._4._2;
|
18562
18575
|
const $5 = v1._1;
|
18563
|
-
return Bind1.bind($$eval(dictMonadWithGraphAlloc)(dictMonadReader)(dictLoadFile)(v)(v1._5)(v2))((v3) => {
|
18576
|
+
return Bind1.bind($$eval(dictMonadWithGraphAlloc)(dictMonadReader)(dictMonadAff)(dictLoadFile)(v)(v1._5)(v2))((v3) => {
|
18564
18577
|
const v5 = intPair.unpack(v3._3);
|
18565
18578
|
const $6 = v5._1._1;
|
18566
18579
|
const $7 = v5._2._1;
|
@@ -18571,7 +18584,7 @@ var $$eval = (dictMonadWithGraphAlloc) => {
|
|
18571
18584
|
1
|
18572
18585
|
)) + "); got (" + show3($Tuple($6, $7)) + ")"))(() => Bind1.bind(sequence2(arrayBind(range(1)($6))((i) => [
|
18573
18586
|
sequence2(arrayBind(range(1)($7))((j) => [
|
18574
|
-
$$eval(dictMonadWithGraphAlloc)(dictMonadReader)(dictLoadFile)(unionWith2((v$1) => identity13)(v)(disjointUnion2((() => {
|
18587
|
+
$$eval(dictMonadWithGraphAlloc)(dictMonadReader)(dictMonadAff)(dictLoadFile)(unionWith2((v$1) => identity13)(v)(disjointUnion2((() => {
|
18575
18588
|
const $10 = {};
|
18576
18589
|
$10[$3] = $Val($8, None, $BaseVal("Int", i));
|
18577
18590
|
return $10;
|
@@ -18581,7 +18594,7 @@ var $$eval = (dictMonadWithGraphAlloc) => {
|
|
18581
18594
|
return $10;
|
18582
18595
|
})())))($2)(v2)
|
18583
18596
|
]))
|
18584
|
-
])))((vss) => new$p(dictMonadWithGraphAlloc)(dictMonadReader)(dictLoadFile)(v)(insert(ordVertex)($5)()(v2))($1)($BaseVal(
|
18597
|
+
])))((vss) => new$p(dictMonadWithGraphAlloc)(dictMonadReader)(dictMonadAff)(dictLoadFile)(v)(insert(ordVertex)($5)()(v2))($1)($BaseVal(
|
18585
18598
|
"Matrix",
|
18586
18599
|
$Tuple(vss, $Tuple($Tuple($6, $8), $Tuple($7, $9)))
|
18587
18600
|
))));
|
@@ -18607,7 +18620,7 @@ var $$eval = (dictMonadWithGraphAlloc) => {
|
|
18607
18620
|
if (v1.tag === "Project") {
|
18608
18621
|
const $1 = v1._1;
|
18609
18622
|
const $2 = v1._3;
|
18610
|
-
return Bind1.bind($$eval(dictMonadWithGraphAlloc)(dictMonadReader)(dictLoadFile)(v)(v1._2)(v2))((v3) => {
|
18623
|
+
return Bind1.bind($$eval(dictMonadWithGraphAlloc)(dictMonadReader)(dictMonadAff)(dictLoadFile)(v)(v1._2)(v2))((v3) => {
|
18611
18624
|
if (v3._3.tag === "Dictionary") {
|
18612
18625
|
return Bind1.bind(withMsg2("Dict lookup")(orElse(MonadThrow0)('Key "' + $2 + '" not found')((() => {
|
18613
18626
|
const $3 = _lookup(Nothing, Just, $2, v3._3._1);
|
@@ -18615,7 +18628,7 @@ var $$eval = (dictMonadWithGraphAlloc) => {
|
|
18615
18628
|
return $Maybe("Just", $3._1._2);
|
18616
18629
|
}
|
18617
18630
|
return Nothing;
|
18618
|
-
})())))((v$p) => concatDocs(dictMonadWithGraphAlloc)(dictMonadReader)(dictLoadFile)(v)(v$p)($1));
|
18631
|
+
})())))((v$p) => concatDocs(dictMonadWithGraphAlloc)(dictMonadReader)(dictMonadAff)(dictLoadFile)(v)(v$p)($1));
|
18619
18632
|
}
|
18620
18633
|
return MonadThrow0.throwError(error("Found " + intercalate4("\n")(removeDocWS(prettyVal(highlightableVertex).pretty(v3)).lines) + ", expected dictionary"));
|
18621
18634
|
});
|
@@ -18623,7 +18636,7 @@ var $$eval = (dictMonadWithGraphAlloc) => {
|
|
18623
18636
|
if (v1.tag === "DProject") {
|
18624
18637
|
const $1 = v1._1;
|
18625
18638
|
const $2 = v1._3;
|
18626
|
-
return Bind1.bind($$eval(dictMonadWithGraphAlloc)(dictMonadReader)(dictLoadFile)(v)(v1._2)(v2))((v3) => Bind1.bind($$eval(dictMonadWithGraphAlloc)(dictMonadReader)(dictLoadFile)(v)($2)(v2))((v$p) => {
|
18639
|
+
return Bind1.bind($$eval(dictMonadWithGraphAlloc)(dictMonadReader)(dictMonadAff)(dictLoadFile)(v)(v1._2)(v2))((v3) => Bind1.bind($$eval(dictMonadWithGraphAlloc)(dictMonadReader)(dictMonadAff)(dictLoadFile)(v)($2)(v2))((v$p) => {
|
18627
18640
|
if (v3._3.tag === "Dictionary") {
|
18628
18641
|
if (v$p._3.tag === "Str") {
|
18629
18642
|
return Bind1.bind(withMsg2("Dict lookup")(orElse(MonadThrow0)('Key "' + v$p._3._1 + '" not found')((() => {
|
@@ -18632,7 +18645,7 @@ var $$eval = (dictMonadWithGraphAlloc) => {
|
|
18632
18645
|
return $Maybe("Just", $3._1._2);
|
18633
18646
|
}
|
18634
18647
|
return Nothing;
|
18635
|
-
})())))((v$p$p) => concatDocs(dictMonadWithGraphAlloc)(dictMonadReader)(dictLoadFile)(v)(v$p$p)($1));
|
18648
|
+
})())))((v$p$p) => concatDocs(dictMonadWithGraphAlloc)(dictMonadReader)(dictMonadAff)(dictLoadFile)(v)(v$p$p)($1));
|
18636
18649
|
}
|
18637
18650
|
return MonadThrow0.throwError(error("Found " + intercalate4("\n")(removeDocWS(prettyVal(highlightableVertex).pretty(v$p)).lines) + ", expected string"));
|
18638
18651
|
}
|
@@ -18642,10 +18655,10 @@ var $$eval = (dictMonadWithGraphAlloc) => {
|
|
18642
18655
|
if (v1.tag === "App") {
|
18643
18656
|
const $1 = v1._1;
|
18644
18657
|
const $2 = v1._3;
|
18645
|
-
return Bind1.bind($$eval(dictMonadWithGraphAlloc)(dictMonadReader)(dictLoadFile)(v)(v1._2)(v2))((v3) => Bind1.bind($$eval(dictMonadWithGraphAlloc)(dictMonadReader)(dictLoadFile)(v)($2)(v2))((v$p) => Bind1.bind(apply2(dictMonadWithGraphAlloc)(dictMonadReader)(dictLoadFile)(v3)(v$p))((v4) => {
|
18658
|
+
return Bind1.bind($$eval(dictMonadWithGraphAlloc)(dictMonadReader)(dictMonadAff)(dictLoadFile)(v)(v1._2)(v2))((v3) => Bind1.bind($$eval(dictMonadWithGraphAlloc)(dictMonadReader)(dictMonadAff)(dictLoadFile)(v)($2)(v2))((v$p) => Bind1.bind(apply2(dictMonadWithGraphAlloc)(dictMonadReader)(dictMonadAff)(dictLoadFile)(v3)(v$p))((v4) => {
|
18646
18659
|
const $3 = v4._3;
|
18647
18660
|
const $4 = v4._1;
|
18648
|
-
return Bind1.bind(evalDocOpt(dictMonadWithGraphAlloc)(dictMonadReader)(dictLoadFile)(unionWith2((v$1) => identity13)(v)((() => {
|
18661
|
+
return Bind1.bind(evalDocOpt(dictMonadWithGraphAlloc)(dictMonadReader)(dictMonadAff)(dictLoadFile)(unionWith2((v$1) => identity13)(v)((() => {
|
18649
18662
|
const $5 = {};
|
18650
18663
|
$5.this = v4;
|
18651
18664
|
return $5;
|
@@ -18655,24 +18668,24 @@ var $$eval = (dictMonadWithGraphAlloc) => {
|
|
18655
18668
|
if (v1.tag === "Let") {
|
18656
18669
|
const $1 = v1._2;
|
18657
18670
|
const $2 = v1._1._1;
|
18658
|
-
return Bind1.bind($$eval(dictMonadWithGraphAlloc)(dictMonadReader)(dictLoadFile)(v)(v1._1._2)(v2))((v3) => Bind1.bind(match1(v3)($2))((v4) => $$eval(dictMonadWithGraphAlloc)(dictMonadReader)(dictLoadFile)(unionWith2((v$1) => identity13)(v)(v4._1))($1)(v4._2._2)));
|
18671
|
+
return Bind1.bind($$eval(dictMonadWithGraphAlloc)(dictMonadReader)(dictMonadAff)(dictLoadFile)(v)(v1._1._2)(v2))((v3) => Bind1.bind(match1(v3)($2))((v4) => $$eval(dictMonadWithGraphAlloc)(dictMonadReader)(dictMonadAff)(dictLoadFile)(unionWith2((v$1) => identity13)(v)(v4._1))($1)(v4._2._2)));
|
18659
18672
|
}
|
18660
18673
|
if (v1.tag === "LetRec") {
|
18661
18674
|
const $1 = v1._2;
|
18662
18675
|
const $2 = v1._1._1;
|
18663
|
-
return Bind1.bind(closeDefs1(v)(v1._1._2)(insert(ordVertex)($2)()(v2)))((\u03B3$p) => $$eval(dictMonadWithGraphAlloc)(dictMonadReader)(dictLoadFile)(unionWith2((v$1) => identity13)(v)(\u03B3$p))($1)(insert(ordVertex)($2)()(v2)));
|
18676
|
+
return Bind1.bind(closeDefs1(v)(v1._1._2)(insert(ordVertex)($2)()(v2)))((\u03B3$p) => $$eval(dictMonadWithGraphAlloc)(dictMonadReader)(dictMonadAff)(dictLoadFile)(unionWith2((v$1) => identity13)(v)(\u03B3$p))($1)(insert(ordVertex)($2)()(v2)));
|
18664
18677
|
}
|
18665
18678
|
fail();
|
18666
18679
|
};
|
18667
18680
|
};
|
18668
18681
|
};
|
18669
|
-
var concatDocs = (dictMonadWithGraphAlloc) => (dictMonadReader) => {
|
18670
|
-
const Monad0 =
|
18682
|
+
var concatDocs = (dictMonadWithGraphAlloc) => (dictMonadReader) => (dictMonadAff) => {
|
18683
|
+
const Monad0 = dictMonadAff.MonadEffect0().Monad0();
|
18671
18684
|
return (dictLoadFile) => (\u03B3) => (v) => (doc) => {
|
18672
18685
|
const $0 = v._3;
|
18673
18686
|
const $1 = v._2;
|
18674
18687
|
const $2 = v._1;
|
18675
|
-
return Monad0.Bind1().bind(evalDocOpt(dictMonadWithGraphAlloc)(dictMonadReader)(dictLoadFile)(unionWith2((v$1) => identity13)(\u03B3)((() => {
|
18688
|
+
return Monad0.Bind1().bind(evalDocOpt(dictMonadWithGraphAlloc)(dictMonadReader)(dictMonadAff)(dictLoadFile)(unionWith2((v$1) => identity13)(\u03B3)((() => {
|
18676
18689
|
const $3 = {};
|
18677
18690
|
$3.this = $Val($2, None, $0);
|
18678
18691
|
return $3;
|
@@ -18685,8 +18698,8 @@ var apply2 = (dictMonadWithGraphAlloc) => {
|
|
18685
18698
|
const $$new = dictMonadWithGraphAlloc.new(typeNameVal);
|
18686
18699
|
const MonadError1 = dictMonadWithGraphAlloc.MonadError1();
|
18687
18700
|
const MonadThrow0 = MonadError1.MonadThrow0();
|
18688
|
-
return (dictMonadReader) => {
|
18689
|
-
const Bind1 =
|
18701
|
+
return (dictMonadReader) => (dictMonadAff) => {
|
18702
|
+
const Bind1 = dictMonadAff.MonadEffect0().Monad0().Bind1();
|
18690
18703
|
return (dictLoadFile) => (v) => (v1) => {
|
18691
18704
|
const $0 = (v2) => MonadThrow0.throwError(error("Found " + intercalate4("\n")(removeDocWS(prettyVal(highlightableVertex).pretty(v2)).lines) + ", expected function"));
|
18692
18705
|
if (v._3.tag === "Fun") {
|
@@ -18694,7 +18707,7 @@ var apply2 = (dictMonadWithGraphAlloc) => {
|
|
18694
18707
|
const $1 = v._1;
|
18695
18708
|
const $2 = v._3._1._1;
|
18696
18709
|
const $3 = v._3._1._3;
|
18697
|
-
return Bind1.bind(closeDefs1($2)(v._3._1._2)($$$Map("Two", Leaf2, $1, void 0, Leaf2)))((\u03B32) => Bind1.bind(match1(v1)($3))((v3) => $$eval(dictMonadWithGraphAlloc)(dictMonadReader)(dictLoadFile)(unionWith2((v$1) => identity13)(unionWith2((v$1) => identity13)($2)(\u03B32))(v3._1))(v3._2._1.tag === "ContExpr" ? v3._2._1._1 : throwException(error("Expression expected"))())(insert(ordVertex)($1)()(v3._2._2))));
|
18710
|
+
return Bind1.bind(closeDefs1($2)(v._3._1._2)($$$Map("Two", Leaf2, $1, void 0, Leaf2)))((\u03B32) => Bind1.bind(match1(v1)($3))((v3) => $$eval(dictMonadWithGraphAlloc)(dictMonadReader)(dictMonadAff)(dictLoadFile)(unionWith2((v$1) => identity13)(unionWith2((v$1) => identity13)($2)(\u03B32))(v3._1))(v3._2._1.tag === "ContExpr" ? v3._2._1._1 : throwException(error("Expression expected"))())(insert(ordVertex)($1)()(v3._2._2))));
|
18698
18711
|
}
|
18699
18712
|
if (v._3._1.tag === "Foreign") {
|
18700
18713
|
const $1 = v._3._1._1._2;
|
@@ -18725,7 +18738,7 @@ var apply2 = (dictMonadWithGraphAlloc) => {
|
|
18725
18738
|
$Fun("Foreign", $Tuple(v._3._1._1._1, $1), vs$p)
|
18726
18739
|
));
|
18727
18740
|
}
|
18728
|
-
return $1._1.op(dictMonadWithGraphAlloc)(MonadError1)(dictMonadReader)(dictLoadFile)(vs$p);
|
18741
|
+
return $1._1.op(dictMonadWithGraphAlloc)(MonadError1)(dictMonadAff)(dictMonadReader)(dictLoadFile)(vs$p);
|
18729
18742
|
}
|
18730
18743
|
if (v._3._1.tag === "PartialConstr") {
|
18731
18744
|
const $1 = v._1;
|
@@ -18800,30 +18813,33 @@ var eval_module = (dictMonadWithGraphAlloc) => {
|
|
18800
18813
|
const match1 = match(dictMonadWithGraphAlloc);
|
18801
18814
|
const closeDefs1 = closeDefs(dictMonadWithGraphAlloc);
|
18802
18815
|
return (dictMonadReader) => {
|
18803
|
-
const Monad0 = dictMonadReader.MonadAsk0().Monad0();
|
18804
|
-
const $0 = Monad0.Bind1();
|
18805
18816
|
const eval2 = eval1(dictMonadReader);
|
18806
|
-
return (
|
18807
|
-
const
|
18808
|
-
|
18809
|
-
|
18810
|
-
|
18811
|
-
|
18812
|
-
|
18813
|
-
|
18814
|
-
if (v1.
|
18815
|
-
|
18816
|
-
const $2 = v1._1._1._1;
|
18817
|
-
return $0.bind(eval3(unionWith2((v$1) => identity13)(\u03B3)(v))(v1._1._1._2)(v2))((v3) => $0.bind(match1(v3)($2))((v4) => go(unionWith2((v$1) => identity13)(v)(v4._1))($1)(v4._2._2)));
|
18817
|
+
return (dictMonadAff) => {
|
18818
|
+
const Monad0 = dictMonadAff.MonadEffect0().Monad0();
|
18819
|
+
const $0 = Monad0.Bind1();
|
18820
|
+
const eval3 = eval2(dictMonadAff);
|
18821
|
+
return (dictLoadFile) => {
|
18822
|
+
const eval4 = eval3(dictLoadFile);
|
18823
|
+
return (\u03B3) => {
|
18824
|
+
const go = (v) => (v1) => (v2) => {
|
18825
|
+
if (v1.tag === "Nil") {
|
18826
|
+
return Monad0.Applicative0().pure(v);
|
18818
18827
|
}
|
18819
|
-
if (v1.
|
18820
|
-
|
18821
|
-
|
18828
|
+
if (v1.tag === "Cons") {
|
18829
|
+
if (v1._1.tag === "Left") {
|
18830
|
+
const $1 = v1._2;
|
18831
|
+
const $2 = v1._1._1._1;
|
18832
|
+
return $0.bind(eval4(unionWith2((v$1) => identity13)(\u03B3)(v))(v1._1._1._2)(v2))((v3) => $0.bind(match1(v3)($2))((v4) => go(unionWith2((v$1) => identity13)(v)(v4._1))($1)(v4._2._2)));
|
18833
|
+
}
|
18834
|
+
if (v1._1.tag === "Right") {
|
18835
|
+
const $1 = v1._2;
|
18836
|
+
return $0.bind(closeDefs1(unionWith2((v$1) => identity13)(\u03B3)(v))(v1._1._1._2)(insert(ordVertex)(v1._1._1._1)()(v2)))((\u03B3$p$p) => go(unionWith2((v$1) => identity13)(v)(\u03B3$p$p))($1)(v2));
|
18837
|
+
}
|
18822
18838
|
}
|
18823
|
-
|
18824
|
-
|
18839
|
+
fail();
|
18840
|
+
};
|
18841
|
+
return go(empty);
|
18825
18842
|
};
|
18826
|
-
return go(empty);
|
18827
18843
|
};
|
18828
18844
|
};
|
18829
18845
|
};
|
@@ -18832,23 +18848,27 @@ var eval_progCxt = (dictMonadWithGraphAlloc) => {
|
|
18832
18848
|
const eval_module1 = eval_module(dictMonadWithGraphAlloc);
|
18833
18849
|
const eval1 = $$eval(dictMonadWithGraphAlloc);
|
18834
18850
|
return (dictMonadReader) => {
|
18835
|
-
const Monad0 = dictMonadReader.MonadAsk0().Monad0();
|
18836
|
-
const $0 = Monad0.Bind1();
|
18837
18851
|
const eval_module2 = eval_module1(dictMonadReader);
|
18838
|
-
const $1 = Monad0.Applicative0();
|
18839
18852
|
const eval2 = eval1(dictMonadReader);
|
18840
|
-
|
18841
|
-
|
18842
|
-
const
|
18843
|
-
const
|
18844
|
-
|
18845
|
-
|
18846
|
-
|
18847
|
-
|
18848
|
-
|
18849
|
-
|
18850
|
-
|
18851
|
-
|
18853
|
+
return (dictMonadAff) => {
|
18854
|
+
const Monad0 = dictMonadAff.MonadEffect0().Monad0();
|
18855
|
+
const $0 = Monad0.Bind1();
|
18856
|
+
const eval_module3 = eval_module2(dictMonadAff);
|
18857
|
+
const $1 = Monad0.Applicative0();
|
18858
|
+
const eval3 = eval2(dictMonadAff);
|
18859
|
+
const concatM1 = concatM(Monad0);
|
18860
|
+
return (dictLoadFile) => {
|
18861
|
+
const eval_module4 = eval_module3(dictLoadFile);
|
18862
|
+
const eval4 = eval3(dictLoadFile);
|
18863
|
+
return (v) => concatM1(foldableList.foldr(Cons)(listMap((v1) => (\u03B3) => {
|
18864
|
+
const $2 = v1._1;
|
18865
|
+
return $0.bind(eval4(\u03B3)(v1._2)(setSet4.empty))((v2) => $1.pure(unionWith2((v$1) => identity13)(\u03B3)((() => {
|
18866
|
+
const $3 = {};
|
18867
|
+
$3[$2] = v2;
|
18868
|
+
return $3;
|
18869
|
+
})())));
|
18870
|
+
})(reverse2(v.datasets)))(listMap((mod) => (\u03B3) => $0.bind(eval_module4(\u03B3)(mod)(setSet4.empty))((\u03B3$p) => $1.pure(unionWith2((v$1) => identity13)(\u03B3)(\u03B3$p))))(reverse2(v.mods))))(v.primitives);
|
18871
|
+
};
|
18852
18872
|
};
|
18853
18873
|
};
|
18854
18874
|
};
|
@@ -18862,12 +18882,14 @@ var graphEval = (dictMonadAff) => {
|
|
18862
18882
|
Applicative0: () => applicativeStateT(Monad0),
|
18863
18883
|
Bind1: () => bindStateT(Monad0)
|
18864
18884
|
})(graphGraphImpl);
|
18865
|
-
const
|
18885
|
+
const monadAffState2 = monadAffState(dictMonadAff);
|
18886
|
+
const monadAffState1 = monadAffState(monadAffState2);
|
18887
|
+
const $1 = monadAffState2.MonadEffect0().Monad0();
|
18866
18888
|
const $2 = dictMonadAff.MonadEffect0().Monad0();
|
18867
18889
|
return (dictMonadReader) => {
|
18868
18890
|
const monadReaderStateT2 = monadReaderStateT(monadReaderStateT(dictMonadReader));
|
18869
18891
|
return (dictLoadFile) => (dictMonadError) => {
|
18870
|
-
const eval1 = $$eval(monadWithGraphAllocWithGr(dictMonadError))(monadReaderStateT2)((() => {
|
18892
|
+
const eval1 = $$eval(monadWithGraphAllocWithGr(dictMonadError))(monadReaderStateT2)(monadAffState1)((() => {
|
18871
18893
|
const loadFile1 = dictLoadFile.loadFile(dictMonadError)(dictMonadAff);
|
18872
18894
|
return {
|
18873
18895
|
loadFile: (dictMonadError1) => (dictMonadAff1) => (folders) => {
|
@@ -23028,9 +23050,85 @@ var module_ = /* @__PURE__ */ (() => {
|
|
23028
23050
|
));
|
23029
23051
|
})();
|
23030
23052
|
|
23053
|
+
// output-es/Data.Argonaut.Core/foreign.js
|
23054
|
+
function stringify(j) {
|
23055
|
+
return JSON.stringify(j);
|
23056
|
+
}
|
23057
|
+
function _caseJson(isNull2, isBool, isNum, isStr, isArr, isObj, j) {
|
23058
|
+
if (j == null)
|
23059
|
+
return isNull2();
|
23060
|
+
else if (typeof j === "boolean")
|
23061
|
+
return isBool(j);
|
23062
|
+
else if (typeof j === "number")
|
23063
|
+
return isNum(j);
|
23064
|
+
else if (typeof j === "string")
|
23065
|
+
return isStr(j);
|
23066
|
+
else if (Object.prototype.toString.call(j) === "[object Array]")
|
23067
|
+
return isArr(j);
|
23068
|
+
else
|
23069
|
+
return isObj(j);
|
23070
|
+
}
|
23071
|
+
|
23072
|
+
// output-es/Data.Argonaut.Core/index.js
|
23073
|
+
var caseJson = (a) => (b) => (c) => (d) => (e) => (f) => (json) => _caseJson(a, b, c, d, e, f, json);
|
23074
|
+
|
23075
|
+
// output-es/Data.Argonaut.Decode.Error/index.js
|
23076
|
+
var $JsonDecodeError = (tag, _1, _2) => ({ tag, _1, _2 });
|
23077
|
+
var showJsonDecodeError = {
|
23078
|
+
show: (v) => {
|
23079
|
+
if (v.tag === "TypeMismatch") {
|
23080
|
+
return "(TypeMismatch " + showStringImpl(v._1) + ")";
|
23081
|
+
}
|
23082
|
+
if (v.tag === "UnexpectedValue") {
|
23083
|
+
return "(UnexpectedValue " + stringify(v._1) + ")";
|
23084
|
+
}
|
23085
|
+
if (v.tag === "AtIndex") {
|
23086
|
+
return "(AtIndex " + showIntImpl(v._1) + " " + showJsonDecodeError.show(v._2) + ")";
|
23087
|
+
}
|
23088
|
+
if (v.tag === "AtKey") {
|
23089
|
+
return "(AtKey " + showStringImpl(v._1) + " " + showJsonDecodeError.show(v._2) + ")";
|
23090
|
+
}
|
23091
|
+
if (v.tag === "Named") {
|
23092
|
+
return "(Named " + showStringImpl(v._1) + " " + showJsonDecodeError.show(v._2) + ")";
|
23093
|
+
}
|
23094
|
+
if (v.tag === "MissingValue") {
|
23095
|
+
return "MissingValue";
|
23096
|
+
}
|
23097
|
+
fail();
|
23098
|
+
}
|
23099
|
+
};
|
23100
|
+
|
23101
|
+
// output-es/Data.Argonaut.Parser/foreign.js
|
23102
|
+
function _jsonParser(fail3, succ, s) {
|
23103
|
+
try {
|
23104
|
+
return succ(JSON.parse(s));
|
23105
|
+
} catch (e) {
|
23106
|
+
return fail3(e.message);
|
23107
|
+
}
|
23108
|
+
}
|
23109
|
+
|
23110
|
+
// output-es/Data.Argonaut.Decode.Parser/index.js
|
23111
|
+
var parseJson = (x) => {
|
23112
|
+
const $0 = _jsonParser(Left, Right, x);
|
23113
|
+
if ($0.tag === "Left") {
|
23114
|
+
return $Either("Left", $JsonDecodeError("TypeMismatch", "JSON"));
|
23115
|
+
}
|
23116
|
+
if ($0.tag === "Right") {
|
23117
|
+
return $Either("Right", $0._1);
|
23118
|
+
}
|
23119
|
+
fail();
|
23120
|
+
};
|
23121
|
+
|
23031
23122
|
// output-es/Primitive.Defs/index.js
|
23032
23123
|
var foldM4 = (dictMonad) => (f) => (b0) => foldableDict.foldl((b) => (a) => dictMonad.Bind1().bind(b)((a$1) => f(a$1)(a)))(dictMonad.Applicative0().pure(b0));
|
23033
23124
|
var disjointUnion3 = /* @__PURE__ */ disjointUnion(mapDictString);
|
23125
|
+
var fromFoldable20 = /* @__PURE__ */ foldlArray((m) => (a) => insert(ordVertex)(a)()(m))(Leaf2);
|
23126
|
+
var pretty = /* @__PURE__ */ (() => prettyVal(highlightableVertex).pretty)();
|
23127
|
+
var toUnfoldable15 = /* @__PURE__ */ (() => {
|
23128
|
+
const $0 = toArrayWithKey(Tuple);
|
23129
|
+
return (x) => toUnfoldable(unfoldableArray)($0(x));
|
23130
|
+
})();
|
23131
|
+
var fromFoldable110 = /* @__PURE__ */ fromFoldable2(foldableArray);
|
23034
23132
|
var unary2 = /* @__PURE__ */ unary(boundedJoinSemilatticeUni);
|
23035
23133
|
var binary2 = /* @__PURE__ */ binary(boundedJoinSemilatticeUni);
|
23036
23134
|
var binaryZero2 = /* @__PURE__ */ binaryZero(boundedJoinSemilatticeUni);
|
@@ -23055,7 +23153,7 @@ var matrixUpdate = /* @__PURE__ */ $Tuple(
|
|
23055
23153
|
const $$new = dictMonadWithGraphAlloc.new(typeNameVal);
|
23056
23154
|
return (dictMonadError) => {
|
23057
23155
|
const $$throw2 = $$throw(dictMonadError.MonadThrow0());
|
23058
|
-
return (dictMonadReader) => (dictLoadFile) => (v) => {
|
23156
|
+
return (dictMonadAff) => (dictMonadReader) => (dictLoadFile) => (v) => {
|
23059
23157
|
if (v.tag === "Cons" && v._1._3.tag === "Matrix" && v._2.tag === "Cons" && v._2._1._3.tag === "Constr" && v._2._1._3._2.tag === "Cons" && v._2._1._3._2._1._3.tag === "Int" && v._2._1._3._2._2.tag === "Cons" && v._2._1._3._2._2._1._3.tag === "Int" && v._2._1._3._2._2._2.tag === "Nil" && v._2._2.tag === "Cons" && v._2._2._2.tag === "Nil" && v._2._1._3._1 === "Pair") {
|
23060
23158
|
const $0 = v._2._2._1;
|
23061
23159
|
return $$new((a) => Val(a)(None))($$$Map("Two", Leaf2, v._1._1, void 0, Leaf2))($BaseVal(
|
@@ -23074,12 +23172,12 @@ var matrixLookup = /* @__PURE__ */ $Tuple(
|
|
23074
23172
|
/* @__PURE__ */ $ForeignOp$p({
|
23075
23173
|
arity: 2,
|
23076
23174
|
op: (dictMonadWithGraphAlloc) => (dictMonadError) => {
|
23077
|
-
const
|
23078
|
-
return (dictMonadReader) => (dictLoadFile) => (v) => {
|
23175
|
+
const $$throw2 = $$throw(dictMonadError.MonadThrow0());
|
23176
|
+
return (dictMonadAff) => (dictMonadReader) => (dictLoadFile) => (v) => {
|
23079
23177
|
if (v.tag === "Cons" && v._1._3.tag === "Matrix" && v._2.tag === "Cons" && v._2._1._3.tag === "Constr" && v._2._1._3._2.tag === "Cons" && v._2._1._3._2._1._3.tag === "Int" && v._2._1._3._2._2.tag === "Cons" && v._2._1._3._2._2._1._3.tag === "Int" && v._2._1._3._2._2._2.tag === "Nil" && v._2._2.tag === "Nil" && v._2._1._3._1 === "Pair") {
|
23080
|
-
return
|
23178
|
+
return dictMonadAff.MonadEffect0().Monad0().Applicative0().pure(matrixGet(v._2._1._3._2._1._3._1)(v._2._1._3._2._2._1._3._1)(v._1._3._1));
|
23081
23179
|
}
|
23082
|
-
return
|
23180
|
+
return $$throw2("Matrix and pair of integers expected");
|
23083
23181
|
};
|
23084
23182
|
}
|
23085
23183
|
})
|
@@ -23107,12 +23205,12 @@ var error_ = /* @__PURE__ */ $Tuple(
|
|
23107
23205
|
/* @__PURE__ */ $ForeignOp$p({
|
23108
23206
|
arity: 1,
|
23109
23207
|
op: (dictMonadWithGraphAlloc) => (dictMonadError) => {
|
23110
|
-
const
|
23111
|
-
return (dictMonadReader) => (dictLoadFile) => (v) => {
|
23208
|
+
const $$throw2 = $$throw(dictMonadError.MonadThrow0());
|
23209
|
+
return (dictMonadAff) => (dictMonadReader) => (dictLoadFile) => (v) => {
|
23112
23210
|
if (v.tag === "Cons" && v._1._3.tag === "Str" && v._2.tag === "Nil") {
|
23113
|
-
return
|
23211
|
+
return dictMonadAff.MonadEffect0().Monad0().Applicative0().pure(throwException(error(v._1._3._1))());
|
23114
23212
|
}
|
23115
|
-
return
|
23213
|
+
return $$throw2("String expected");
|
23116
23214
|
};
|
23117
23215
|
}
|
23118
23216
|
})
|
@@ -23125,26 +23223,28 @@ var dims = /* @__PURE__ */ $Tuple(
|
|
23125
23223
|
op: (dictMonadWithGraphAlloc) => {
|
23126
23224
|
const $$new = dictMonadWithGraphAlloc.new(typeNameVal);
|
23127
23225
|
return (dictMonadError) => {
|
23128
|
-
const
|
23129
|
-
|
23130
|
-
|
23131
|
-
|
23132
|
-
|
23133
|
-
|
23134
|
-
|
23135
|
-
|
23136
|
-
"
|
23137
|
-
|
23138
|
-
|
23139
|
-
"
|
23140
|
-
|
23141
|
-
|
23142
|
-
"
|
23143
|
-
|
23144
|
-
|
23145
|
-
|
23146
|
-
|
23147
|
-
|
23226
|
+
const $$throw2 = $$throw(dictMonadError.MonadThrow0());
|
23227
|
+
return (dictMonadAff) => {
|
23228
|
+
const $0 = dictMonadAff.MonadEffect0().Monad0().Bind1();
|
23229
|
+
return (dictMonadReader) => (dictLoadFile) => (v) => {
|
23230
|
+
if (v.tag === "Cons" && v._1._3.tag === "Matrix" && v._2.tag === "Nil") {
|
23231
|
+
const $1 = v._1._3._1._2._2._1;
|
23232
|
+
const $2 = v._1._1;
|
23233
|
+
const $3 = v._1._3._1._2._2._2;
|
23234
|
+
return $0.bind($$new((a) => Val(a)(None))($$$Map("Two", Leaf2, v._1._3._1._2._1._2, void 0, Leaf2))($BaseVal(
|
23235
|
+
"Int",
|
23236
|
+
v._1._3._1._2._1._1
|
23237
|
+
)))((v1) => $0.bind($$new((a) => Val(a)(None))($$$Map("Two", Leaf2, $3, void 0, Leaf2))($BaseVal(
|
23238
|
+
"Int",
|
23239
|
+
$1
|
23240
|
+
)))((v2) => $$new((a) => Val(a)(None))($$$Map("Two", Leaf2, $2, void 0, Leaf2))($BaseVal(
|
23241
|
+
"Constr",
|
23242
|
+
"Pair",
|
23243
|
+
$List("Cons", v1, $List("Cons", v2, Nil))
|
23244
|
+
))));
|
23245
|
+
}
|
23246
|
+
return $$throw2("Matrix expected");
|
23247
|
+
};
|
23148
23248
|
};
|
23149
23249
|
};
|
23150
23250
|
}
|
@@ -23158,27 +23258,29 @@ var dict_map = /* @__PURE__ */ $Tuple(
|
|
23158
23258
|
const apply5 = apply2(dictMonadWithGraphAlloc);
|
23159
23259
|
const $$new = dictMonadWithGraphAlloc.new(typeNameVal);
|
23160
23260
|
return (dictMonadError) => {
|
23161
|
-
const
|
23162
|
-
|
23163
|
-
|
23164
|
-
|
23165
|
-
|
23166
|
-
|
23167
|
-
|
23168
|
-
|
23169
|
-
|
23170
|
-
|
23171
|
-
|
23172
|
-
|
23173
|
-
|
23174
|
-
|
23175
|
-
|
23176
|
-
|
23177
|
-
"
|
23178
|
-
|
23179
|
-
|
23180
|
-
|
23181
|
-
|
23261
|
+
const $$throw2 = $$throw(dictMonadError.MonadThrow0());
|
23262
|
+
return (dictMonadAff) => {
|
23263
|
+
const Monad0 = dictMonadAff.MonadEffect0().Monad0();
|
23264
|
+
const Bind1 = Monad0.Bind1();
|
23265
|
+
const traverse2 = traversableDict.traverse(Monad0.Applicative0());
|
23266
|
+
return (dictMonadReader) => {
|
23267
|
+
const apply12 = apply5(dictMonadReader)(dictMonadAff);
|
23268
|
+
return (dictLoadFile) => {
|
23269
|
+
const apply22 = apply12(dictLoadFile);
|
23270
|
+
return (v) => {
|
23271
|
+
if (v.tag === "Cons" && v._2.tag === "Cons" && v._2._1._3.tag === "Dictionary" && v._2._2.tag === "Nil") {
|
23272
|
+
const $0 = v._1;
|
23273
|
+
const $1 = v._2._1._1;
|
23274
|
+
return Bind1.bind(traverse2((v2) => {
|
23275
|
+
const $2 = v2._1;
|
23276
|
+
return Bind1.Apply0().Functor0().map((v3) => $Tuple($2, v3))(apply22($0)(v2._2));
|
23277
|
+
})(v._2._1._3._1))((d$p) => $$new((a) => Val(a)(None))($$$Map("Two", Leaf2, $1, void 0, Leaf2))($BaseVal(
|
23278
|
+
"Dictionary",
|
23279
|
+
d$p
|
23280
|
+
)));
|
23281
|
+
}
|
23282
|
+
return $$throw2("Function and dictionary expected");
|
23283
|
+
};
|
23182
23284
|
};
|
23183
23285
|
};
|
23184
23286
|
};
|
@@ -23194,40 +23296,42 @@ var dict_intersectionWith = /* @__PURE__ */ $Tuple(
|
|
23194
23296
|
const apply5 = apply2(dictMonadWithGraphAlloc);
|
23195
23297
|
const $$new = dictMonadWithGraphAlloc.new(typeNameVal);
|
23196
23298
|
return (dictMonadError) => {
|
23197
|
-
const
|
23198
|
-
|
23199
|
-
|
23200
|
-
|
23201
|
-
|
23202
|
-
|
23203
|
-
|
23204
|
-
|
23205
|
-
|
23206
|
-
|
23207
|
-
|
23208
|
-
|
23209
|
-
|
23210
|
-
|
23211
|
-
|
23212
|
-
|
23213
|
-
|
23214
|
-
|
23215
|
-
|
23299
|
+
const $$throw2 = $$throw(dictMonadError.MonadThrow0());
|
23300
|
+
return (dictMonadAff) => {
|
23301
|
+
const Monad0 = dictMonadAff.MonadEffect0().Monad0();
|
23302
|
+
const Bind1 = Monad0.Bind1();
|
23303
|
+
const Applicative0 = Monad0.Applicative0();
|
23304
|
+
const $0 = Bind1.Apply0().Functor0();
|
23305
|
+
return (dictMonadReader) => {
|
23306
|
+
const apply12 = apply5(dictMonadReader)(dictMonadAff);
|
23307
|
+
return (dictLoadFile) => {
|
23308
|
+
const apply22 = apply12(dictLoadFile);
|
23309
|
+
return (v) => {
|
23310
|
+
if (v.tag === "Cons" && v._2.tag === "Cons" && v._2._1._3.tag === "Dictionary" && v._2._2.tag === "Cons" && v._2._2._1._3.tag === "Dictionary" && v._2._2._2.tag === "Nil") {
|
23311
|
+
const $1 = v._1;
|
23312
|
+
const $2 = v._2._1._1;
|
23313
|
+
const $3 = v._2._2._1._1;
|
23314
|
+
return Bind1.bind($0.map(Dictionary3)($0.map(DictRep)(traversableDict.traverse(Applicative0)(identity14)(intersectionWith_Object((v2) => (v3) => {
|
23315
|
+
const $4 = v3._2;
|
23316
|
+
const $5 = v2._1;
|
23317
|
+
const $6 = v3._1;
|
23318
|
+
return Bind1.bind(Bind1.bind(apply22($1)(v2._2))((a) => apply22(a)($4)))((v4) => Bind1.bind($$new((a) => Val(a)(None))(insert(ordVertex)($6)()($$$Map(
|
23319
|
+
"Two",
|
23320
|
+
Leaf2,
|
23321
|
+
$5,
|
23322
|
+
void 0,
|
23323
|
+
Leaf2
|
23324
|
+
)))(v4._3))((v5) => Applicative0.pure($Tuple(v5._1, v4))));
|
23325
|
+
})(v._2._1._3._1)(v._2._2._1._3._1)))))((v$p) => $$new((a) => Val(a)(None))(insert(ordVertex)($3)()($$$Map(
|
23216
23326
|
"Two",
|
23217
23327
|
Leaf2,
|
23218
|
-
$
|
23328
|
+
$2,
|
23219
23329
|
void 0,
|
23220
23330
|
Leaf2
|
23221
|
-
)))(
|
23222
|
-
}
|
23223
|
-
|
23224
|
-
|
23225
|
-
$2,
|
23226
|
-
void 0,
|
23227
|
-
Leaf2
|
23228
|
-
)))(v$p));
|
23229
|
-
}
|
23230
|
-
return MonadThrow0.throwError(error("Function and two dictionaries expected"));
|
23331
|
+
)))(v$p));
|
23332
|
+
}
|
23333
|
+
return $$throw2("Function and two dictionaries expected");
|
23334
|
+
};
|
23231
23335
|
};
|
23232
23336
|
};
|
23233
23337
|
};
|
@@ -23241,7 +23345,7 @@ var dict_get = /* @__PURE__ */ $Tuple(
|
|
23241
23345
|
arity: 2,
|
23242
23346
|
op: (dictMonadWithGraphAlloc) => (dictMonadError) => {
|
23243
23347
|
const MonadThrow0 = dictMonadError.MonadThrow0();
|
23244
|
-
return (dictMonadReader) => (dictLoadFile) => (v) => {
|
23348
|
+
return (dictMonadAff) => (dictMonadReader) => (dictLoadFile) => (v) => {
|
23245
23349
|
if (v.tag === "Cons" && v._1._3.tag === "Str" && v._2.tag === "Cons" && v._2._1._3.tag === "Dictionary" && v._2._2.tag === "Nil") {
|
23246
23350
|
return orElse(MonadThrow0)('Key "' + v._1._3._1 + '" not found')((() => {
|
23247
23351
|
const $0 = _lookup(Nothing, Just, v._1._3._1, v._2._1._3._1);
|
@@ -23263,21 +23367,23 @@ var dict_foldl = /* @__PURE__ */ $Tuple(
|
|
23263
23367
|
op: (dictMonadWithGraphAlloc) => {
|
23264
23368
|
const apply5 = apply2(dictMonadWithGraphAlloc);
|
23265
23369
|
return (dictMonadError) => {
|
23266
|
-
const
|
23267
|
-
|
23268
|
-
|
23269
|
-
|
23270
|
-
|
23271
|
-
|
23272
|
-
|
23273
|
-
|
23274
|
-
|
23275
|
-
|
23276
|
-
|
23277
|
-
|
23278
|
-
|
23279
|
-
|
23280
|
-
|
23370
|
+
const $$throw2 = $$throw(dictMonadError.MonadThrow0());
|
23371
|
+
return (dictMonadAff) => {
|
23372
|
+
const Monad0 = dictMonadAff.MonadEffect0().Monad0();
|
23373
|
+
return (dictMonadReader) => {
|
23374
|
+
const apply12 = apply5(dictMonadReader)(dictMonadAff);
|
23375
|
+
return (dictLoadFile) => {
|
23376
|
+
const apply22 = apply12(dictLoadFile);
|
23377
|
+
return (v) => {
|
23378
|
+
if (v.tag === "Cons" && v._2.tag === "Cons" && v._2._2.tag === "Cons" && v._2._2._1._3.tag === "Dictionary" && v._2._2._2.tag === "Nil") {
|
23379
|
+
const $0 = v._1;
|
23380
|
+
return foldM4(Monad0)((u1) => (v2) => {
|
23381
|
+
const $1 = v2._2;
|
23382
|
+
return Monad0.Bind1().bind(apply22($0)(u1))((a) => apply22(a)($1));
|
23383
|
+
})(v._2._1)(v._2._2._1._3._1);
|
23384
|
+
}
|
23385
|
+
return $$throw2("Function, value and dictionary expected");
|
23386
|
+
};
|
23281
23387
|
};
|
23282
23388
|
};
|
23283
23389
|
};
|
@@ -23293,7 +23399,7 @@ var dict_disjointUnion = /* @__PURE__ */ $Tuple(
|
|
23293
23399
|
const $$new = dictMonadWithGraphAlloc.new(typeNameVal);
|
23294
23400
|
return (dictMonadError) => {
|
23295
23401
|
const $$throw2 = $$throw(dictMonadError.MonadThrow0());
|
23296
|
-
return (dictMonadReader) => (dictLoadFile) => (v) => {
|
23402
|
+
return (dictMonadAff) => (dictMonadReader) => (dictLoadFile) => (v) => {
|
23297
23403
|
if (v.tag === "Cons" && v._1._3.tag === "Dictionary" && v._2.tag === "Cons" && v._2._1._3.tag === "Dictionary" && v._2._2.tag === "Nil") {
|
23298
23404
|
return $$new((a) => Val(a)(None))(insert(ordVertex)(v._2._1._1)()($$$Map(
|
23299
23405
|
"Two",
|
@@ -23317,7 +23423,7 @@ var dict_difference = /* @__PURE__ */ $Tuple(
|
|
23317
23423
|
const $$new = dictMonadWithGraphAlloc.new(typeNameVal);
|
23318
23424
|
return (dictMonadError) => {
|
23319
23425
|
const $$throw2 = $$throw(dictMonadError.MonadThrow0());
|
23320
|
-
return (dictMonadReader) => (dictLoadFile) => (v) => {
|
23426
|
+
return (dictMonadAff) => (dictMonadReader) => (dictLoadFile) => (v) => {
|
23321
23427
|
if (v.tag === "Cons" && v._1._3.tag === "Dictionary" && v._2.tag === "Cons" && v._2._1._3.tag === "Dictionary" && v._2._2.tag === "Nil") {
|
23322
23428
|
return $$new((a) => Val(a)(None))(insert(ordVertex)(v._2._1._1)()($$$Map(
|
23323
23429
|
"Two",
|
@@ -23338,18 +23444,103 @@ var debugLog = /* @__PURE__ */ $Tuple(
|
|
23338
23444
|
/* @__PURE__ */ $ForeignOp$p({
|
23339
23445
|
arity: 1,
|
23340
23446
|
op: (dictMonadWithGraphAlloc) => (dictMonadError) => {
|
23341
|
-
const
|
23342
|
-
return (dictMonadReader) => (dictLoadFile) => (v) => {
|
23447
|
+
const $$throw2 = $$throw(dictMonadError.MonadThrow0());
|
23448
|
+
return (dictMonadAff) => (dictMonadReader) => (dictLoadFile) => (v) => {
|
23343
23449
|
if (v.tag === "Cons" && v._2.tag === "Nil") {
|
23344
23450
|
const $0 = v._1;
|
23345
|
-
return
|
23451
|
+
return dictMonadAff.MonadEffect0().Monad0().Applicative0().pure(_trace($0, (v$1) => $0));
|
23346
23452
|
}
|
23347
|
-
return
|
23453
|
+
return $$throw2("Single value expected");
|
23454
|
+
};
|
23455
|
+
}
|
23456
|
+
})
|
23457
|
+
);
|
23458
|
+
var arrVtoVal$p = (dictMonadWithGraphAlloc) => {
|
23459
|
+
const $$new = dictMonadWithGraphAlloc.new(typeNameVal);
|
23460
|
+
return (v) => {
|
23461
|
+
if (v.tag === "Nil") {
|
23462
|
+
return $$new((a) => Val(a)(None))(Leaf2)($BaseVal("Constr", "Nil", Nil));
|
23463
|
+
}
|
23464
|
+
if (v.tag === "Cons") {
|
23465
|
+
const $0 = v._1;
|
23466
|
+
return dictMonadWithGraphAlloc.MonadWithGraph2().Monad0().Bind1().bind(arrVtoVal$p(dictMonadWithGraphAlloc)(v._2))((tailV) => $$new((a) => Val(a)(None))(fromFoldable20([
|
23467
|
+
$0._1,
|
23468
|
+
tailV._1
|
23469
|
+
]))($BaseVal("Constr", ":", $List("Cons", $0, $List("Cons", tailV, Nil)))));
|
23470
|
+
}
|
23471
|
+
fail();
|
23472
|
+
};
|
23473
|
+
};
|
23474
|
+
var fromJsonVal$p = (dictMonadWithGraphAlloc) => {
|
23475
|
+
const $$throw2 = $$throw(dictMonadWithGraphAlloc.MonadError1().MonadThrow0());
|
23476
|
+
const Monad0 = dictMonadWithGraphAlloc.MonadWithGraph2().Monad0();
|
23477
|
+
const $0 = Monad0.Bind1();
|
23478
|
+
const $$new = dictMonadWithGraphAlloc.new(typeNameVal);
|
23479
|
+
const Applicative0 = Monad0.Applicative0();
|
23480
|
+
const traverse2 = traversableArray.traverse(Applicative0);
|
23481
|
+
const arrVtoVal$p1 = arrVtoVal$p(dictMonadWithGraphAlloc);
|
23482
|
+
return caseJson((v) => $$throw2("Error, Null JSON value cannot be converted to Val Vertex"))((b) => $0.bind($$new((a) => Val(a)(None))(Leaf2)($BaseVal(
|
23483
|
+
"Constr",
|
23484
|
+
b ? "True" : "False",
|
23485
|
+
Nil
|
23486
|
+
)))((v) => Applicative0.pure(spyWhen(true)("Processing boolean")((x) => intercalate4("\n")(pretty(x).lines))(v))))((n) => $0.bind((() => {
|
23487
|
+
const v = fromNumber(n);
|
23488
|
+
if (v.tag === "Just") {
|
23489
|
+
return $$new((a) => Val(a)(None))(Leaf2)($BaseVal("Int", v._1));
|
23490
|
+
}
|
23491
|
+
if (v.tag === "Nothing") {
|
23492
|
+
return $$new((a) => Val(a)(None))(Leaf2)($BaseVal("Float", n));
|
23493
|
+
}
|
23494
|
+
fail();
|
23495
|
+
})())((v) => Applicative0.pure(spyWhen(true)("Processing number")((x) => intercalate4("\n")(pretty(x).lines))(v))))((s) => $0.bind($$new((a) => Val(a)(None))(Leaf2)($BaseVal(
|
23496
|
+
"Str",
|
23497
|
+
s
|
23498
|
+
)))((v) => Applicative0.pure(spyWhen(true)("Processing string")((x) => intercalate4("\n")(pretty(x).lines))(v))))((arr) => $0.bind(traverse2(fromJsonVal$p(dictMonadWithGraphAlloc))(arr))((vs) => $0.bind(arrVtoVal$p1(toUnfoldable(unfoldableList)(vs)))((v) => Applicative0.pure(spyWhen(true)("Processing array")((x) => intercalate4("\n")(pretty(x).lines))(v)))))((obj) => $0.bind(traverse2((v) => {
|
23499
|
+
const $1 = v._1;
|
23500
|
+
return $0.bind(fromJsonVal$p(dictMonadWithGraphAlloc)(v._2))((vv) => Applicative0.pure($Tuple($1, $Tuple(vv._1, vv))));
|
23501
|
+
})(toUnfoldable15(obj)))((entries) => $0.bind($$new((a) => Val(a)(None))(fromFoldable20(arrayMap((v) => v._2._1)(entries)))($BaseVal(
|
23502
|
+
"Dictionary",
|
23503
|
+
fromFoldable110(entries)
|
23504
|
+
)))((v) => Applicative0.pure(spyWhen(true)("Processing object")((x) => intercalate4("\n")(pretty(x).lines))(v)))));
|
23505
|
+
};
|
23506
|
+
var loadJson = /* @__PURE__ */ $Tuple(
|
23507
|
+
"loadJson",
|
23508
|
+
/* @__PURE__ */ $ForeignOp$p({
|
23509
|
+
arity: 1,
|
23510
|
+
op: (dictMonadWithGraphAlloc) => {
|
23511
|
+
const fromJsonVal$p1 = fromJsonVal$p(dictMonadWithGraphAlloc);
|
23512
|
+
return (dictMonadError) => {
|
23513
|
+
const $$throw2 = $$throw(dictMonadError.MonadThrow0());
|
23514
|
+
return (dictMonadAff) => {
|
23515
|
+
const $0 = dictMonadAff.MonadEffect0().Monad0().Bind1();
|
23516
|
+
return (dictMonadReader) => {
|
23517
|
+
const ask = dictMonadReader.MonadAsk0().ask;
|
23518
|
+
return (dictLoadFile) => {
|
23519
|
+
const loadFile = dictLoadFile.loadFile(dictMonadError)(dictMonadAff);
|
23520
|
+
return (v) => {
|
23521
|
+
if (v.tag === "Cons" && v._1._3.tag === "Str" && v._2.tag === "Nil") {
|
23522
|
+
const $1 = v._1._3._1;
|
23523
|
+
return $0.bind(ask)((v1) => $0.bind(loadFile(v1.fluidSrcPaths)($1))((str) => {
|
23524
|
+
const v2 = parseJson(str);
|
23525
|
+
if (v2.tag === "Left") {
|
23526
|
+
return $$throw2("Failed to parse JSON: " + showJsonDecodeError.show(v2._1));
|
23527
|
+
}
|
23528
|
+
if (v2.tag === "Right") {
|
23529
|
+
return fromJsonVal$p1(v2._1);
|
23530
|
+
}
|
23531
|
+
fail();
|
23532
|
+
}));
|
23533
|
+
}
|
23534
|
+
return $$throw2("String expected");
|
23535
|
+
};
|
23536
|
+
};
|
23537
|
+
};
|
23538
|
+
};
|
23348
23539
|
};
|
23349
23540
|
}
|
23350
23541
|
})
|
23351
23542
|
);
|
23352
|
-
var primitives = /* @__PURE__ */
|
23543
|
+
var primitives = /* @__PURE__ */ fromFoldable110([
|
23353
23544
|
/* @__PURE__ */ $Tuple(
|
23354
23545
|
":",
|
23355
23546
|
/* @__PURE__ */ $Val(void 0, None, /* @__PURE__ */ $BaseVal("Fun", /* @__PURE__ */ $Fun("PartialConstr", ":", Nil)))
|
@@ -23358,6 +23549,7 @@ var primitives = /* @__PURE__ */ fromFoldable2(foldableArray)([
|
|
23358
23549
|
/* @__PURE__ */ extern1(debugLog),
|
23359
23550
|
/* @__PURE__ */ extern1(dims),
|
23360
23551
|
/* @__PURE__ */ extern1(error_),
|
23552
|
+
/* @__PURE__ */ extern1(loadJson),
|
23361
23553
|
/* @__PURE__ */ unary2("floor")({ i: number, o: $$int, fwd: floor2 }),
|
23362
23554
|
/* @__PURE__ */ unary2("log")({ i: intOrNumber, o: number, fwd: log3 }),
|
23363
23555
|
/* @__PURE__ */ unary2("numToStr")({ i: intOrNumber, o: string, fwd: numToStr }),
|
@@ -23570,12 +23762,14 @@ var initialConfig = (dictMonadAff) => {
|
|
23570
23762
|
Applicative0: () => applicativeStateT(Monad0),
|
23571
23763
|
Bind1: () => bindStateT(Monad0)
|
23572
23764
|
})(graphGraphImpl);
|
23573
|
-
const
|
23765
|
+
const monadAffState2 = monadAffState(dictMonadAff);
|
23766
|
+
const monadAffState1 = monadAffState(monadAffState2);
|
23767
|
+
const $2 = monadAffState2.MonadEffect0().Monad0();
|
23574
23768
|
const $3 = dictMonadAff.MonadEffect0().Monad0();
|
23575
23769
|
return (dictMonadError) => {
|
23576
23770
|
const eval_progCxt2 = eval_progCxt(monadWithGraphAllocWithGr(dictMonadError));
|
23577
23771
|
return (dictMonadReader) => {
|
23578
|
-
const eval_progCxt1 = eval_progCxt2(monadReaderStateT(monadReaderStateT(dictMonadReader)));
|
23772
|
+
const eval_progCxt1 = eval_progCxt2(monadReaderStateT(monadReaderStateT(dictMonadReader)))(monadAffState1);
|
23579
23773
|
return (dictLoadFile) => {
|
23580
23774
|
const eval_progCxt22 = eval_progCxt1((() => {
|
23581
23775
|
const loadFile1 = dictLoadFile.loadFile(dictMonadError)(dictMonadAff);
|
@@ -25161,7 +25355,7 @@ var disamb = (dictMonad) => {
|
|
25161
25355
|
|
25162
25356
|
// output-es/Options.Applicative.Common/index.js
|
25163
25357
|
var $OptWord = (_1, _2) => ({ tag: "OptWord", _1, _2 });
|
25164
|
-
var
|
25358
|
+
var fromFoldable21 = /* @__PURE__ */ (() => fromFoldableImpl(foldableList.foldr))();
|
25165
25359
|
var any2 = /* @__PURE__ */ (() => foldableArray.foldMap((() => {
|
25166
25360
|
const semigroupDisj1 = { append: (v) => (v1) => v || v1 };
|
25167
25361
|
return { mempty: false, Semigroup0: () => semigroupDisj1 };
|
@@ -25236,12 +25430,12 @@ var parseWord = /* @__PURE__ */ (() => {
|
|
25236
25430
|
(() => {
|
25237
25431
|
const v2 = span((v3) => v3 !== "=")($1._2._2);
|
25238
25432
|
if (v2.rest.tag === "Nil") {
|
25239
|
-
return $OptWord($OptName("OptLong", fromCharArray(
|
25433
|
+
return $OptWord($OptName("OptLong", fromCharArray(fromFoldable21($1._2._2))), Nothing);
|
25240
25434
|
}
|
25241
25435
|
if (v2.rest.tag === "Cons") {
|
25242
25436
|
return $OptWord(
|
25243
|
-
$OptName("OptLong", fromCharArray(
|
25244
|
-
$Maybe("Just", fromCharArray(
|
25437
|
+
$OptName("OptLong", fromCharArray(fromFoldable21(v2.init))),
|
25438
|
+
$Maybe("Just", fromCharArray(fromFoldable21(v2.rest._2)))
|
25245
25439
|
);
|
25246
25440
|
}
|
25247
25441
|
fail();
|
@@ -25256,7 +25450,7 @@ var parseWord = /* @__PURE__ */ (() => {
|
|
25256
25450
|
"Just",
|
25257
25451
|
$OptWord(
|
25258
25452
|
$OptName("OptShort", $1._2._1),
|
25259
|
-
$1._2._2.tag !== "Nil" ? $Maybe("Just", fromCharArray(
|
25453
|
+
$1._2._2.tag !== "Nil" ? $Maybe("Just", fromCharArray(fromFoldable21($1._2._2))) : Nothing
|
25260
25454
|
)
|
25261
25455
|
);
|
25262
25456
|
}
|
@@ -25721,7 +25915,7 @@ var mapParser = (f) => {
|
|
25721
25915
|
|
25722
25916
|
// output-es/Options.Applicative.BashCompletion/index.js
|
25723
25917
|
var $Richness = (tag, _1, _2) => ({ tag, _1, _2 });
|
25724
|
-
var
|
25918
|
+
var fromFoldable24 = /* @__PURE__ */ foldrArray(Cons)(Nil);
|
25725
25919
|
var identity29 = (x) => x;
|
25726
25920
|
var fold4 = /* @__PURE__ */ (() => foldableArray.foldMap(monoidArray)(identity3))();
|
25727
25921
|
var sequence = /* @__PURE__ */ (() => traversableArray.traverse(applicativeEffect)(identity4))();
|
@@ -25731,7 +25925,7 @@ var unLines = (xs) => foldlArray((v) => (v1) => {
|
|
25731
25925
|
}
|
25732
25926
|
return { init: false, acc: v.acc + "\n" + v1 };
|
25733
25927
|
})({ init: true, acc: "" })(xs).acc;
|
25734
|
-
var
|
25928
|
+
var fromFoldable111 = /* @__PURE__ */ (() => fromFoldableImpl(foldableList.foldr))();
|
25735
25929
|
var Standard = /* @__PURE__ */ $Richness("Standard");
|
25736
25930
|
var Enriched = (value0) => (value1) => $Richness("Enriched", value0, value1);
|
25737
25931
|
var zshCompletionScript = (prog) => (progn) => {
|
@@ -25868,7 +26062,7 @@ var bashCompletionQuery = (pinfo) => (pprefs) => (richness) => (ws) => (i) => (v
|
|
25868
26062
|
}
|
25869
26063
|
fail();
|
25870
26064
|
};
|
25871
|
-
const v2 = runCompletion(runParserFully(completionMonadP)(pinfo.infoPolicy)(pinfo.infoParser)(
|
26065
|
+
const v2 = runCompletion(runParserFully(completionMonadP)(pinfo.infoPolicy)(pinfo.infoParser)(fromFoldable24(slice(1)(v1.init.length)(v1.init))))(pprefs);
|
25872
26066
|
if (v2.tag === "Just") {
|
25873
26067
|
if (v2._1.tag === "Left") {
|
25874
26068
|
const $1 = v2._1._1._2;
|
@@ -26044,7 +26238,7 @@ var bashCompletionParser = (pinfo) => (pprefs) => $Parser(
|
|
26044
26238
|
),
|
26045
26239
|
$Parser("NilP", Standard)
|
26046
26240
|
)),
|
26047
|
-
parserFunctor.map(
|
26241
|
+
parserFunctor.map(fromFoldable111)($Parser(
|
26048
26242
|
"BindP",
|
26049
26243
|
manyM(option(readerAsk)($Mod(
|
26050
26244
|
(x) => internal._1({
|
@@ -26764,7 +26958,7 @@ var mempty13 = /* @__PURE__ */ (() => chunkMonoid(docSemigroup).mempty)();
|
|
26764
26958
|
var fold1 = /* @__PURE__ */ (() => foldableArray.foldMap(parserHelpMonoid)(identity3))();
|
26765
26959
|
var mempty22 = (v) => () => {
|
26766
26960
|
};
|
26767
|
-
var
|
26961
|
+
var fromFoldable25 = /* @__PURE__ */ foldrArray(Cons)(Nil);
|
26768
26962
|
var renderFailure = (failure) => (progn) => {
|
26769
26963
|
const v = failure(progn);
|
26770
26964
|
return $Tuple(
|
@@ -26975,7 +27169,7 @@ var execParserPure = (pprefs) => (pinfo) => (args) => {
|
|
26975
27169
|
"AltP",
|
26976
27170
|
parserFunctor.map(Left)(bashCompletionParser(pinfo)(pprefs)),
|
26977
27171
|
parserFunctor.map(Right)(pinfo.infoParser)
|
26978
|
-
))(
|
27172
|
+
))(fromFoldable25(args))([])(pprefs);
|
26979
27173
|
if (v._1.tag === "Right") {
|
26980
27174
|
if (v._1._1.tag === "Right") {
|
26981
27175
|
return $ParserResult("Success", v._1._1._1);
|
@@ -27002,7 +27196,7 @@ var loadFileNodeT2 = /* @__PURE__ */ loadFileNodeT(monadAff);
|
|
27002
27196
|
var loadProgCxt2 = /* @__PURE__ */ loadProgCxt(monadAffNodeT)(monadErrorErrorNodeT)(monadReaderFileCxtNodeT)(loadFileNodeT2);
|
27003
27197
|
var prepConfig2 = /* @__PURE__ */ prepConfig(monadAffNodeT)(monadErrorErrorNodeT)(monadReaderFileCxtNodeT)(loadFileNodeT2);
|
27004
27198
|
var graphEval2 = /* @__PURE__ */ graphEval(monadAffNodeT)(monadReaderFileCxtNodeT)(loadFileNodeT2)(monadErrorErrorNodeT);
|
27005
|
-
var
|
27199
|
+
var fromFoldable26 = /* @__PURE__ */ (() => fromFoldableImpl(foldableList.foldr))();
|
27006
27200
|
var Evaluate = (value0) => $Command(value0);
|
27007
27201
|
var parseLocal = /* @__PURE__ */ $Parser(
|
27008
27202
|
"AltP",
|
@@ -27113,10 +27307,10 @@ var parseEvaluate = /* @__PURE__ */ (() => $Parser(
|
|
27113
27307
|
"MultP",
|
27114
27308
|
$MultPE(
|
27115
27309
|
parserFunctor.map((v) => (v1) => (v2) => (v3) => (v4) => $EvalArgs({ local: v, imports: v1, datasets: v2, fileName: v3, fluidSrcPath: v4 }))(parseLocal),
|
27116
|
-
parserFunctor.map(
|
27310
|
+
parserFunctor.map(fromFoldable26)(parseImports)
|
27117
27311
|
)
|
27118
27312
|
),
|
27119
|
-
parserFunctor.map(
|
27313
|
+
parserFunctor.map(fromFoldable26)(parseDatasets)
|
27120
27314
|
)
|
27121
27315
|
),
|
27122
27316
|
option(readerAsk)((() => {
|