@explorable-viz/fluid 0.7.76 → 0.7.77

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.
@@ -0,0 +1,13 @@
1
+ # https://editorconfig.org
2
+ root = true
3
+
4
+ [*]
5
+ indent_style = space
6
+ indent_size = 2
7
+ end_of_line = lf
8
+ charset = utf-8
9
+ trim_trailing_whitespace = true
10
+ insert_final_newline = true
11
+
12
+ [*.md]
13
+ trim_trailing_whitespace = false
@@ -0,0 +1,30 @@
1
+ {
2
+ "env": { "browser": true },
3
+ "extends": "eslint:recommended",
4
+ "parserOptions": { "ecmaVersion": 6, "sourceType": "module" },
5
+ "rules": {
6
+ "block-scoped-var": "error",
7
+ "consistent-return": "error",
8
+ "eqeqeq": "error",
9
+ "guard-for-in": "error",
10
+ "no-bitwise": "error",
11
+ "no-caller": "error",
12
+ "no-constant-condition": ["error", { "checkLoops": false }],
13
+ "no-extra-parens": "off",
14
+ "no-extend-native": "error",
15
+ "no-loop-func": "error",
16
+ "no-new": "error",
17
+ "no-param-reassign": "error",
18
+ "no-return-assign": "error",
19
+ "no-sequences": "error",
20
+ "no-unused-expressions": "error",
21
+ "no-use-before-define": "error",
22
+ "no-undef": "error",
23
+ "no-eq-null": "error",
24
+ "radix": ["error", "always"],
25
+ "indent": ["error", 2, { "SwitchCase": 0 }],
26
+ "quotes": ["error", "double"],
27
+ "semi": ["error", "always"],
28
+ "strict": ["error", "global"]
29
+ }
30
+ }
@@ -0,0 +1,13 @@
1
+ .*
2
+ !.gitignore
3
+ !.github
4
+ !.editorconfig
5
+ !.eslintrc.json
6
+
7
+ output
8
+ generated-docs
9
+ bower_components
10
+
11
+ node_modules
12
+ package-lock.json
13
+ *.lock
@@ -0,0 +1,13 @@
1
+ # https://editorconfig.org
2
+ root = true
3
+
4
+ [*]
5
+ indent_style = space
6
+ indent_size = 2
7
+ end_of_line = lf
8
+ charset = utf-8
9
+ trim_trailing_whitespace = true
10
+ insert_final_newline = true
11
+
12
+ [*.md]
13
+ trim_trailing_whitespace = false
@@ -0,0 +1,9 @@
1
+ .*
2
+ !.gitignore
3
+ !.github
4
+ !.editorconfig
5
+ !.tidyrc.json
6
+
7
+ output
8
+ generated-docs
9
+ bower_components
@@ -0,0 +1,10 @@
1
+ {
2
+ "importSort": "source",
3
+ "importWrap": "source",
4
+ "indent": 2,
5
+ "operatorsFile": null,
6
+ "ribbon": 1,
7
+ "typeArrowPlacement": "first",
8
+ "unicode": "never",
9
+ "width": null
10
+ }
@@ -11584,6 +11584,9 @@ var verticesVertex = (dictFunctor) => (dictFoldable) => ({
11584
11584
  return (x) => $0(dictFunctor.map(singleton2)(x));
11585
11585
  })()
11586
11586
  });
11587
+ var eqDVertex = { eq: (v) => (v1) => v._1 === v1._1 };
11588
+ var ordDVertex = { compare: (v) => (v1) => ordString.compare(v._1)(v1._1), Eq0: () => eqDVertex };
11589
+ var unDVertex = /* @__PURE__ */ map(ordVertex)((x) => x._1);
11587
11590
  var showVertices = (\u03B1s) => "{" + joinWith(", ")(fromFoldable5(map(ordString)(unsafeCoerce)(\u03B1s))) + "}";
11588
11591
  var showEdgeList = (es) => joinWith("\n")([
11589
11592
  "digraph G {",
@@ -12194,10 +12197,10 @@ var runWithGraphT = (dictMonad) => {
12194
12197
  };
12195
12198
  };
12196
12199
  var runWithGraphT_spy = (dictMonad) => {
12197
- const runWithGraphT1 = runWithGraphT(dictMonad);
12200
+ const runWithGraphT2 = runWithGraphT(dictMonad);
12198
12201
  const spyFunWhenM2 = spyFunWhenM(dictMonad.Bind1().Apply0().Functor0());
12199
12202
  return (dictGraph) => {
12200
- const $0 = runWithGraphT1(dictGraph);
12203
+ const $0 = runWithGraphT2(dictGraph);
12201
12204
  const $1 = spyFunWhenM2(false)("runWithGraphT")(showVertices)((x) => showEdgeList(toEdgeList(dictGraph)(x._1)));
12202
12205
  return (x) => $1($0(x));
12203
12206
  };
@@ -12278,7 +12281,7 @@ var bwdSlice = (dictGraph) => {
12278
12281
  if (member3(v1.pending._1._1)(v1.visited)) {
12279
12282
  return pure($Step("Loop", { visited: v1.visited, "\u03B1s": Nil, pending: v1.pending._2 }));
12280
12283
  }
12281
- return bindStateT(monadIdentity).bind(extend(v1.pending._1._1)($3)(spyWhen(true)("Value found at " + showStringImpl(v1.pending._1._1))((v$1) => v$1((dictShow) => dictShow.show))($2)))(() => pure($Step(
12284
+ return bindStateT(monadIdentity).bind(extend(v1.pending._1._1)($3)(spyWhen(false)("Value found at " + showStringImpl(v1.pending._1._1))((v$1) => v$1((dictShow) => dictShow.show))($2)))(() => pure($Step(
12282
12285
  "Loop",
12283
12286
  { visited: insert(ordVertex)(v1.pending._1._1)()(v1.visited), "\u03B1s": Nil, pending: v1.pending._2 }
12284
12287
  )));
@@ -18254,7 +18257,7 @@ var union5 = (dictAs) => (dictAs1) => (dictAs2) => (dictAs3) => (v) => (v1) => (
18254
18257
  var unionStr = (dictAs) => (dictAs1) => union5(dictAs)(dictAs)(dictAs1)(dictAs1);
18255
18258
 
18256
18259
  // output-es/EvalGraph/index.js
18257
- var setSet4 = /* @__PURE__ */ setSet(ordVertex);
18260
+ var setSet4 = /* @__PURE__ */ setSet(ordDVertex);
18258
18261
  var disjointUnion2 = /* @__PURE__ */ disjointUnion(mapEnvStringVal);
18259
18262
  var fromFoldable17 = /* @__PURE__ */ (() => foldableSet.foldl((m) => (a) => insert(ordString)(a)()(m))(Leaf2))();
18260
18263
  var show22 = /* @__PURE__ */ (() => showSet(showString).show)();
@@ -18351,29 +18354,31 @@ var match = (dictMonadWithGraphAlloc) => {
18351
18354
  if (v._2.tag === "Constr") {
18352
18355
  const $1 = v._2._1;
18353
18356
  const $2 = v1._1;
18354
- const $3 = v._2._2;
18355
- const $4 = v._1;
18357
+ const $3 = v._2;
18358
+ const $4 = v._2._2;
18359
+ const $5 = v._1;
18356
18360
  return Bind1.bind(withMsg2("Pattern mismatch")(consistentWith2($$$Map("Two", Leaf2, $1, void 0, Leaf2))(mapObjectString.keys($2))))(() => Bind1.bind(orElse(MonadThrow0)("Incomplete patterns: no branch for " + showCtr($1))(_lookup(
18357
18361
  Nothing,
18358
18362
  Just,
18359
18363
  $1,
18360
18364
  $2
18361
- )))((\u03BA) => Bind1.bind(matchMany(dictMonadWithGraphAlloc)($3)(\u03BA))((v2) => $0.pure($Tuple(
18362
- v2._1,
18363
- $Tuple(v2._2._1, insert(ordVertex)($4)()(v2._2._2))
18365
+ )))((\u03BA) => Bind1.bind(matchMany(dictMonadWithGraphAlloc)($4)(\u03BA))((v3) => $0.pure($Tuple(
18366
+ v3._1,
18367
+ $Tuple(v3._2._1, insert(ordDVertex)($Tuple($5, (k) => k(showBaseVal)($3)))()(v3._2._2))
18364
18368
  )))));
18365
18369
  }
18366
18370
  return Bind1.bind(dataTypeForSetCtr.dataTypeFor(MonadThrow0)(mapObjectString.keys(v1._1)))((d) => MonadThrow0.throwError(error("Pattern mismatch: found " + intercalate4("\n")(removeDocWS(prettyVal(highlightableVertex).pretty(v)).lines) + ", expected " + d._1)));
18367
18371
  }
18368
18372
  if (v1.tag === "ElimDict") {
18369
18373
  if (v._2.tag === "Dictionary") {
18370
- const $1 = v1._1;
18371
- const $2 = v._2._1;
18372
- const $3 = v._1;
18373
- const $4 = v1._2;
18374
- return Bind1.bind(check(MonadThrow0)(difference2(ordString)($1)(fromFoldable17(mapObjectString.keys($2))).tag === "Leaf")("Pattern mismatch: found " + show22(mapObjectString.keys($2)) + ", expected " + show22($1)))(() => Bind1.bind(matchMany(dictMonadWithGraphAlloc)(listMap((k) => $$get(showString)(mapObjectString)(k)($2)._2)(toUnfoldable9($1)))($4))((v2) => $0.pure($Tuple(
18375
- v2._1,
18376
- $Tuple(v2._2._1, insert(ordVertex)($3)()(v2._2._2))
18374
+ const $1 = v._2;
18375
+ const $2 = v1._1;
18376
+ const $3 = v._2._1;
18377
+ const $4 = v._1;
18378
+ const $5 = v1._2;
18379
+ return Bind1.bind(check(MonadThrow0)(difference2(ordString)($2)(fromFoldable17(mapObjectString.keys($3))).tag === "Leaf")("Pattern mismatch: found " + show22(mapObjectString.keys($3)) + ", expected " + show22($2)))(() => Bind1.bind(matchMany(dictMonadWithGraphAlloc)(listMap((k) => $$get(showString)(mapObjectString)(k)($3)._2)(toUnfoldable9($2)))($5))((v3) => $0.pure($Tuple(
18380
+ v3._1,
18381
+ $Tuple(v3._2._1, insert(ordDVertex)($Tuple($4, (k) => k(showBaseVal)($1)))()(v3._2._2))
18377
18382
  ))));
18378
18383
  }
18379
18384
  return MonadThrow0.throwError(error("Pattern mismatch: found " + intercalate4("\n")(removeDocWS(prettyVal(highlightableVertex).pretty(v)).lines) + ", expected " + show22(v1._1)));
@@ -18402,7 +18407,7 @@ var closeDefs = (dictMonadWithGraphAlloc) => {
18402
18407
  \u03C3
18403
18408
  )
18404
18409
  );
18405
- return Functor0.map((f) => f(v))(Functor0.map(Val)(dictMonadWithGraphAlloc.new(\u03B1s)(pack3(v))));
18410
+ return Functor0.map((f) => f(v))(Functor0.map(Val)(dictMonadWithGraphAlloc.new(unDVertex(\u03B1s))(pack3(v))));
18406
18411
  })(\u03C1));
18407
18412
  };
18408
18413
  var $$eval = (dictMonadWithGraphAlloc) => {
@@ -18427,19 +18432,19 @@ var $$eval = (dictMonadWithGraphAlloc) => {
18427
18432
  return withMsg2("Variable lookup")(lookup$p(MonadThrow0)(showString)(mapEnvStringVal)(v1._1)(v));
18428
18433
  }
18429
18434
  if (v1.tag === "Int") {
18430
- return Functor0.map((f) => f($BaseVal("Int", v1._2)))(Functor0.map(Val)(dictMonadWithGraphAlloc.new(insert(ordVertex)(v1._1)()(v2))(pack3($BaseVal(
18435
+ return Functor0.map((f) => f($BaseVal("Int", v1._2)))(Functor0.map(Val)(dictMonadWithGraphAlloc.new(insert(ordVertex)(v1._1)()(unDVertex(v2)))(pack3($BaseVal(
18431
18436
  "Int",
18432
18437
  v1._2
18433
18438
  )))));
18434
18439
  }
18435
18440
  if (v1.tag === "Float") {
18436
- return Functor0.map((f) => f($BaseVal("Float", v1._2)))(Functor0.map(Val)(dictMonadWithGraphAlloc.new(insert(ordVertex)(v1._1)()(v2))(pack3($BaseVal(
18441
+ return Functor0.map((f) => f($BaseVal("Float", v1._2)))(Functor0.map(Val)(dictMonadWithGraphAlloc.new(insert(ordVertex)(v1._1)()(unDVertex(v2)))(pack3($BaseVal(
18437
18442
  "Float",
18438
18443
  v1._2
18439
18444
  )))));
18440
18445
  }
18441
18446
  if (v1.tag === "Str") {
18442
- return Functor0.map((f) => f($BaseVal("Str", v1._2)))(Functor0.map(Val)(dictMonadWithGraphAlloc.new(insert(ordVertex)(v1._1)()(v2))(pack3($BaseVal(
18447
+ return Functor0.map((f) => f($BaseVal("Str", v1._2)))(Functor0.map(Val)(dictMonadWithGraphAlloc.new(insert(ordVertex)(v1._1)()(unDVertex(v2)))(pack3($BaseVal(
18443
18448
  "Str",
18444
18449
  v1._2
18445
18450
  )))));
@@ -18452,7 +18457,7 @@ var $$eval = (dictMonadWithGraphAlloc) => {
18452
18457
  })()))(v1._2)))((v3) => {
18453
18458
  const v4 = unzip(listMap((v$1) => $Tuple(v$1._2.tag === "Str" ? v$1._2._1 : typeError(v$1._2)("Str"), v$1._1))(v3._1));
18454
18459
  const v5 = $BaseVal("Dictionary", fromFoldable18(zipWith2(Tuple)(v4._1)(zipWith2(Tuple)(v4._2)(v3._2))));
18455
- return Functor0.map((f) => f(v5))(Functor0.map(Val)(dictMonadWithGraphAlloc.new(insert(ordVertex)($0)()(v2))(pack3(v5))));
18460
+ return Functor0.map((f) => f(v5))(Functor0.map(Val)(dictMonadWithGraphAlloc.new(insert(ordVertex)($0)()(unDVertex(v2)))(pack3(v5))));
18456
18461
  });
18457
18462
  }
18458
18463
  if (v1.tag === "Constr") {
@@ -18482,7 +18487,7 @@ var $$eval = (dictMonadWithGraphAlloc) => {
18482
18487
  })()))(() => Bind1.bind(traverse2((() => {
18483
18488
  const $3 = $$eval(dictMonadWithGraphAlloc)(v);
18484
18489
  return (a) => $3(a)(v2);
18485
- })())($1))((vs) => Functor0.map((f) => f($BaseVal("Constr", $0, vs)))(Functor0.map(Val)(dictMonadWithGraphAlloc.new(insert(ordVertex)($2)()(v2))(pack3($BaseVal(
18490
+ })())($1))((vs) => Functor0.map((f) => f($BaseVal("Constr", $0, vs)))(Functor0.map(Val)(dictMonadWithGraphAlloc.new(insert(ordVertex)($2)()(unDVertex(v2)))(pack3($BaseVal(
18486
18491
  "Constr",
18487
18492
  $0,
18488
18493
  vs
@@ -18514,7 +18519,7 @@ var $$eval = (dictMonadWithGraphAlloc) => {
18514
18519
  return $8;
18515
18520
  })())))($0)(v2)
18516
18521
  ]))
18517
- ])))((vss) => Functor0.map((f) => f($BaseVal("Matrix", $Tuple(vss, $Tuple($Tuple($4, $6), $Tuple($5, $7))))))(Functor0.map(Val)(dictMonadWithGraphAlloc.new(insert(ordVertex)($3)()(v2))(pack3($BaseVal(
18522
+ ])))((vss) => Functor0.map((f) => f($BaseVal("Matrix", $Tuple(vss, $Tuple($Tuple($4, $6), $Tuple($5, $7))))))(Functor0.map(Val)(dictMonadWithGraphAlloc.new(insert(ordVertex)($3)()(unDVertex(v2)))(pack3($BaseVal(
18518
18523
  "Matrix",
18519
18524
  $Tuple(vss, $Tuple($Tuple($4, $6), $Tuple($5, $7)))
18520
18525
  )))))));
@@ -18536,7 +18541,7 @@ var $$eval = (dictMonadWithGraphAlloc) => {
18536
18541
  v1._2
18537
18542
  )
18538
18543
  );
18539
- return Functor0.map((f) => f(v3))(Functor0.map(Val)(dictMonadWithGraphAlloc.new(insert(ordVertex)(v1._1)()(v2))(pack3(v3))));
18544
+ return Functor0.map((f) => f(v3))(Functor0.map(Val)(dictMonadWithGraphAlloc.new(insert(ordVertex)(v1._1)()(unDVertex(v2)))(pack3(v3))));
18540
18545
  }
18541
18546
  if (v1.tag === "Project") {
18542
18547
  const $0 = v1._2;
@@ -18582,8 +18587,8 @@ var $$eval = (dictMonadWithGraphAlloc) => {
18582
18587
  }
18583
18588
  if (v1.tag === "LetRec") {
18584
18589
  const $0 = v1._2;
18585
- const $1 = v1._1._1;
18586
- return Bind1.bind(closeDefs1(v)(v1._1._2)(insert(ordVertex)($1)()(v2)))((\u03B3$p) => $$eval(dictMonadWithGraphAlloc)(unionWith2((v$1) => identity14)(v)(\u03B3$p))($0)(insert(ordVertex)($1)()(v2)));
18590
+ const inserted\u03B1 = insert(ordDVertex)($Tuple(v1._1._1, (k) => k(showString)("Expr")))()(v2);
18591
+ return Bind1.bind(closeDefs1(v)(v1._1._2)(inserted\u03B1))((\u03B3$p) => $$eval(dictMonadWithGraphAlloc)(unionWith2((v$1) => identity14)(v)(\u03B3$p))($0)(inserted\u03B1));
18587
18592
  }
18588
18593
  fail();
18589
18594
  };
@@ -18599,10 +18604,20 @@ var apply2 = (dictMonadWithGraphAlloc) => {
18599
18604
  const $0 = (v2) => MonadThrow0.throwError(error("Found " + intercalate4("\n")(removeDocWS(prettyVal(highlightableVertex).pretty(v2)).lines) + ", expected function"));
18600
18605
  if (v._2.tag === "Fun") {
18601
18606
  if (v._2._1.tag === "Closure") {
18602
- const $1 = v._1;
18603
- const $2 = v._2._1._1;
18604
- const $3 = v._2._1._3;
18605
- return Bind1.bind(closeDefs1($2)(v._2._1._2)($$$Map("Two", Leaf2, $1, void 0, Leaf2)))((\u03B32) => Bind1.bind(match1(v1)($3))((v3) => $$eval(dictMonadWithGraphAlloc)(unionWith2((v$1) => identity14)(unionWith2((v$1) => identity14)($2)(\u03B32))(v3._1))(v3._2._1.tag === "ContExpr" ? v3._2._1._1 : throwException(error("Expression expected"))())(insert(ordVertex)($1)()(v3._2._2))));
18607
+ const $1 = v._2;
18608
+ const $2 = v._1;
18609
+ const $3 = v._2._1._1;
18610
+ const $4 = v._2._1._3;
18611
+ return Bind1.bind(closeDefs1($3)(v._2._1._2)($$$Map(
18612
+ "Two",
18613
+ Leaf2,
18614
+ $Tuple($2, (k) => k(showBaseVal)($1)),
18615
+ void 0,
18616
+ Leaf2
18617
+ )))((\u03B32) => Bind1.bind(match1(v1)($4))((v3) => $$eval(dictMonadWithGraphAlloc)(unionWith2((v$1) => identity14)(unionWith2((v$1) => identity14)($3)(\u03B32))(v3._1))(v3._2._1.tag === "ContExpr" ? v3._2._1._1 : throwException(error("Expression expected"))())(insert(ordDVertex)($Tuple(
18618
+ $2,
18619
+ (k) => k(showBaseVal)($1)
18620
+ ))()(v3._2._2))));
18606
18621
  }
18607
18622
  if (v._2._1.tag === "Foreign") {
18608
18623
  const $1 = v._2._1._1._1;
@@ -18731,7 +18746,10 @@ var eval_module = (dictMonadWithGraphAlloc) => {
18731
18746
  }
18732
18747
  if (v1._1.tag === "Right") {
18733
18748
  const $1 = v1._2;
18734
- return $0.bind(closeDefs1(unionWith2((v$1) => identity14)(\u03B3)(v))(v1._1._1._2)(insert(ordVertex)(v1._1._1._1)()(v2)))((\u03B3$p$p) => go(unionWith2((v$1) => identity14)(v)(\u03B3$p$p))($1)(v2));
18749
+ return $0.bind(closeDefs1(unionWith2((v$1) => identity14)(\u03B3)(v))(v1._1._1._2)(insert(ordDVertex)($Tuple(
18750
+ v1._1._1._1,
18751
+ (k) => k(showString)("Expr")
18752
+ ))()(v2)))((\u03B3$p$p) => go(unionWith2((v$1) => identity14)(v)(\u03B3$p$p))($1)(v2));
18735
18753
  }
18736
18754
  }
18737
18755
  fail();
@@ -27874,6 +27874,9 @@ var verticesVertex = (dictFunctor) => (dictFoldable) => ({
27874
27874
  return (x2) => $0(dictFunctor.map(singleton3)(x2));
27875
27875
  })()
27876
27876
  });
27877
+ var eqDVertex = { eq: (v) => (v1) => v._1 === v1._1 };
27878
+ var ordDVertex = { compare: (v) => (v1) => ordString.compare(v._1)(v1._1), Eq0: () => eqDVertex };
27879
+ var unDVertex = /* @__PURE__ */ map2(ordVertex)((x2) => x2._1);
27877
27880
  var showVertices = (\u03B1s) => "{" + joinWith(", ")(fromFoldable4(map2(ordString)(unsafeCoerce)(\u03B1s))) + "}";
27878
27881
  var showEdgeList = (es) => joinWith("\n")([
27879
27882
  "digraph G {",
@@ -37916,10 +37919,10 @@ var runWithGraphT = (dictMonad) => {
37916
37919
  };
37917
37920
  };
37918
37921
  var runWithGraphT_spy = (dictMonad) => {
37919
- const runWithGraphT1 = runWithGraphT(dictMonad);
37922
+ const runWithGraphT2 = runWithGraphT(dictMonad);
37920
37923
  const spyFunWhenM2 = spyFunWhenM(dictMonad.Bind1().Apply0().Functor0());
37921
37924
  return (dictGraph) => {
37922
- const $0 = runWithGraphT1(dictGraph);
37925
+ const $0 = runWithGraphT2(dictGraph);
37923
37926
  const $1 = spyFunWhenM2(false)("runWithGraphT")(showVertices)((x2) => showEdgeList(toEdgeList(dictGraph)(x2._1)));
37924
37927
  return (x2) => $1($0(x2));
37925
37928
  };
@@ -38000,7 +38003,7 @@ var bwdSlice = (dictGraph) => {
38000
38003
  if (member4(v1.pending._1._1)(v1.visited)) {
38001
38004
  return pure2($Step("Loop", { visited: v1.visited, "\u03B1s": Nil, pending: v1.pending._2 }));
38002
38005
  }
38003
- return bindStateT(monadIdentity).bind(extend3(v1.pending._1._1)($3)(spyWhen(true)("Value found at " + showStringImpl(v1.pending._1._1))((v$1) => v$1((dictShow) => dictShow.show))($2)))(() => pure2($Step(
38006
+ return bindStateT(monadIdentity).bind(extend3(v1.pending._1._1)($3)(spyWhen(false)("Value found at " + showStringImpl(v1.pending._1._1))((v$1) => v$1((dictShow) => dictShow.show))($2)))(() => pure2($Step(
38004
38007
  "Loop",
38005
38008
  { visited: insert3(ordVertex)(v1.pending._1._1)()(v1.visited), "\u03B1s": Nil, pending: v1.pending._2 }
38006
38009
  )));
@@ -38028,7 +38031,7 @@ var bwdSlice = (dictGraph) => {
38028
38031
  };
38029
38032
 
38030
38033
  // output-es/EvalGraph/index.js
38031
- var setSet4 = /* @__PURE__ */ setSet(ordVertex);
38034
+ var setSet4 = /* @__PURE__ */ setSet(ordDVertex);
38032
38035
  var disjointUnion2 = /* @__PURE__ */ disjointUnion(mapEnvStringVal);
38033
38036
  var fromFoldable20 = /* @__PURE__ */ (() => foldableSet.foldl((m) => (a) => insert3(ordString)(a)()(m))(Leaf2))();
38034
38037
  var show22 = /* @__PURE__ */ (() => showSet(showString).show)();
@@ -38125,29 +38128,31 @@ var match = (dictMonadWithGraphAlloc) => {
38125
38128
  if (v._2.tag === "Constr") {
38126
38129
  const $1 = v._2._1;
38127
38130
  const $2 = v1._1;
38128
- const $3 = v._2._2;
38129
- const $4 = v._1;
38131
+ const $3 = v._2;
38132
+ const $4 = v._2._2;
38133
+ const $5 = v._1;
38130
38134
  return Bind1.bind(withMsg2("Pattern mismatch")(consistentWith2($$$Map("Two", Leaf2, $1, void 0, Leaf2))(mapObjectString.keys($2))))(() => Bind1.bind(orElse(MonadThrow0)("Incomplete patterns: no branch for " + showCtr($1))(_lookup(
38131
38135
  Nothing,
38132
38136
  Just,
38133
38137
  $1,
38134
38138
  $2
38135
- )))((\u03BA) => Bind1.bind(matchMany(dictMonadWithGraphAlloc)($3)(\u03BA))((v2) => $0.pure($Tuple(
38136
- v2._1,
38137
- $Tuple(v2._2._1, insert3(ordVertex)($4)()(v2._2._2))
38139
+ )))((\u03BA) => Bind1.bind(matchMany(dictMonadWithGraphAlloc)($4)(\u03BA))((v3) => $0.pure($Tuple(
38140
+ v3._1,
38141
+ $Tuple(v3._2._1, insert3(ordDVertex)($Tuple($5, (k) => k(showBaseVal)($3)))()(v3._2._2))
38138
38142
  )))));
38139
38143
  }
38140
38144
  return Bind1.bind(dataTypeForSetCtr.dataTypeFor(MonadThrow0)(mapObjectString.keys(v1._1)))((d) => MonadThrow0.throwError(error("Pattern mismatch: found " + intercalate4("\n")(removeDocWS(prettyVal(highlightableVertex).pretty(v)).lines) + ", expected " + d._1)));
38141
38145
  }
38142
38146
  if (v1.tag === "ElimDict") {
38143
38147
  if (v._2.tag === "Dictionary") {
38144
- const $1 = v1._1;
38145
- const $2 = v._2._1;
38146
- const $3 = v._1;
38147
- const $4 = v1._2;
38148
- return Bind1.bind(check(MonadThrow0)(difference2(ordString)($1)(fromFoldable20(mapObjectString.keys($2))).tag === "Leaf")("Pattern mismatch: found " + show22(mapObjectString.keys($2)) + ", expected " + show22($1)))(() => Bind1.bind(matchMany(dictMonadWithGraphAlloc)(listMap((k) => $$get2(showString)(mapObjectString)(k)($2)._2)(toUnfoldable10($1)))($4))((v2) => $0.pure($Tuple(
38149
- v2._1,
38150
- $Tuple(v2._2._1, insert3(ordVertex)($3)()(v2._2._2))
38148
+ const $1 = v._2;
38149
+ const $2 = v1._1;
38150
+ const $3 = v._2._1;
38151
+ const $4 = v._1;
38152
+ const $5 = v1._2;
38153
+ return Bind1.bind(check(MonadThrow0)(difference2(ordString)($2)(fromFoldable20(mapObjectString.keys($3))).tag === "Leaf")("Pattern mismatch: found " + show22(mapObjectString.keys($3)) + ", expected " + show22($2)))(() => Bind1.bind(matchMany(dictMonadWithGraphAlloc)(listMap((k) => $$get2(showString)(mapObjectString)(k)($3)._2)(toUnfoldable10($2)))($5))((v3) => $0.pure($Tuple(
38154
+ v3._1,
38155
+ $Tuple(v3._2._1, insert3(ordDVertex)($Tuple($4, (k) => k(showBaseVal)($1)))()(v3._2._2))
38151
38156
  ))));
38152
38157
  }
38153
38158
  return MonadThrow0.throwError(error("Pattern mismatch: found " + intercalate4("\n")(removeDocWS(prettyVal(highlightableVertex).pretty(v)).lines) + ", expected " + show22(v1._1)));
@@ -38200,7 +38205,7 @@ var closeDefs = (dictMonadWithGraphAlloc) => {
38200
38205
  \u03C3
38201
38206
  )
38202
38207
  );
38203
- return Functor0.map((f) => f(v))(Functor0.map(Val)(dictMonadWithGraphAlloc.new(\u03B1s)(pack8(v))));
38208
+ return Functor0.map((f) => f(v))(Functor0.map(Val)(dictMonadWithGraphAlloc.new(unDVertex(\u03B1s))(pack8(v))));
38204
38209
  })(\u03C1));
38205
38210
  };
38206
38211
  var $$eval = (dictMonadWithGraphAlloc) => {
@@ -38225,19 +38230,19 @@ var $$eval = (dictMonadWithGraphAlloc) => {
38225
38230
  return withMsg2("Variable lookup")(lookup$p(MonadThrow0)(showString)(mapEnvStringVal)(v1._1)(v));
38226
38231
  }
38227
38232
  if (v1.tag === "Int") {
38228
- return Functor0.map((f) => f($BaseVal("Int", v1._2)))(Functor0.map(Val)(dictMonadWithGraphAlloc.new(insert3(ordVertex)(v1._1)()(v2))(pack8($BaseVal(
38233
+ return Functor0.map((f) => f($BaseVal("Int", v1._2)))(Functor0.map(Val)(dictMonadWithGraphAlloc.new(insert3(ordVertex)(v1._1)()(unDVertex(v2)))(pack8($BaseVal(
38229
38234
  "Int",
38230
38235
  v1._2
38231
38236
  )))));
38232
38237
  }
38233
38238
  if (v1.tag === "Float") {
38234
- return Functor0.map((f) => f($BaseVal("Float", v1._2)))(Functor0.map(Val)(dictMonadWithGraphAlloc.new(insert3(ordVertex)(v1._1)()(v2))(pack8($BaseVal(
38239
+ return Functor0.map((f) => f($BaseVal("Float", v1._2)))(Functor0.map(Val)(dictMonadWithGraphAlloc.new(insert3(ordVertex)(v1._1)()(unDVertex(v2)))(pack8($BaseVal(
38235
38240
  "Float",
38236
38241
  v1._2
38237
38242
  )))));
38238
38243
  }
38239
38244
  if (v1.tag === "Str") {
38240
- return Functor0.map((f) => f($BaseVal("Str", v1._2)))(Functor0.map(Val)(dictMonadWithGraphAlloc.new(insert3(ordVertex)(v1._1)()(v2))(pack8($BaseVal(
38245
+ return Functor0.map((f) => f($BaseVal("Str", v1._2)))(Functor0.map(Val)(dictMonadWithGraphAlloc.new(insert3(ordVertex)(v1._1)()(unDVertex(v2)))(pack8($BaseVal(
38241
38246
  "Str",
38242
38247
  v1._2
38243
38248
  )))));
@@ -38250,7 +38255,7 @@ var $$eval = (dictMonadWithGraphAlloc) => {
38250
38255
  })()))(v1._2)))((v3) => {
38251
38256
  const v4 = unzip(listMap((v$1) => $Tuple(v$1._2.tag === "Str" ? v$1._2._1 : typeError(v$1._2)("Str"), v$1._1))(v3._1));
38252
38257
  const v5 = $BaseVal("Dictionary", fromFoldable110(zipWith2(Tuple)(v4._1)(zipWith2(Tuple)(v4._2)(v3._2))));
38253
- return Functor0.map((f) => f(v5))(Functor0.map(Val)(dictMonadWithGraphAlloc.new(insert3(ordVertex)($0)()(v2))(pack8(v5))));
38258
+ return Functor0.map((f) => f(v5))(Functor0.map(Val)(dictMonadWithGraphAlloc.new(insert3(ordVertex)($0)()(unDVertex(v2)))(pack8(v5))));
38254
38259
  });
38255
38260
  }
38256
38261
  if (v1.tag === "Constr") {
@@ -38280,7 +38285,7 @@ var $$eval = (dictMonadWithGraphAlloc) => {
38280
38285
  })()))(() => Bind1.bind(traverse2((() => {
38281
38286
  const $3 = $$eval(dictMonadWithGraphAlloc)(v);
38282
38287
  return (a) => $3(a)(v2);
38283
- })())($1))((vs) => Functor0.map((f) => f($BaseVal("Constr", $0, vs)))(Functor0.map(Val)(dictMonadWithGraphAlloc.new(insert3(ordVertex)($2)()(v2))(pack8($BaseVal(
38288
+ })())($1))((vs) => Functor0.map((f) => f($BaseVal("Constr", $0, vs)))(Functor0.map(Val)(dictMonadWithGraphAlloc.new(insert3(ordVertex)($2)()(unDVertex(v2)))(pack8($BaseVal(
38284
38289
  "Constr",
38285
38290
  $0,
38286
38291
  vs
@@ -38312,7 +38317,7 @@ var $$eval = (dictMonadWithGraphAlloc) => {
38312
38317
  return $8;
38313
38318
  })())))($0)(v2)
38314
38319
  ]))
38315
- ])))((vss) => Functor0.map((f) => f($BaseVal("Matrix", $Tuple(vss, $Tuple($Tuple($4, $6), $Tuple($5, $7))))))(Functor0.map(Val)(dictMonadWithGraphAlloc.new(insert3(ordVertex)($3)()(v2))(pack8($BaseVal(
38320
+ ])))((vss) => Functor0.map((f) => f($BaseVal("Matrix", $Tuple(vss, $Tuple($Tuple($4, $6), $Tuple($5, $7))))))(Functor0.map(Val)(dictMonadWithGraphAlloc.new(insert3(ordVertex)($3)()(unDVertex(v2)))(pack8($BaseVal(
38316
38321
  "Matrix",
38317
38322
  $Tuple(vss, $Tuple($Tuple($4, $6), $Tuple($5, $7)))
38318
38323
  )))))));
@@ -38334,7 +38339,7 @@ var $$eval = (dictMonadWithGraphAlloc) => {
38334
38339
  v1._2
38335
38340
  )
38336
38341
  );
38337
- return Functor0.map((f) => f(v3))(Functor0.map(Val)(dictMonadWithGraphAlloc.new(insert3(ordVertex)(v1._1)()(v2))(pack8(v3))));
38342
+ return Functor0.map((f) => f(v3))(Functor0.map(Val)(dictMonadWithGraphAlloc.new(insert3(ordVertex)(v1._1)()(unDVertex(v2)))(pack8(v3))));
38338
38343
  }
38339
38344
  if (v1.tag === "Project") {
38340
38345
  const $0 = v1._2;
@@ -38380,8 +38385,8 @@ var $$eval = (dictMonadWithGraphAlloc) => {
38380
38385
  }
38381
38386
  if (v1.tag === "LetRec") {
38382
38387
  const $0 = v1._2;
38383
- const $1 = v1._1._1;
38384
- return Bind1.bind(closeDefs1(v)(v1._1._2)(insert3(ordVertex)($1)()(v2)))((\u03B3$p) => $$eval(dictMonadWithGraphAlloc)(unionWith((v$1) => identity18)(v)(\u03B3$p))($0)(insert3(ordVertex)($1)()(v2)));
38388
+ const inserted\u03B1 = insert3(ordDVertex)($Tuple(v1._1._1, (k) => k(showString)("Expr")))()(v2);
38389
+ return Bind1.bind(closeDefs1(v)(v1._1._2)(inserted\u03B1))((\u03B3$p) => $$eval(dictMonadWithGraphAlloc)(unionWith((v$1) => identity18)(v)(\u03B3$p))($0)(inserted\u03B1));
38385
38390
  }
38386
38391
  fail();
38387
38392
  };
@@ -38397,10 +38402,20 @@ var apply2 = (dictMonadWithGraphAlloc) => {
38397
38402
  const $0 = (v2) => MonadThrow0.throwError(error("Found " + intercalate4("\n")(removeDocWS(prettyVal(highlightableVertex).pretty(v2)).lines) + ", expected function"));
38398
38403
  if (v._2.tag === "Fun") {
38399
38404
  if (v._2._1.tag === "Closure") {
38400
- const $1 = v._1;
38401
- const $2 = v._2._1._1;
38402
- const $3 = v._2._1._3;
38403
- return Bind1.bind(closeDefs1($2)(v._2._1._2)($$$Map("Two", Leaf2, $1, void 0, Leaf2)))((\u03B32) => Bind1.bind(match1(v1)($3))((v3) => $$eval(dictMonadWithGraphAlloc)(unionWith((v$1) => identity18)(unionWith((v$1) => identity18)($2)(\u03B32))(v3._1))(v3._2._1.tag === "ContExpr" ? v3._2._1._1 : throwException(error("Expression expected"))())(insert3(ordVertex)($1)()(v3._2._2))));
38405
+ const $1 = v._2;
38406
+ const $2 = v._1;
38407
+ const $3 = v._2._1._1;
38408
+ const $4 = v._2._1._3;
38409
+ return Bind1.bind(closeDefs1($3)(v._2._1._2)($$$Map(
38410
+ "Two",
38411
+ Leaf2,
38412
+ $Tuple($2, (k) => k(showBaseVal)($1)),
38413
+ void 0,
38414
+ Leaf2
38415
+ )))((\u03B32) => Bind1.bind(match1(v1)($4))((v3) => $$eval(dictMonadWithGraphAlloc)(unionWith((v$1) => identity18)(unionWith((v$1) => identity18)($3)(\u03B32))(v3._1))(v3._2._1.tag === "ContExpr" ? v3._2._1._1 : throwException(error("Expression expected"))())(insert3(ordDVertex)($Tuple(
38416
+ $2,
38417
+ (k) => k(showBaseVal)($1)
38418
+ ))()(v3._2._2))));
38404
38419
  }
38405
38420
  if (v._2._1.tag === "Foreign") {
38406
38421
  const $1 = v._2._1._1._1;
@@ -38529,7 +38544,10 @@ var eval_module = (dictMonadWithGraphAlloc) => {
38529
38544
  }
38530
38545
  if (v1._1.tag === "Right") {
38531
38546
  const $1 = v1._2;
38532
- return $0.bind(closeDefs1(unionWith((v$1) => identity18)(\u03B3)(v))(v1._1._1._2)(insert3(ordVertex)(v1._1._1._1)()(v2)))((\u03B3$p$p) => go(unionWith((v$1) => identity18)(v)(\u03B3$p$p))($1)(v2));
38547
+ return $0.bind(closeDefs1(unionWith((v$1) => identity18)(\u03B3)(v))(v1._1._1._2)(insert3(ordDVertex)($Tuple(
38548
+ v1._1._1._1,
38549
+ (k) => k(showString)("Expr")
38550
+ ))()(v2)))((\u03B3$p$p) => go(unionWith((v$1) => identity18)(v)(\u03B3$p$p))($1)(v2));
38533
38551
  }
38534
38552
  }
38535
38553
  fail();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@explorable-viz/fluid",
3
- "version": "0.7.76",
3
+ "version": "0.7.77",
4
4
  "description": "Fluid is an experimental programming language which integrates a bidirectional dynamic analysis to connect outputs to data sources in a fine-grained way. Fluid is implemented in PureScript and runs in the browser.",
5
5
  "main": "index.js",
6
6
  "repository": {
@@ -1,29 +0,0 @@
1
- {
2
- "parserOptions": {
3
- "ecmaVersion": 6,
4
- "sourceType": "module"
5
- },
6
- "extends": "eslint:recommended",
7
- "env": {
8
- "node": true
9
- },
10
- "rules": {
11
- "strict": [2, "global"],
12
- "block-scoped-var": 2,
13
- "consistent-return": 2,
14
- "eqeqeq": [2, "smart"],
15
- "guard-for-in": 2,
16
- "no-caller": 2,
17
- "no-extend-native": 2,
18
- "no-loop-func": 2,
19
- "no-new": 2,
20
- "no-param-reassign": 2,
21
- "no-return-assign": 2,
22
- "no-unused-expressions": 2,
23
- "no-use-before-define": 2,
24
- "radix": [2, "always"],
25
- "indent": [2, 2],
26
- "quotes": [2, "double"],
27
- "semi": [2, "always"]
28
- }
29
- }
@@ -1,8 +0,0 @@
1
- /.*
2
- !/.gitignore
3
- !/.eslintrc.json
4
- !/.github/
5
- /bower_components/
6
- /node_modules/
7
- /output/
8
- package-lock.json
@@ -1,29 +0,0 @@
1
- {
2
- "parserOptions": {
3
- "ecmaVersion": 6,
4
- "sourceType": "module"
5
- },
6
- "extends": "eslint:recommended",
7
- "env": {
8
- "node": true
9
- },
10
- "rules": {
11
- "strict": [2, "global"],
12
- "block-scoped-var": 2,
13
- "consistent-return": 2,
14
- "eqeqeq": [2, "smart"],
15
- "guard-for-in": 2,
16
- "no-caller": 2,
17
- "no-extend-native": 2,
18
- "no-loop-func": 2,
19
- "no-new": 2,
20
- "no-param-reassign": 2,
21
- "no-return-assign": 2,
22
- "no-unused-expressions": 2,
23
- "no-use-before-define": 2,
24
- "radix": [2, "always"],
25
- "indent": [2, 2],
26
- "quotes": [2, "double"],
27
- "semi": [2, "always"]
28
- }
29
- }
@@ -1,8 +0,0 @@
1
- /.*
2
- !/.gitignore
3
- !/.eslintrc.json
4
- !/.github/
5
- /bower_components/
6
- /node_modules/
7
- /output/
8
- package-lock.json
@@ -1,29 +0,0 @@
1
- {
2
- "parserOptions": {
3
- "ecmaVersion": 6,
4
- "sourceType": "module"
5
- },
6
- "extends": "eslint:recommended",
7
- "env": {
8
- "node": true
9
- },
10
- "rules": {
11
- "strict": [2, "global"],
12
- "block-scoped-var": 2,
13
- "consistent-return": 2,
14
- "eqeqeq": [2, "smart"],
15
- "guard-for-in": 2,
16
- "no-caller": 2,
17
- "no-extend-native": 2,
18
- "no-loop-func": 2,
19
- "no-new": 2,
20
- "no-param-reassign": 2,
21
- "no-return-assign": 2,
22
- "no-unused-expressions": 2,
23
- "no-use-before-define": 2,
24
- "radix": [2, "always"],
25
- "indent": [2, 2],
26
- "quotes": [2, "double"],
27
- "semi": [2, "always"]
28
- }
29
- }
@@ -1,8 +0,0 @@
1
- /.*
2
- !/.gitignore
3
- !/.eslintrc.json
4
- !/.github/
5
- /bower_components/
6
- /node_modules/
7
- /output/
8
- package-lock.json
@@ -1,8 +0,0 @@
1
- /.*
2
- !/.github
3
- !/.gitignore
4
- !/.npmrc
5
- !/.travis.yml
6
- /bower_components/
7
- /node_modules/
8
- /output/
@@ -1 +0,0 @@
1
- package-lock=false