@mattpolzin/harmony 0.7.0 → 0.7.1
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.
- harmony-npm/harmony +363 -329
- harmony-npm/package.json +1 -1
harmony-npm/harmony
CHANGED
|
@@ -687,30 +687,30 @@ function x24tcOpt_1($0) {
|
|
|
687
687
|
case 0: return {h: 0, a1: $0.a5};
|
|
688
688
|
default: {
|
|
689
689
|
const $18 = {a1: $0.a5.a1.a1, a2: $0.a5.a1.a2, a3: $0.a5.a1.a3};
|
|
690
|
-
const $1c = Data_List_DeleteBy_deleteByx27($1f => $20 => Prelude_Basics_on($23 => $24 => $0.a1.a1.a1($23)($24),
|
|
690
|
+
const $1c = Data_List_DeleteBy_deleteByx27($1f => $20 => Prelude_Basics_on($23 => $24 => $0.a1.a1.a1($23)($24), csegen_471(), $1f, $20), $18, $0.a6);
|
|
691
691
|
switch($1c.a1.h) {
|
|
692
692
|
case 0: {
|
|
693
693
|
switch($0.a8) {
|
|
694
|
-
case 0: return {h: 0, a1: {a1: {a1: $0.a5.a1.a1, a2: $0.a5.a1.a2, a3: $0.a5.a1.a3}, a2:
|
|
694
|
+
case 0: return {h: 0, a1: {a1: {a1: $0.a5.a1.a1, a2: $0.a5.a1.a2, a3: $0.a5.a1.a3}, a2: Reviewer_n__4753_1596_zipReviews($0.a1, $0.a2, $0.a3, $0.a4, $0.a5.a2, $1c.a2, $0.a7, $0.a8)}};
|
|
695
695
|
case 1: return {h: 1, a1: $0.a1, a2: $0.a2, a3: $0.a3, a4: $0.a4, a5: $0.a5.a2, a6: $1c.a2, a7: $0.a7, a8: $0.a8};
|
|
696
696
|
}
|
|
697
697
|
}
|
|
698
|
-
case undefined: return {h: 0, a1: {a1: {a1: $0.a5.a1.a1, a2: $0.a5.a1.a2, a3:
|
|
698
|
+
case undefined: return {h: 0, a1: {a1: {a1: $0.a5.a1.a1, a2: $0.a5.a1.a2, a3: Reviewer_n__4780_1748_calc($0.a1, $0.a2, $0.a3, $0.a4, $0.a5.a1.a1, $0.a5.a1.a3, $0.a5.a1.a2, $18, $0.a5.a2, $0.a8, $0.a7, $0.a6, $0.a5.a1.a3, $1c.a1.a1.a3)}, a2: Reviewer_n__4753_1596_zipReviews($0.a1, $0.a2, $0.a3, $0.a4, $0.a5.a2, $1c.a2, $0.a7, $0.a8)}};
|
|
699
699
|
}
|
|
700
700
|
}
|
|
701
701
|
}
|
|
702
702
|
}
|
|
703
703
|
default: {
|
|
704
704
|
const $6b = {a1: $0.a5.a1.a1, a2: $0.a5.a1.a2, a3: $0.a5.a1.a3};
|
|
705
|
-
const $6f = Data_List_DeleteBy_deleteByx27($72 => $73 => Prelude_Basics_on($76 => $77 => $0.a1.a1.a1($76)($77),
|
|
705
|
+
const $6f = Data_List_DeleteBy_deleteByx27($72 => $73 => Prelude_Basics_on($76 => $77 => $0.a1.a1.a1($76)($77), csegen_471(), $72, $73), $6b, $0.a6);
|
|
706
706
|
switch($6f.a1.h) {
|
|
707
707
|
case 0: {
|
|
708
708
|
switch($0.a8) {
|
|
709
|
-
case 0: return {h: 0, a1: {a1: {a1: $0.a5.a1.a1, a2: $0.a5.a1.a2, a3: $0.a5.a1.a3}, a2:
|
|
709
|
+
case 0: return {h: 0, a1: {a1: {a1: $0.a5.a1.a1, a2: $0.a5.a1.a2, a3: $0.a5.a1.a3}, a2: Reviewer_n__4753_1596_zipReviews($0.a1, $0.a2, $0.a3, $0.a4, $0.a5.a2, $6f.a2, $0.a7, $0.a8)}};
|
|
710
710
|
case 1: return {h: 1, a1: $0.a1, a2: $0.a2, a3: $0.a3, a4: $0.a4, a5: $0.a5.a2, a6: $6f.a2, a7: $0.a7, a8: $0.a8};
|
|
711
711
|
}
|
|
712
712
|
}
|
|
713
|
-
case undefined: return {h: 0, a1: {a1: {a1: $0.a5.a1.a1, a2: $0.a5.a1.a2, a3:
|
|
713
|
+
case undefined: return {h: 0, a1: {a1: {a1: $0.a5.a1.a1, a2: $0.a5.a1.a2, a3: Reviewer_n__4780_1748_calc($0.a1, $0.a2, $0.a3, $0.a4, $0.a5.a1.a1, $0.a5.a1.a3, $0.a5.a1.a2, $6b, $0.a5.a2, $0.a8, $0.a7, $0.a6, $0.a5.a1.a3, $6f.a1.a1.a3)}, a2: Reviewer_n__4753_1596_zipReviews($0.a1, $0.a2, $0.a3, $0.a4, $0.a5.a2, $6f.a2, $0.a7, $0.a8)}};
|
|
714
714
|
}
|
|
715
715
|
}
|
|
716
716
|
}
|
|
@@ -727,30 +727,30 @@ function x24tcOpt_1($0) {
|
|
|
727
727
|
case 0: return {h: 0, a1: $0.a5};
|
|
728
728
|
default: {
|
|
729
729
|
const $c2 = {a1: $0.a5.a1.a1, a2: $0.a5.a1.a2, a3: $0.a5.a1.a3};
|
|
730
|
-
const $c6 = Data_List_DeleteBy_deleteByx27($c9 => $ca => Prelude_Basics_on($cd => $ce => $0.a1.a1.a1($cd)($ce),
|
|
730
|
+
const $c6 = Data_List_DeleteBy_deleteByx27($c9 => $ca => Prelude_Basics_on($cd => $ce => $0.a1.a1.a1($cd)($ce), csegen_471(), $c9, $ca), $c2, $0.a6);
|
|
731
731
|
switch($c6.a1.h) {
|
|
732
732
|
case 0: {
|
|
733
733
|
switch($0.a8) {
|
|
734
|
-
case 0: return {h: 0, a1: {a1: {a1: $0.a5.a1.a1, a2: $0.a5.a1.a2, a3: $0.a5.a1.a3}, a2:
|
|
734
|
+
case 0: return {h: 0, a1: {a1: {a1: $0.a5.a1.a1, a2: $0.a5.a1.a2, a3: $0.a5.a1.a3}, a2: Reviewer_n__4753_1596_zipReviews($0.a1, $0.a2, $0.a3, $0.a4, $0.a5.a2, $c6.a2, $0.a7, $0.a8)}};
|
|
735
735
|
case 1: return {h: 1, a1: $0.a1, a2: $0.a2, a3: $0.a3, a4: $0.a4, a5: $0.a5.a2, a6: $c6.a2, a7: $0.a7, a8: $0.a8};
|
|
736
736
|
}
|
|
737
737
|
}
|
|
738
|
-
case undefined: return {h: 0, a1: {a1: {a1: $0.a5.a1.a1, a2: $0.a5.a1.a2, a3:
|
|
738
|
+
case undefined: return {h: 0, a1: {a1: {a1: $0.a5.a1.a1, a2: $0.a5.a1.a2, a3: Reviewer_n__4780_1748_calc($0.a1, $0.a2, $0.a3, $0.a4, $0.a5.a1.a1, $0.a5.a1.a3, $0.a5.a1.a2, $c2, $0.a5.a2, $0.a8, $0.a7, $0.a6, $0.a5.a1.a3, $c6.a1.a1.a3)}, a2: Reviewer_n__4753_1596_zipReviews($0.a1, $0.a2, $0.a3, $0.a4, $0.a5.a2, $c6.a2, $0.a7, $0.a8)}};
|
|
739
739
|
}
|
|
740
740
|
}
|
|
741
741
|
}
|
|
742
742
|
}
|
|
743
743
|
default: {
|
|
744
744
|
const $115 = {a1: $0.a5.a1.a1, a2: $0.a5.a1.a2, a3: $0.a5.a1.a3};
|
|
745
|
-
const $119 = Data_List_DeleteBy_deleteByx27($11c => $11d => Prelude_Basics_on($120 => $121 => $0.a1.a1.a1($120)($121),
|
|
745
|
+
const $119 = Data_List_DeleteBy_deleteByx27($11c => $11d => Prelude_Basics_on($120 => $121 => $0.a1.a1.a1($120)($121), csegen_471(), $11c, $11d), $115, $0.a6);
|
|
746
746
|
switch($119.a1.h) {
|
|
747
747
|
case 0: {
|
|
748
748
|
switch($0.a8) {
|
|
749
|
-
case 0: return {h: 0, a1: {a1: {a1: $0.a5.a1.a1, a2: $0.a5.a1.a2, a3: $0.a5.a1.a3}, a2:
|
|
749
|
+
case 0: return {h: 0, a1: {a1: {a1: $0.a5.a1.a1, a2: $0.a5.a1.a2, a3: $0.a5.a1.a3}, a2: Reviewer_n__4753_1596_zipReviews($0.a1, $0.a2, $0.a3, $0.a4, $0.a5.a2, $119.a2, $0.a7, $0.a8)}};
|
|
750
750
|
case 1: return {h: 1, a1: $0.a1, a2: $0.a2, a3: $0.a3, a4: $0.a4, a5: $0.a5.a2, a6: $119.a2, a7: $0.a7, a8: $0.a8};
|
|
751
751
|
}
|
|
752
752
|
}
|
|
753
|
-
case undefined: return {h: 0, a1: {a1: {a1: $0.a5.a1.a1, a2: $0.a5.a1.a2, a3:
|
|
753
|
+
case undefined: return {h: 0, a1: {a1: {a1: $0.a5.a1.a1, a2: $0.a5.a1.a2, a3: Reviewer_n__4780_1748_calc($0.a1, $0.a2, $0.a3, $0.a4, $0.a5.a1.a1, $0.a5.a1.a3, $0.a5.a1.a2, $115, $0.a5.a2, $0.a8, $0.a7, $0.a6, $0.a5.a1.a3, $119.a1.a1.a3)}, a2: Reviewer_n__4753_1596_zipReviews($0.a1, $0.a2, $0.a3, $0.a4, $0.a5.a2, $119.a2, $0.a7, $0.a8)}};
|
|
754
754
|
}
|
|
755
755
|
}
|
|
756
756
|
}
|
|
@@ -758,7 +758,7 @@ function x24tcOpt_1($0) {
|
|
|
758
758
|
}
|
|
759
759
|
}
|
|
760
760
|
|
|
761
|
-
function
|
|
761
|
+
function Reviewer_n__4753_1596_zipReviews($0, $1, $2, $3, $4, $5, $6, $7) {
|
|
762
762
|
return __tailRec(x24tcOpt_1, {h: 1, a1: $0, a2: $1, a3: $2, a4: $3, a5: $4, a6: $5, a7: $6, a8: $7});
|
|
763
763
|
}
|
|
764
764
|
|
|
@@ -1552,143 +1552,139 @@ const csegen_141 = __lazy(function () {
|
|
|
1552
1552
|
return $0 => $1 => Data_Date_compare_Ord_Date($0, $1);
|
|
1553
1553
|
});
|
|
1554
1554
|
|
|
1555
|
-
const csegen_156 = __lazy(function () {
|
|
1556
|
-
return $0 => $0.a2;
|
|
1557
|
-
});
|
|
1558
|
-
|
|
1559
1555
|
const csegen_159 = __lazy(function () {
|
|
1560
|
-
return $0 => $0.a1;
|
|
1561
|
-
});
|
|
1562
|
-
|
|
1563
|
-
const csegen_161 = __lazy(function () {
|
|
1564
|
-
return Prelude_IO_putStrLn(csegen_21(), '');
|
|
1565
|
-
});
|
|
1566
|
-
|
|
1567
|
-
const csegen_167 = __lazy(function () {
|
|
1568
|
-
return $0 => $1 => Prelude_Types_max_Ord_Nat($0, $1);
|
|
1569
|
-
});
|
|
1570
|
-
|
|
1571
|
-
const csegen_169 = __lazy(function () {
|
|
1572
|
-
return date => Text_PrettyPrint_Prettyprinter_Doc_indent(2, Text_PrettyPrint_Prettyprinter_Doc_hsep({a1: Text_PrettyPrint_Prettyprinter_Doc_pretty_Pretty_String('earliest:'), a2: {a1: Text_PrettyPrint_Prettyprinter_Doc_pretty_Pretty_String(Data_Date_show_Show_Date(date)), a2: {h: 0}}}));
|
|
1573
|
-
});
|
|
1574
|
-
|
|
1575
|
-
const csegen_193 = __lazy(function () {
|
|
1576
1556
|
return {a1: {a1: b => a => func => $2 => Control_Monad_ST_map_Functor_x28STx20x24sx29(func, $2), a2: a => $7 => $8 => $7, a3: b => a => $a => $b => $c => Control_Monad_ST_x3cx2ax3e_Applicative_x28STx20x24sx29($a, $b, $c)}, a2: b => a => $12 => $13 => $14 => Control_Monad_ST_x3ex3ex3d_Monad_x28STx20x24sx29($12, $13, $14), a3: a => $1a => $1b => Control_Monad_ST_join_Monad_x28STx20x24sx29($1a, $1b)};
|
|
1577
1557
|
});
|
|
1578
1558
|
|
|
1579
|
-
const
|
|
1559
|
+
const csegen_172 = __lazy(function () {
|
|
1580
1560
|
return $0 => $1 => Text_PrettyPrint_Prettyprinter_Doc_x3cx2bx3e_Semigroup_x28Docx20x24annx29($0, $1);
|
|
1581
1561
|
});
|
|
1582
1562
|
|
|
1583
|
-
const
|
|
1563
|
+
const csegen_176 = __lazy(function () {
|
|
1584
1564
|
return {a1: $1 => $2 => Prelude_EqOrd_x3dx3d_Eq_Char($1, $2), a2: $7 => $8 => Prelude_EqOrd_x2fx3d_Eq_Char($7, $8)};
|
|
1585
1565
|
});
|
|
1586
1566
|
|
|
1587
|
-
const
|
|
1567
|
+
const csegen_192 = __lazy(function () {
|
|
1588
1568
|
return $0 => $1 => ({a1: $0, a2: $1});
|
|
1589
1569
|
});
|
|
1590
1570
|
|
|
1591
|
-
const
|
|
1571
|
+
const csegen_193 = __lazy(function () {
|
|
1592
1572
|
return $0 => $1 => $2 => $0($1($2));
|
|
1593
1573
|
});
|
|
1594
1574
|
|
|
1595
|
-
const
|
|
1575
|
+
const csegen_244 = __lazy(function () {
|
|
1596
1576
|
return b => a => $0 => $1 => Prelude_Types_x3ex3ex3d_Monad_x28Eitherx20x24ex29($0, $1);
|
|
1597
1577
|
});
|
|
1598
1578
|
|
|
1599
|
-
const
|
|
1579
|
+
const csegen_245 = __lazy(function () {
|
|
1600
1580
|
return a => $0 => Prelude_Types_join_Monad_x28Eitherx20x24ex29($0);
|
|
1601
1581
|
});
|
|
1602
1582
|
|
|
1603
|
-
const
|
|
1583
|
+
const csegen_246 = __lazy(function () {
|
|
1604
1584
|
return $0 => Data_Either_maybeToEither(() => 'Failed to parse JSON', Language_JSON_parse($0));
|
|
1605
1585
|
});
|
|
1606
1586
|
|
|
1607
|
-
const
|
|
1587
|
+
const csegen_249 = __lazy(function () {
|
|
1608
1588
|
return b => a => func => $0 => Text_Bounded_map_Functor_WithBounds(func, $0);
|
|
1609
1589
|
});
|
|
1610
1590
|
|
|
1611
|
-
const
|
|
1591
|
+
const csegen_260 = __lazy(function () {
|
|
1612
1592
|
return {a1: {a1: $2 => $3 => Prelude_EqOrd_x3dx3d_Eq_Int($2, $3), a2: $8 => $9 => Prelude_EqOrd_x2fx3d_Eq_Int($8, $9)}, a2: $e => $f => Prelude_EqOrd_compare_Ord_Int($e, $f), a3: $14 => $15 => Prelude_EqOrd_x3c_Ord_Int($14, $15), a4: $1a => $1b => Prelude_EqOrd_x3e_Ord_Int($1a, $1b), a5: $20 => $21 => Prelude_EqOrd_x3cx3d_Ord_Int($20, $21), a6: $26 => $27 => Prelude_EqOrd_x3ex3d_Ord_Int($26, $27), a7: $2c => $2d => Prelude_EqOrd_max_Ord_Int($2c, $2d), a8: $32 => $33 => Prelude_EqOrd_min_Ord_Int($32, $33)};
|
|
1613
1593
|
});
|
|
1614
1594
|
|
|
1615
|
-
const
|
|
1595
|
+
const csegen_268 = __lazy(function () {
|
|
1616
1596
|
return {a1: $1 => Language_JSON_Tokens_TokType_TokenKind_JSONTokenKind($1), a2: kind => $5 => Language_JSON_Tokens_tokValue_TokenKind_JSONTokenKind(kind, $5)};
|
|
1617
1597
|
});
|
|
1618
1598
|
|
|
1619
|
-
const
|
|
1599
|
+
const csegen_271 = __lazy(function () {
|
|
1620
1600
|
return {a1: $1 => $2 => Language_JSON_Tokens_x3dx3d_Eq_JSONTokenKind($1, $2), a2: $7 => $8 => Language_JSON_Tokens_x2fx3d_Eq_JSONTokenKind($7, $8)};
|
|
1621
1601
|
});
|
|
1622
1602
|
|
|
1623
|
-
const
|
|
1603
|
+
const csegen_307 = __lazy(function () {
|
|
1624
1604
|
return {a1: $1 => Language_JSON_String_Tokens_TokType_TokenKind_JSONStringTokenKind($1), a2: kind => $5 => Language_JSON_String_Tokens_tokValue_TokenKind_JSONStringTokenKind(kind, $5)};
|
|
1625
1605
|
});
|
|
1626
1606
|
|
|
1627
|
-
const
|
|
1607
|
+
const csegen_310 = __lazy(function () {
|
|
1628
1608
|
return {a1: $1 => $2 => Language_JSON_String_Tokens_x3dx3d_Eq_JSONStringTokenKind($1, $2), a2: $7 => $8 => Language_JSON_String_Tokens_x2fx3d_Eq_JSONStringTokenKind($7, $8)};
|
|
1629
1609
|
});
|
|
1630
1610
|
|
|
1631
|
-
const
|
|
1611
|
+
const csegen_326 = __lazy(function () {
|
|
1632
1612
|
return $0 => $1 => $2 => $3 => Text_Bounded_map_Functor_WithBounds($2, $3);
|
|
1633
1613
|
});
|
|
1634
1614
|
|
|
1635
|
-
const
|
|
1615
|
+
const csegen_328 = __lazy(function () {
|
|
1636
1616
|
return {a1: {a1: 'End of input', a2: {h: 0}}, a2: {h: 0}};
|
|
1637
1617
|
});
|
|
1638
1618
|
|
|
1639
|
-
const
|
|
1619
|
+
const csegen_380 = __lazy(function () {
|
|
1620
|
+
return $0 => $0.a2;
|
|
1621
|
+
});
|
|
1622
|
+
|
|
1623
|
+
const csegen_383 = __lazy(function () {
|
|
1624
|
+
return $0 => $0.a1;
|
|
1625
|
+
});
|
|
1626
|
+
|
|
1627
|
+
const csegen_388 = __lazy(function () {
|
|
1628
|
+
return $0 => $1 => Prelude_Types_max_Ord_Nat($0, $1);
|
|
1629
|
+
});
|
|
1630
|
+
|
|
1631
|
+
const csegen_390 = __lazy(function () {
|
|
1632
|
+
return date => Text_PrettyPrint_Prettyprinter_Doc_indent(2, Text_PrettyPrint_Prettyprinter_Doc_hsep({a1: Text_PrettyPrint_Prettyprinter_Doc_pretty_Pretty_String('earliest:'), a2: {a1: Text_PrettyPrint_Prettyprinter_Doc_pretty_Pretty_String(Data_Date_show_Show_Date(date)), a2: {h: 0}}}));
|
|
1633
|
+
});
|
|
1634
|
+
|
|
1635
|
+
const csegen_402 = __lazy(function () {
|
|
1640
1636
|
return $0 => Text_PrettyPrint_Prettyprinter_Doc_annotate(Text_PrettyPrint_Prettyprinter_Render_Terminal_color(2), Text_PrettyPrint_Prettyprinter_Doc_pretty_Pretty_String($0));
|
|
1641
1637
|
});
|
|
1642
1638
|
|
|
1643
|
-
const
|
|
1639
|
+
const csegen_404 = __lazy(function () {
|
|
1644
1640
|
return Prelude_IO_getLine(csegen_21());
|
|
1645
1641
|
});
|
|
1646
1642
|
|
|
1647
|
-
const
|
|
1643
|
+
const csegen_434 = __lazy(function () {
|
|
1648
1644
|
return $0 => Language_JSON_Accessors_array($3 => Data_PullRequest_parsePR($3), $0);
|
|
1649
1645
|
});
|
|
1650
1646
|
|
|
1651
|
-
const
|
|
1647
|
+
const csegen_454 = __lazy(function () {
|
|
1652
1648
|
return {a1: acc => elem => func => init => input => Prelude_Types_foldr_Foldable_x28Eitherx20x24ex29(func, init, input), a2: elem => acc => func => init => input => Prelude_Types_foldl_Foldable_x28Eitherx20x24ex29(func, init, input), a3: elem => $b => Prelude_Types_null_Foldable_x28Eitherx20x24ex29($b), a4: elem => acc => m => $f => funcM => init => input => Prelude_Types_foldlM_Foldable_x28Eitherx20x24ex29($f, funcM, init, input), a5: elem => $16 => Prelude_Types_toList_Foldable_x28Eitherx20x24ex29($16), a6: a => m => $1a => f => $1b => Prelude_Types_foldMap_Foldable_x28Eitherx20x24ex29($1a, f, $1b)};
|
|
1653
1649
|
});
|
|
1654
1650
|
|
|
1655
|
-
const
|
|
1651
|
+
const csegen_458 = __lazy(function () {
|
|
1656
1652
|
return b => a => f => $0 => $1 => $2 => Prelude_Types_traverse_Traversable_x28Eitherx20x24ex29($0, $1, $2);
|
|
1657
1653
|
});
|
|
1658
1654
|
|
|
1659
|
-
const
|
|
1655
|
+
const csegen_471 = __lazy(function () {
|
|
1660
1656
|
return $0 => $0.a1;
|
|
1661
1657
|
});
|
|
1662
1658
|
|
|
1663
|
-
const
|
|
1659
|
+
const csegen_479 = __lazy(function () {
|
|
1664
1660
|
return $0 => $1 => $2 => Data_Promise_either(csegen_115(), Data_PullRequest_parsePullRequestsString($0), $1, $2);
|
|
1665
1661
|
});
|
|
1666
1662
|
|
|
1667
|
-
const
|
|
1663
|
+
const csegen_480 = __lazy(function () {
|
|
1668
1664
|
return $0 => $1 => $2 => Data_Promise_either(csegen_115(), Data_User_parseUserString($0), $1, $2);
|
|
1669
1665
|
});
|
|
1670
1666
|
|
|
1671
|
-
const
|
|
1667
|
+
const csegen_513 = __lazy(function () {
|
|
1672
1668
|
return {a1: $1 => $2 => _add32s($1, $2), a2: $6 => $7 => _mul32s($6, $7), a3: $b => Number(_truncBigInt32($b))};
|
|
1673
1669
|
});
|
|
1674
1670
|
|
|
1675
|
-
const
|
|
1671
|
+
const csegen_528 = __lazy(function () {
|
|
1676
1672
|
return $0 => $0.a2;
|
|
1677
1673
|
});
|
|
1678
1674
|
|
|
1679
|
-
const
|
|
1675
|
+
const csegen_532 = __lazy(function () {
|
|
1680
1676
|
return $0 => $0.a1;
|
|
1681
1677
|
});
|
|
1682
1678
|
|
|
1683
|
-
const
|
|
1679
|
+
const csegen_535 = __lazy(function () {
|
|
1684
1680
|
return Prelude_Interfaces_x3cx24x3e(csegen_103(), $4 => Prelude_Cast_cast_Cast_Integer_Bits32($4), System_time(csegen_21()));
|
|
1685
1681
|
});
|
|
1686
1682
|
|
|
1687
|
-
const
|
|
1683
|
+
const csegen_539 = __lazy(function () {
|
|
1688
1684
|
return {a1: csegen_21(), a2: {a1: x => Data_Config_show_Show_Config(x), a2: d => x => Data_Config_showPrec_Show_Config(d, x)}};
|
|
1689
1685
|
});
|
|
1690
1686
|
|
|
1691
|
-
const
|
|
1687
|
+
const csegen_564 = __lazy(function () {
|
|
1692
1688
|
return {a1: {a1: '--checkout', a2: {a1: '-c', a2: {h: 0}}}};
|
|
1693
1689
|
});
|
|
1694
1690
|
|
|
@@ -1704,7 +1700,7 @@ function prim__mul_Integer($0, $1) {
|
|
|
1704
1700
|
return ($0*$1);
|
|
1705
1701
|
}
|
|
1706
1702
|
|
|
1707
|
-
function
|
|
1703
|
+
function Main_case__contribute_2186($0, $1, $2, $3, $4, $5, $6, $7, $8, $9, $a) {
|
|
1708
1704
|
const $c = Data_List_headx27(Data_List_drop($6, Prelude_Types_List_tailRecAppend($a.a1, $a.a2)));
|
|
1709
1705
|
switch($c.h) {
|
|
1710
1706
|
case 0: return $16 => $17 => Data_Promise_reject('No open PRs to review!', $16, $17);
|
|
@@ -1721,16 +1717,16 @@ function Main_case__contribute_3289($0, $1, $2, $3, $4, $5, $6, $7, $8, $9, $a)
|
|
|
1721
1717
|
}
|
|
1722
1718
|
}
|
|
1723
1719
|
|
|
1724
|
-
function
|
|
1720
|
+
function Main_n__6408_1831_putNameLn($0, $1, $2, $3) {
|
|
1725
1721
|
return Text_PrettyPrint_Prettyprinter_Doc_hsep({a1: Text_PrettyPrint_Prettyprinter_Doc_fillBreak(15, Text_PrettyPrint_Prettyprinter_Doc_annotate(Text_PrettyPrint_Prettyprinter_Render_Terminal_italic(), Text_PrettyPrint_Prettyprinter_Doc_pretty_Pretty_String($3.a1))), a2: {a1: Text_PrettyPrint_Prettyprinter_Doc_vsep({a1: Text_PrettyPrint_Prettyprinter_Doc_unsafeTextWithoutNewLines('-'), a2: {h: 0}}), a2: {a1: Text_PrettyPrint_Prettyprinter_Doc_pretty_Pretty_String($3.a2), a2: {h: 0}}}});
|
|
1726
1722
|
}
|
|
1727
1723
|
|
|
1728
|
-
function
|
|
1724
|
+
function Main_n__6276_1721_partitionedArgs($0, $1, $2, $3, $4) {
|
|
1729
1725
|
const $5 = Data_List_partition($8 => Data_String_isPrefixOf('+', $8), $4);
|
|
1730
1726
|
return {a1: Prelude_Types_map_Functor_List($11 => Data_String_Extra_drop(1n, $11), $5.a1), a2: $5.a2};
|
|
1731
1727
|
}
|
|
1732
1728
|
|
|
1733
|
-
function
|
|
1729
|
+
function Main_n__6956_2384_parseSkipArg($0, $1) {
|
|
1734
1730
|
const $2 = Prelude_Types_fastUnpack($1);
|
|
1735
1731
|
switch($2.h) {
|
|
1736
1732
|
case undefined: {
|
|
@@ -1743,15 +1739,15 @@ function Main_n__6941_3487_parseSkipArg($0, $1) {
|
|
|
1743
1739
|
}
|
|
1744
1740
|
}
|
|
1745
1741
|
|
|
1746
|
-
function
|
|
1742
|
+
function Main_n__7155_2644_parsePg($0, $1, $2, $3, $4, $5) {
|
|
1747
1743
|
return Data_String_parsePositive(csegen_30(), $5);
|
|
1748
1744
|
}
|
|
1749
1745
|
|
|
1750
|
-
function
|
|
1746
|
+
function Main_n__7155_2643_parseLim($0, $1, $2, $3, $4) {
|
|
1751
1747
|
return Prelude_Interfaces_x3cx3dx3c(csegen_42(), x => Data_Fin_natToFin(x, Prelude_Types_prim__integerToNat(101n)), $f => Data_String_parsePositive(csegen_30(), $f));
|
|
1752
1748
|
}
|
|
1753
1749
|
|
|
1754
|
-
function
|
|
1750
|
+
function Main_n__6956_2383_parseCheckoutArg($0, $1) {
|
|
1755
1751
|
switch($1) {
|
|
1756
1752
|
case '-c': return {a1: {h: 0}};
|
|
1757
1753
|
case '--checkout': return {a1: {h: 0}};
|
|
@@ -1759,18 +1755,11 @@ function Main_n__6941_3486_parseCheckoutArg($0, $1) {
|
|
|
1759
1755
|
}
|
|
1760
1756
|
}
|
|
1761
1757
|
|
|
1762
|
-
function
|
|
1763
|
-
switch(Data_Config_rf__colors($2)) {
|
|
1764
|
-
case 1: return $3;
|
|
1765
|
-
case 0: return Text_PrettyPrint_Prettyprinter_Doc_unAnnotate($3);
|
|
1766
|
-
}
|
|
1767
|
-
}
|
|
1768
|
-
|
|
1769
|
-
function Main_n__6357_2890_forkedUser($0, $1, $2, $3) {
|
|
1758
|
+
function Main_n__6408_1830_forkedUser($0, $1, $2, $3) {
|
|
1770
1759
|
return FFI_Concurrency_fork(csegen_21(), ('user --json '+$3));
|
|
1771
1760
|
}
|
|
1772
1761
|
|
|
1773
|
-
function
|
|
1762
|
+
function Main_n__6146_1583_configuredOpts($0, $1, $2) {
|
|
1774
1763
|
const $10 = $11 => {
|
|
1775
1764
|
switch($11.h) {
|
|
1776
1765
|
case 1: return $0.a1.a1.a2(undefined)(BashCompletion_opts($11.a1, $2, $1));
|
|
@@ -1831,7 +1820,7 @@ function Main_parseContributeArgs($0) {
|
|
|
1831
1820
|
switch($0.a2.a2.h) {
|
|
1832
1821
|
case undefined: return {h: 0, a1: 'contribute\'s arguments must be either -<num> to skip num PRs or --checkout (-c) to checkout the branch needing review.'};
|
|
1833
1822
|
default: {
|
|
1834
|
-
const $6 = Prelude_Types_traverse_Traversable_List(csegen_37(), $b => Main_x3cx7cx7cx3e(csegen_80(), $10 =>
|
|
1823
|
+
const $6 = Prelude_Types_traverse_Traversable_List(csegen_37(), $b => Main_x3cx7cx7cx3e(csegen_80(), $10 => Main_n__6956_2384_parseSkipArg($0, $10), $15 => Main_n__6956_2383_parseCheckoutArg($0, $15), $b), $0);
|
|
1835
1824
|
switch($6.h) {
|
|
1836
1825
|
case undefined: return {h: 1, a1: $6.a1};
|
|
1837
1826
|
case 0: return {h: 0, a1: 'contribute\'s arguments must be either -<num> to skip num PRs or --checkout (-c) to checkout the branch needing review.'};
|
|
@@ -1840,7 +1829,7 @@ function Main_parseContributeArgs($0) {
|
|
|
1840
1829
|
}
|
|
1841
1830
|
}
|
|
1842
1831
|
default: {
|
|
1843
|
-
const $1d = Prelude_Types_traverse_Traversable_List(csegen_37(), $22 => Main_x3cx7cx7cx3e(csegen_80(), $27 =>
|
|
1832
|
+
const $1d = Prelude_Types_traverse_Traversable_List(csegen_37(), $22 => Main_x3cx7cx7cx3e(csegen_80(), $27 => Main_n__6956_2384_parseSkipArg($0, $27), $2c => Main_n__6956_2383_parseCheckoutArg($0, $2c), $22), $0);
|
|
1844
1833
|
switch($1d.h) {
|
|
1845
1834
|
case undefined: return {h: 1, a1: $1d.a1};
|
|
1846
1835
|
case 0: return {h: 0, a1: 'contribute\'s arguments must be either -<num> to skip num PRs or --checkout (-c) to checkout the branch needing review.'};
|
|
@@ -1849,7 +1838,7 @@ function Main_parseContributeArgs($0) {
|
|
|
1849
1838
|
}
|
|
1850
1839
|
}
|
|
1851
1840
|
default: {
|
|
1852
|
-
const $34 = Prelude_Types_traverse_Traversable_List(csegen_37(), $39 => Main_x3cx7cx7cx3e(csegen_80(), $3e =>
|
|
1841
|
+
const $34 = Prelude_Types_traverse_Traversable_List(csegen_37(), $39 => Main_x3cx7cx7cx3e(csegen_80(), $3e => Main_n__6956_2384_parseSkipArg($0, $3e), $43 => Main_n__6956_2383_parseCheckoutArg($0, $43), $39), $0);
|
|
1853
1842
|
switch($34.h) {
|
|
1854
1843
|
case undefined: return {h: 1, a1: $34.a1};
|
|
1855
1844
|
case 0: return {h: 0, a1: 'contribute\'s arguments must be either -<num> to skip num PRs or --checkout (-c) to checkout the branch needing review.'};
|
|
@@ -1904,7 +1893,7 @@ function Main_main($0) {
|
|
|
1904
1893
|
}
|
|
1905
1894
|
|
|
1906
1895
|
function Main_listTeam($0, $1, $2, $3, $4) {
|
|
1907
|
-
return Data_Promise_x3ex3ex3d_Monad_Promise(Prelude_Interfaces_x3cx24x3e(csegen_103(), csegen_112(), FFI_GitHub_listTeamMembers($1, $0.a2, $2)), teamMemberLogins => $13 => $14 => Data_Promise_x3ex3ex3d_Monad_Promise(Prelude_Interfaces_x3dx3cx3c(csegen_15(), csegen_113(), Prelude_Types_traverse_Traversable_List(csegen_9(), $21 =>
|
|
1896
|
+
return Data_Promise_x3ex3ex3d_Monad_Promise(Prelude_Interfaces_x3cx24x3e(csegen_103(), csegen_112(), FFI_GitHub_listTeamMembers($1, $0.a2, $2)), teamMemberLogins => $13 => $14 => Data_Promise_x3ex3ex3d_Monad_Promise(Prelude_Interfaces_x3dx3cx3c(csegen_15(), csegen_113(), Prelude_Types_traverse_Traversable_List(csegen_9(), $21 => Main_n__6408_1830_forkedUser($1, $2, $0, $21), teamMemberLogins)), teamMembersJson => $29 => $2a => Data_Promise_x3ex3ex3d_Monad_Promise(Prelude_Types_traverse_Traversable_List(csegen_9(), $31 => $32 => $33 => Data_Promise_either(csegen_115(), Data_User_parseUser($31), $32, $33), teamMembersJson), teamMembers => Util_renderIO($0, csegen_21(), Text_PrettyPrint_Prettyprinter_Doc_vsep(Prelude_Interfaces_x3cx24x3e(csegen_119(), $49 => Main_n__6408_1831_putNameLn($1, $2, $0, $49), teamMembers))), $29, $2a), $13, $14), $3, $4);
|
|
1908
1897
|
}
|
|
1909
1898
|
|
|
1910
1899
|
function Main_handleConfiguredArgs($0, $1, $2, $3) {
|
|
@@ -1954,7 +1943,7 @@ function Main_handleConfiguredArgs($0, $1, $2, $3) {
|
|
|
1954
1943
|
case undefined: {
|
|
1955
1944
|
switch($3.a2.a2.a2.a2.h) {
|
|
1956
1945
|
case 0: {
|
|
1957
|
-
const $8d = Prelude_Types_x3cx2ax3e_Applicative_Maybe(Prelude_Types_x3cx2ax3e_Applicative_Maybe({a1: $93 => $94 => ({a1: $93, a2: $94})},
|
|
1946
|
+
const $8d = Prelude_Types_x3cx2ax3e_Applicative_Maybe(Prelude_Types_x3cx2ax3e_Applicative_Maybe({a1: $93 => $94 => ({a1: $93, a2: $94})}, Main_n__7155_2643_parseLim($1, $2, $3.a2.a2.a1, $3.a2.a2.a2.a1, $0)($3.a2.a2.a1)), Main_n__7155_2644_parsePg($1, $2, $3.a2.a2.a1, $3.a2.a2.a2.a1, $0, $3.a2.a2.a2.a1));
|
|
1958
1947
|
return $a8 => $a9 => {
|
|
1959
1948
|
switch($8d.h) {
|
|
1960
1949
|
case undefined: return Data_Promise_x3ex3ex3d_Monad_Promise(FFI_GitHub_listPullRequestsJsonStr($2, $0.a2, $0.a3, {h: 0}, $8d.a1.a1, $8d.a1.a2), pullsJsonStr => Prelude_IO_putStr(csegen_21(), pullsJsonStr), $a8, $a9);
|
|
@@ -2172,7 +2161,7 @@ function Main_handleArgs($0, $1, $2, $3, $4) {
|
|
|
2172
2161
|
}
|
|
2173
2162
|
|
|
2174
2163
|
function Main_graphTeam($0, $1, $2, $3, $4) {
|
|
2175
|
-
return Data_Promise_x3ex3ex3d_Monad_Promise(FFI_GitHub_listTeamMembers($1, $0.a2, $2), teamMemberLogins => $d => $e => Data_Promise_x3ex3ex3d_Monad_Promise($11 => $12 => PullRequest_listReviewers($0, $1, 4n, csegen_134(), $11, $12), $1c =>
|
|
2164
|
+
return Data_Promise_x3ex3ex3d_Monad_Promise(FFI_GitHub_listTeamMembers($1, $0.a2, $2), teamMemberLogins => $d => $e => Data_Promise_x3ex3ex3d_Monad_Promise($11 => $12 => PullRequest_listReviewers($0, $1, 4n, csegen_134(), $11, $12), $1c => Util_renderIO($0, csegen_21(), Reviewer_reviewsGraph(csegen_111(), {a1: ann => $28 => Text_PrettyPrint_Prettyprinter_Doc_pretty_Pretty_String($28), a2: ann => $2c => $2d => Text_PrettyPrint_Prettyprinter_Doc_prettyPrec_Pretty_String($2c, $2d)}, $1c.a2, $1c.a1, teamMemberLogins)), $d, $e), $3, $4);
|
|
2176
2165
|
}
|
|
2177
2166
|
|
|
2178
2167
|
function Main_exitError($0, $1) {
|
|
@@ -2212,7 +2201,7 @@ function Main_contribute($0, $1, $2, $3, $4, $5) {
|
|
|
2212
2201
|
};
|
|
2213
2202
|
const $35 = Prelude_Types_List_filter($37, openPrs);
|
|
2214
2203
|
const $3e = Data_List_partition($41 => Data_PullRequest_isRequestedReviewer(myLogin, $41), $35);
|
|
2215
|
-
return
|
|
2204
|
+
return Main_case__contribute_2186($1, $2, $3, $0, openPrs, myLogin, $21, $2f, $35, $3e, Prelude_Interfaces_mapHom({a1: d => b => c => a => $55 => $56 => $57 => ({a1: $55($57.a1), a2: $56($57.a2)}), a2: b => c => a => $60 => $61 => ({a1: $60($61.a1), a2: $61.a2}), a3: a => d => b => $68 => $69 => ({a1: $69.a1, a2: $68($69.a2)})}, $70 => Data_List_sortBy($73 => $74 => Prelude_Basics_on(csegen_141(), $79 => $79.a2, $73, $74), $70), $3e));
|
|
2216
2205
|
};
|
|
2217
2206
|
return Data_Promise_x3ex3ex3d_Monad_Promise(Prelude_Interfaces_x3cx24x3e(csegen_103(), csegen_139(), FFI_GitHub_getSelf($2)), $20, $14, $15);
|
|
2218
2207
|
};
|
|
@@ -2220,13 +2209,13 @@ function Main_contribute($0, $1, $2, $3, $4, $5) {
|
|
|
2220
2209
|
}
|
|
2221
2210
|
|
|
2222
2211
|
function Main_bashCompletion($0, $1, $2) {
|
|
2223
|
-
const $3 = Prelude_Types_maybe(() =>
|
|
2212
|
+
const $3 = Prelude_Types_maybe(() => Main_n__6146_1583_configuredOpts($0, $2, $1), () => $b => $0.a1.a1.a2(undefined)($b), BashCompletion_cmdOpts($1, $2));
|
|
2224
2213
|
return $0.a1.a2(undefined)(undefined)($3)($21 => Prelude_IO_putStr($0, Data_String_fastUnlines($21)));
|
|
2225
2214
|
}
|
|
2226
2215
|
|
|
2227
2216
|
function Main_assign($0, $1, $2, $3, $4, $5, $6) {
|
|
2228
2217
|
return Data_Promise_x3ex3ex3d_Monad_Promise($9 => $a => Data_Promise_x3ex3ex3d_Monad_Promise($d => $e => FFI_Git_currentBranch($1, $d, $e), $14 => $15 => $16 => PullRequest_identifyOrCreatePR($0, $1, $2, $14, $15, $16), $9, $a), $21 => $22 => $24 => {
|
|
2229
|
-
const $25 =
|
|
2218
|
+
const $25 = Main_n__6276_1721_partitionedArgs($0, $1, $2, $4, $3);
|
|
2230
2219
|
return PullRequest_requestReviewers($0, $2, $21.a2, $25.a2, $25.a1, $4, $22, $24);
|
|
2231
2220
|
}, $5, $6);
|
|
2232
2221
|
}
|
|
@@ -2235,99 +2224,11 @@ function Main_x3cx7cx7cx3e($0, $1, $2, $3) {
|
|
|
2235
2224
|
return $0.a3(undefined)($1($3))(() => $2($3));
|
|
2236
2225
|
}
|
|
2237
2226
|
|
|
2238
|
-
|
|
2239
|
-
const $b = Prelude_Interfaces_mapHom({a1: d => b => c => a => $f => $10 => $11 => ({a1: $f($11.a1), a2: $10($11.a2)}), a2: b => c => a => $1a => $1b => ({a1: $1a($1b.a1), a2: $1b.a2}), a3: a => d => b => $22 => $23 => ({a1: $23.a1, a2: $22($23.a2)})}, $2a => Data_List_headx27(Data_List_sort({a1: {a1: $31 => $32 => Data_Date_x3dx3d_Eq_Date($31, $32), a2: $37 => $38 => Data_Date_x2fx3d_Eq_Date($37, $38)}, a2: $3d => $3e => Data_Date_compare_Ord_Date($3d, $3e), a3: $43 => $44 => Data_Date_x3c_Ord_Date($43, $44), a4: $49 => $4a => Data_Date_x3e_Ord_Date($49, $4a), a5: $4f => $50 => Data_Date_x3cx3d_Ord_Date($4f, $50), a6: $55 => $56 => Data_Date_x3ex3d_Ord_Date($55, $56), a7: $5b => $5c => Data_Date_max_Ord_Date($5b, $5c), a8: $61 => $62 => Data_Date_min_Ord_Date($61, $62)}, Prelude_Types_map_Functor_List(csegen_156(), $2a))), {a1: $7, a2: $9.a1});
|
|
2240
|
-
return Prelude_IO_putStrLn(csegen_21(), Util_renderString($0, User_Reflect_print(Prelude_Types_String_length(User_Reflect_intro()), Prelude_Types_List_lengthTR($4), Prelude_Types_List_lengthTR($9.a1), Prelude_Types_List_lengthTR($9.a2), Prelude_Types_List_lengthTR($8), Prelude_Types_List_lengthTR($7), $5, $b.a1, $b.a2)));
|
|
2241
|
-
}
|
|
2242
|
-
|
|
2243
|
-
function User_Reflect_n__5346_1432_ital($0, $1) {
|
|
2244
|
-
return Text_PrettyPrint_Prettyprinter_Doc_annotate(Text_PrettyPrint_Prettyprinter_Render_Terminal_italic(), Text_PrettyPrint_Prettyprinter_Doc_pretty_Pretty_String($1));
|
|
2245
|
-
}
|
|
2246
|
-
|
|
2247
|
-
function User_Me_n__6258_2372_handleUnsetEmail($0, $1, $2, $3) {
|
|
2248
|
-
switch($3) {
|
|
2249
|
-
case '': return 'Not set';
|
|
2250
|
-
default: return $3;
|
|
2251
|
-
}
|
|
2252
|
-
}
|
|
2253
|
-
|
|
2254
|
-
const User_Reflect_rightTitle = __lazy(function () {
|
|
2255
|
-
return 'authored';
|
|
2256
|
-
});
|
|
2257
|
-
|
|
2258
|
-
const User_Reflect_reviewDetailsCount = __lazy(function () {
|
|
2259
|
-
return 25n;
|
|
2260
|
-
});
|
|
2261
|
-
|
|
2262
|
-
function User_replicatex27($0, $1, $2) {
|
|
2263
|
-
return Text_PrettyPrint_Prettyprinter_Doc_annotate(Text_PrettyPrint_Prettyprinter_Render_Terminal_color($0), Text_PrettyPrint_Prettyprinter_Doc_pretty_Pretty_String(Data_String_replicate($1, $2)));
|
|
2264
|
-
}
|
|
2265
|
-
|
|
2266
|
-
function User_Reflect_reflectOnSelf($0, $1, $2, $3) {
|
|
2267
|
-
const $c = prs => $d => $e => {
|
|
2268
|
-
const $19 = myLogin => $1a => $1b => {
|
|
2269
|
-
const $37 = reviews => {
|
|
2270
|
-
const $38 = Prelude_Types_map_Functor_Maybe(csegen_159(), Data_List_headx27(Data_List_sortBy($41 => $42 => Prelude_Basics_on(csegen_141(), csegen_159(), $41, $42), reviews)));
|
|
2271
|
-
const $4b = PullRequest_tuple(prs);
|
|
2272
|
-
const $4e = Prelude_Interfaces_mapHom({a1: d => b => c => a => $52 => $53 => $54 => ({a1: $52($54.a1), a2: $53($54.a2)}), a2: b => c => a => $5d => $5e => ({a1: $5d($5e.a1), a2: $5e.a2}), a3: a => d => b => $65 => $66 => ({a1: $66.a1, a2: $65($66.a2)})}, $6d => Prelude_Types_List_filter($70 => Prelude_EqOrd_x3dx3d_Eq_String($70.a3, myLogin), $6d), $4b);
|
|
2273
|
-
return User_Reflect_case__casex20blockx20inx20reflectOnSelf_2238($0, $1, prs, myLogin, reviews, $38, $4b, $4e.a1, $4e.a2, Prelude_Interfaces_mapHom({a1: d => b => c => a => $85 => $86 => $87 => ({a1: $85($87.a1), a2: $86($87.a2)}), a2: b => c => a => $90 => $91 => ({a1: $90($91.a1), a2: $91.a2}), a3: a => d => b => $98 => $99 => ({a1: $99.a1, a2: $98($99.a2)})}, $a0 => Prelude_Types_List_filter($a3 => Prelude_Interfaces_any(csegen_77(), $a8 => Prelude_EqOrd_x3dx3d_Eq_String($a8, myLogin), $a3.a5), $a0), $4b));
|
|
2274
|
-
};
|
|
2275
|
-
return Data_Promise_x3ex3ex3d_Monad_Promise(PullRequest_reviewsForUser($0, $1, myLogin, Data_List_take(User_Reflect_reviewDetailsCount(), Prelude_Types_List_reverse(Data_List_sortBy($2b => $2c => Prelude_Basics_on(csegen_141(), csegen_156(), $2b, $2c), PullRequest_combined(prs))))), $37, $1a, $1b);
|
|
2276
|
-
};
|
|
2277
|
-
return Data_Promise_x3ex3ex3d_Monad_Promise(Prelude_Interfaces_x3cx24x3e(csegen_103(), csegen_139(), FFI_GitHub_getSelf($1)), $19, $d, $e);
|
|
2278
|
-
};
|
|
2279
|
-
return Data_Promise_x3ex3ex3d_Monad_Promise(PullRequest_listPartitionedPRs($0, $1, 4n, User_Reflect_prCount()), $c, $2, $3);
|
|
2280
|
-
}
|
|
2281
|
-
|
|
2282
|
-
function User_Me_printInfoOnSelf($0, $1, $2, $3, $4) {
|
|
2283
|
-
return Data_Promise_x3ex3ex3d_Monad_Promise(Prelude_Interfaces_x3cx24x3e(csegen_103(), $b => User_Me_n__6258_2372_handleUnsetEmail($0, $1, $2, $b), $12 => $13 => FFI_Git_userEmail($2, $12, $13)), gitEmail => $19 => $1a => Data_Promise_x3ex3ex3d_Monad_Promise(FFI_GitHub_getSelf($1), githubUser => $20 => $21 => Data_Promise_x3ex3ex3d_Monad_Promise(Prelude_Interfaces_x3cx24x3e(csegen_103(), csegen_112(), FFI_GitHub_listMyTeams($1)), githubTeams => Prelude_Interfaces_x3ex3e(csegen_15(), Prelude_IO_putStrLn(csegen_21(), Prelude_Interfaces_concat(csegen_62(), csegen_77(), {a1: 'Git Email: ', a2: {a1: gitEmail, a2: {h: 0}}})), () => Prelude_Interfaces_x3ex3e(csegen_15(), csegen_161(), () => Prelude_Interfaces_x3ex3e(csegen_15(), Prelude_IO_putStrLn(csegen_21(), Prelude_Interfaces_concat(csegen_62(), csegen_77(), {a1: 'GitHub Name: ', a2: {a1: githubUser.a2, a2: {h: 0}}})), () => Prelude_Interfaces_x3ex3e(csegen_15(), Prelude_IO_putStrLn(csegen_21(), Prelude_Interfaces_concat(csegen_62(), csegen_77(), {a1: 'GitHub Login: ', a2: {a1: githubUser.a1, a2: {h: 0}}})), () => Prelude_Interfaces_x3ex3e(csegen_15(), csegen_161(), () => Prelude_Interfaces_x3ex3e(csegen_15(), Prelude_IO_putStrLn(csegen_21(), 'GitHub Teams:'), () => Prelude_Interfaces_traverse_(csegen_9(), csegen_77(), $83 => Prelude_IO_putStrLn(csegen_21(), $83), githubTeams))))))), $20, $21), $19, $1a), $3, $4);
|
|
2284
|
-
}
|
|
2285
|
-
|
|
2286
|
-
function User_Reflect_print($0, $1, $2, $3, $4, $5, $6, $7, $8) {
|
|
2287
|
-
return Text_PrettyPrint_Prettyprinter_Doc_vsep({a1: Text_PrettyPrint_Prettyprinter_Doc_emptyDoc(), a2: {a1: User_Reflect_graph($0, $1, $2, $3, $4, $5), a2: {a1: Text_PrettyPrint_Prettyprinter_Doc_emptyDoc(), a2: {a1: User_Reflect_details($0, $1, $2, $3, $4, $5, $6, $7, $8), a2: {a1: Text_PrettyPrint_Prettyprinter_Doc_emptyDoc(), a2: {h: 0}}}}}});
|
|
2288
|
-
}
|
|
2289
|
-
|
|
2290
|
-
const User_Reflect_prCount = __lazy(function () {
|
|
2291
|
-
return csegen_134();
|
|
2292
|
-
});
|
|
2293
|
-
|
|
2294
|
-
const User_Reflect_leftTitle = __lazy(function () {
|
|
2295
|
-
return 'requested';
|
|
2296
|
-
});
|
|
2297
|
-
|
|
2298
|
-
const User_Reflect_intro = __lazy(function () {
|
|
2299
|
-
return Prelude_Interfaces_concat(csegen_62(), csegen_77(), {a1: 'Your current pull request summary (out of the past ', a2: {a1: Data_Fin_show_Show_x28Finx20x24nx29(User_Reflect_prCount()), a2: {a1: ' PRs):', a2: {h: 0}}}});
|
|
2300
|
-
});
|
|
2301
|
-
|
|
2302
|
-
function User_Reflect_header($0) {
|
|
2303
|
-
return Text_PrettyPrint_Prettyprinter_Doc_indent(Prelude_Cast_cast_Cast_Nat_Int($0), Text_PrettyPrint_Prettyprinter_Doc_hsep({a1: User_Reflect_n__5346_1432_ital($0, User_Reflect_leftTitle()), a2: {a1: Text_PrettyPrint_Prettyprinter_Doc_pretty_Pretty_String(' '), a2: {a1: User_Reflect_n__5346_1432_ital($0, User_Reflect_rightTitle()), a2: {h: 0}}}}));
|
|
2304
|
-
}
|
|
2305
|
-
|
|
2306
|
-
function User_Reflect_graph($0, $1, $2, $3, $4, $5) {
|
|
2307
|
-
const $6 = ($2+$3);
|
|
2308
|
-
const $9 = ($5+$4);
|
|
2309
|
-
const $c = Prelude_Types_foldr_Foldable_List(csegen_167(), Prelude_Types_String_length(User_Reflect_leftTitle()), {a1: ($6+$1), a2: {a1: $9, a2: {h: 0}}});
|
|
2310
|
-
const $1b = Prelude_Types_foldr_Foldable_List(csegen_167(), Prelude_Types_String_length(User_Reflect_rightTitle()), {a1: $6, a2: {a1: $9, a2: {h: 0}}});
|
|
2311
|
-
const $28 = (($c+$1b)+3n);
|
|
2312
|
-
const $2d = ((Prelude_Cast_cast_Cast_Nat_Double($0)/2.0)-(Prelude_Cast_cast_Cast_Nat_Double($28)/2.0));
|
|
2313
|
-
const $38 = (Prelude_Cast_cast_Cast_Double_Nat($2d)+Prelude_Types_prim__integerToNat(($c-Prelude_Types_String_length(User_Reflect_leftTitle()))));
|
|
2314
|
-
const $44 = (Prelude_Cast_cast_Cast_Double_Nat($2d)+Prelude_Types_prim__integerToNat(($c-($6+$1))));
|
|
2315
|
-
return Text_PrettyPrint_Prettyprinter_Doc_vsep({a1: User_Reflect_header($38), a2: {a1: User_Reflect_chart($0, $1, $2, $3, $4, $5, $44), a2: {h: 0}}});
|
|
2316
|
-
}
|
|
2317
|
-
|
|
2318
|
-
function User_Reflect_details($0, $1, $2, $3, $4, $5, $6, $7, $8) {
|
|
2319
|
-
return Text_PrettyPrint_Prettyprinter_Doc_vsep({a1: Text_PrettyPrint_Prettyprinter_Doc_pretty_Pretty_String(User_Reflect_intro()), a2: {a1: Text_PrettyPrint_Prettyprinter_Doc_emptyDoc(), a2: {a1: Text_PrettyPrint_Prettyprinter_Doc_annotate(Text_PrettyPrint_Prettyprinter_Render_Terminal_underline(), Text_PrettyPrint_Prettyprinter_Doc_pretty_Pretty_String('Requested Reviews:')), a2: {a1: Text_PrettyPrint_Prettyprinter_Doc_indent(2, Text_PrettyPrint_Prettyprinter_Doc_vsep(Data_List_catMaybes({a1: {a1: Text_PrettyPrint_Prettyprinter_Doc_pretty_Pretty_String('unreviewed:')}, a2: {a1: {a1: Text_PrettyPrint_Prettyprinter_Doc_indent(2, Text_PrettyPrint_Prettyprinter_Doc_vsep(Data_List_catMaybes({a1: {a1: Text_PrettyPrint_Prettyprinter_Doc_hsep({a1: Text_PrettyPrint_Prettyprinter_Doc_pretty_Pretty_String('open:'), a2: {a1: Text_PrettyPrint_Prettyprinter_Doc_annotate(Text_PrettyPrint_Prettyprinter_Render_Terminal_color(3), Text_PrettyPrint_Prettyprinter_Doc_pretty_Pretty_Nat($2)), a2: {h: 0}}})}, a2: {a1: Prelude_Interfaces_x3cx26x3e(csegen_18(), $8, csegen_169()), a2: {a1: {a1: Text_PrettyPrint_Prettyprinter_Doc_hsep({a1: Text_PrettyPrint_Prettyprinter_Doc_pretty_Pretty_String('closed:'), a2: {a1: Text_PrettyPrint_Prettyprinter_Doc_annotate(Text_PrettyPrint_Prettyprinter_Render_Terminal_color(1), Text_PrettyPrint_Prettyprinter_Doc_pretty_Pretty_Nat($3)), a2: {h: 0}}})}, a2: {h: 0}}}})))}, a2: {a1: {a1: Text_PrettyPrint_Prettyprinter_Doc_hsep({a1: Text_PrettyPrint_Prettyprinter_Doc_pretty_Pretty_String('reviews*:'), a2: {a1: Text_PrettyPrint_Prettyprinter_Doc_annotate(Text_PrettyPrint_Prettyprinter_Render_Terminal_color(2), Text_PrettyPrint_Prettyprinter_Doc_pretty_Pretty_Nat($1)), a2: {h: 0}}})}, a2: {a1: Prelude_Interfaces_x3cx26x3e(csegen_18(), $6, date => Text_PrettyPrint_Prettyprinter_Doc_indent(2, Text_PrettyPrint_Prettyprinter_Doc_hsep({a1: Text_PrettyPrint_Prettyprinter_Doc_pretty_Pretty_String('most recent:'), a2: {a1: Text_PrettyPrint_Prettyprinter_Doc_pretty_Pretty_String(Data_Date_show_Show_Date(date)), a2: {h: 0}}}))), a2: {h: 0}}}}}))), a2: {a1: Text_PrettyPrint_Prettyprinter_Doc_emptyDoc(), a2: {a1: Text_PrettyPrint_Prettyprinter_Doc_annotate(Text_PrettyPrint_Prettyprinter_Render_Terminal_underline(), Text_PrettyPrint_Prettyprinter_Doc_pretty_Pretty_String('Authored Pulls:')), a2: {a1: Text_PrettyPrint_Prettyprinter_Doc_indent(2, Text_PrettyPrint_Prettyprinter_Doc_vsep(Data_List_catMaybes({a1: {a1: Text_PrettyPrint_Prettyprinter_Doc_hsep({a1: Text_PrettyPrint_Prettyprinter_Doc_pretty_Pretty_String('open:'), a2: {a1: Text_PrettyPrint_Prettyprinter_Doc_annotate(Text_PrettyPrint_Prettyprinter_Render_Terminal_color(3), Text_PrettyPrint_Prettyprinter_Doc_pretty_Pretty_Nat($5)), a2: {h: 0}}})}, a2: {a1: Prelude_Interfaces_x3cx26x3e(csegen_18(), $7, csegen_169()), a2: {a1: {a1: Text_PrettyPrint_Prettyprinter_Doc_hsep({a1: Text_PrettyPrint_Prettyprinter_Doc_pretty_Pretty_String('closed:'), a2: {a1: Text_PrettyPrint_Prettyprinter_Doc_annotate(Text_PrettyPrint_Prettyprinter_Render_Terminal_color(2), Text_PrettyPrint_Prettyprinter_Doc_pretty_Pretty_Nat($4)), a2: {h: 0}}})}, a2: {h: 0}}}}))), a2: {a1: Text_PrettyPrint_Prettyprinter_Doc_emptyDoc(), a2: {a1: Text_PrettyPrint_Prettyprinter_Doc_annotate(Text_PrettyPrint_Prettyprinter_Render_Terminal_italic(), Text_PrettyPrint_Prettyprinter_Doc_pretty_Pretty_String(Prelude_Interfaces_concat(csegen_62(), csegen_77(), {a1: '*review count (not PR count) of most recent ', a2: {a1: Data_Fin_show_Show_x28Finx20x24nx29(User_Reflect_reviewDetailsCount()), a2: {a1: ' PRs.', a2: {h: 0}}}}))), a2: {h: 0}}}}}}}}}});
|
|
2320
|
-
}
|
|
2321
|
-
|
|
2322
|
-
function User_Reflect_chart($0, $1, $2, $3, $4, $5, $6) {
|
|
2323
|
-
return Text_PrettyPrint_Prettyprinter_Doc_indent(Prelude_Cast_cast_Cast_Nat_Int($6), Text_PrettyPrint_Prettyprinter_Doc_x3cx2bx2bx3e(Text_PrettyPrint_Prettyprinter_Doc_x3cx2bx3e_Semigroup_x28Docx20x24annx29(Text_PrettyPrint_Prettyprinter_Doc_x3cx2bx3e_Semigroup_x28Docx20x24annx29(User_replicatex27(2, $1, '\u{b7}'), User_replicatex27(1, $3, '\u{25e6}')), User_replicatex27(3, $2, '<')), Text_PrettyPrint_Prettyprinter_Doc_x3cx2bx2bx3e(Text_PrettyPrint_Prettyprinter_Doc_pretty_Pretty_String('|'), Text_PrettyPrint_Prettyprinter_Doc_x3cx2bx3e_Semigroup_x28Docx20x24annx29(User_replicatex27(3, $5, '>'), User_replicatex27(2, $4, '\u{b7}')))));
|
|
2324
|
-
}
|
|
2325
|
-
|
|
2326
|
-
const Util_n__4424_1177_startOver = __lazy(function () {
|
|
2227
|
+
const Util_n__4476_1237_startOver = __lazy(function () {
|
|
2327
2228
|
return {a1: 0, a2: {h: 0}};
|
|
2328
2229
|
});
|
|
2329
2230
|
|
|
2330
|
-
function
|
|
2231
|
+
function Util_n__4476_1238_guardSuccess($0) {
|
|
2331
2232
|
switch($0.h) {
|
|
2332
2233
|
case undefined: {
|
|
2333
2234
|
switch($0.a1) {
|
|
@@ -2340,12 +2241,12 @@ function Util_n__4424_1178_guardSuccess($0) {
|
|
|
2340
2241
|
}
|
|
2341
2242
|
}
|
|
2342
2243
|
|
|
2343
|
-
function
|
|
2244
|
+
function Util_n__4476_1239_go($0, $1) {
|
|
2344
2245
|
switch($0.a1) {
|
|
2345
2246
|
case 0: {
|
|
2346
2247
|
switch(Prelude_Types_isAlpha($1)) {
|
|
2347
2248
|
case 1: return {a1: 1, a2: {a1: $1, a2: $0.a2}};
|
|
2348
|
-
case 0: return
|
|
2249
|
+
case 0: return Util_n__4476_1237_startOver();
|
|
2349
2250
|
}
|
|
2350
2251
|
}
|
|
2351
2252
|
case 1: {
|
|
@@ -2354,7 +2255,7 @@ function Util_n__4424_1179_go($0, $1) {
|
|
|
2354
2255
|
default: {
|
|
2355
2256
|
switch(Prelude_Types_isAlpha($1)) {
|
|
2356
2257
|
case 1: return {a1: 1, a2: {a1: $1, a2: $0.a2}};
|
|
2357
|
-
case 0: return
|
|
2258
|
+
case 0: return Util_n__4476_1237_startOver();
|
|
2358
2259
|
}
|
|
2359
2260
|
}
|
|
2360
2261
|
}
|
|
@@ -2362,7 +2263,7 @@ function Util_n__4424_1179_go($0, $1) {
|
|
|
2362
2263
|
case 2: {
|
|
2363
2264
|
switch(Prelude_Types_isDigit($1)) {
|
|
2364
2265
|
case 1: return {a1: 3, a2: {a1: $1, a2: $0.a2}};
|
|
2365
|
-
case 0: return
|
|
2266
|
+
case 0: return Util_n__4476_1237_startOver();
|
|
2366
2267
|
}
|
|
2367
2268
|
}
|
|
2368
2269
|
case 3: {
|
|
@@ -2375,7 +2276,7 @@ function Util_n__4424_1179_go($0, $1) {
|
|
|
2375
2276
|
}
|
|
2376
2277
|
}
|
|
2377
2278
|
|
|
2378
|
-
function
|
|
2279
|
+
function Util_n__4363_1128_getMoreLines($0, $1, $2) {
|
|
2379
2280
|
switch($2.h) {
|
|
2380
2281
|
case 0: return $0.a1.a1.a2(undefined)(Prelude_Types_List_reverse($1));
|
|
2381
2282
|
case undefined: {
|
|
@@ -2386,13 +2287,13 @@ function Util_n__4311_1068_getMoreLines($0, $1, $2) {
|
|
|
2386
2287
|
case '': {
|
|
2387
2288
|
switch(line) {
|
|
2388
2289
|
case '': return $0.a1.a1.a2(undefined)(Prelude_Types_List_reverse($1.a2));
|
|
2389
|
-
default: return
|
|
2290
|
+
default: return Util_n__4363_1128_getMoreLines($0, {a1: line, a2: $1}, $2.a1());
|
|
2390
2291
|
}
|
|
2391
2292
|
}
|
|
2392
|
-
default: return
|
|
2293
|
+
default: return Util_n__4363_1128_getMoreLines($0, {a1: line, a2: $1}, $2.a1());
|
|
2393
2294
|
}
|
|
2394
2295
|
}
|
|
2395
|
-
default: return
|
|
2296
|
+
default: return Util_n__4363_1128_getMoreLines($0, {a1: line, a2: $1}, $2.a1());
|
|
2396
2297
|
}
|
|
2397
2298
|
};
|
|
2398
2299
|
return $0.a1.a2(undefined)(undefined)(Prelude_Interfaces_x3cx24x3e($0.a1.a1.a1, $1c => Data_String_trim($1c), Prelude_IO_getLine($0)))($22);
|
|
@@ -2416,12 +2317,28 @@ function Util_renderString($0, $1) {
|
|
|
2416
2317
|
return Text_PrettyPrint_Prettyprinter_Render_Terminal_renderString($3);
|
|
2417
2318
|
}
|
|
2418
2319
|
|
|
2320
|
+
function Util_renderIO($0, $1, $2) {
|
|
2321
|
+
let $9;
|
|
2322
|
+
switch(Data_Config_rf__colors($0)) {
|
|
2323
|
+
case 1: {
|
|
2324
|
+
$9 = $2;
|
|
2325
|
+
break;
|
|
2326
|
+
}
|
|
2327
|
+
case 0: {
|
|
2328
|
+
$9 = Text_PrettyPrint_Prettyprinter_Doc_unAnnotate($2);
|
|
2329
|
+
break;
|
|
2330
|
+
}
|
|
2331
|
+
}
|
|
2332
|
+
const $7 = Text_PrettyPrint_Prettyprinter_Render_Terminal_putDoc($9);
|
|
2333
|
+
return $1.a2(undefined)($7);
|
|
2334
|
+
}
|
|
2335
|
+
|
|
2419
2336
|
function Util_parseJiraPrefix($0) {
|
|
2420
|
-
return Prelude_Types_map_Functor_Maybe($3 => Prelude_Types_fastPack(Prelude_Types_List_reverse($3)),
|
|
2337
|
+
return Prelude_Types_map_Functor_Maybe($3 => Prelude_Types_fastPack(Prelude_Types_List_reverse($3)), Util_n__4476_1238_guardSuccess(Prelude_Types_foldl_Foldable_List($d => $e => Util_n__4476_1239_go($d, $e), Util_n__4476_1237_startOver(), Prelude_Types_fastUnpack($0))));
|
|
2421
2338
|
}
|
|
2422
2339
|
|
|
2423
2340
|
function Util_getManyLines($0, $1) {
|
|
2424
|
-
return
|
|
2341
|
+
return Util_n__4363_1128_getMoreLines($0, {h: 0}, $1);
|
|
2425
2342
|
}
|
|
2426
2343
|
|
|
2427
2344
|
function Text_PrettyPrint_Prettyprinter_Render_Terminal_n__4235_5087_writeOutput($0, $1, $2, $3) {
|
|
@@ -2435,7 +2352,7 @@ function Text_PrettyPrint_Prettyprinter_Render_Terminal_n__4235_5084_push($0, $1
|
|
|
2435
2352
|
function Text_PrettyPrint_Prettyprinter_Render_Terminal_n__4235_5086_pop($0, $1, $2) {
|
|
2436
2353
|
const $9 = $a => {
|
|
2437
2354
|
switch($a.h) {
|
|
2438
|
-
case undefined: return Prelude_Interfaces_x3ex3e(
|
|
2355
|
+
case undefined: return Prelude_Interfaces_x3ex3e(csegen_159(), $10 => ($1.value=$a.a2), () => $16 => ({a1: $a.a1}));
|
|
2439
2356
|
case 0: return $18 => ({h: 0});
|
|
2440
2357
|
}
|
|
2441
2358
|
};
|
|
@@ -2455,16 +2372,16 @@ function Text_PrettyPrint_Prettyprinter_Render_Terminal_n__4235_5085_peek($0, $1
|
|
|
2455
2372
|
function Text_PrettyPrint_Prettyprinter_Render_Terminal_n__4235_5088_go($0, $1, $2, $3) {
|
|
2456
2373
|
switch($3.h) {
|
|
2457
2374
|
case 0: return $5 => (undefined);
|
|
2458
|
-
case 1: return Prelude_Interfaces_x3ex3e(
|
|
2459
|
-
case 2: return Prelude_Interfaces_x3ex3e(
|
|
2460
|
-
case 3: return Prelude_Interfaces_x3ex3e(
|
|
2375
|
+
case 1: return Prelude_Interfaces_x3ex3e(csegen_159(), $a => Text_PrettyPrint_Prettyprinter_Render_Terminal_n__4235_5087_writeOutput($0, $2, Data_String_singleton($3.a1), $a), () => Text_PrettyPrint_Prettyprinter_Render_Terminal_n__4235_5088_go($0, $1, $2, $3.a2()));
|
|
2376
|
+
case 2: return Prelude_Interfaces_x3ex3e(csegen_159(), $1d => Text_PrettyPrint_Prettyprinter_Render_Terminal_n__4235_5087_writeOutput($0, $2, $3.a2, $1d), () => Text_PrettyPrint_Prettyprinter_Render_Terminal_n__4235_5088_go($0, $1, $2, $3.a3()));
|
|
2377
|
+
case 3: return Prelude_Interfaces_x3ex3e(csegen_159(), $2e => Text_PrettyPrint_Prettyprinter_Render_Terminal_n__4235_5087_writeOutput($0, $2, (Data_String_singleton('\n')+Text_PrettyPrint_Prettyprinter_Doc_textSpaces($3.a1)), $2e), () => Text_PrettyPrint_Prettyprinter_Render_Terminal_n__4235_5088_go($0, $1, $2, $3.a2));
|
|
2461
2378
|
case 4: {
|
|
2462
2379
|
return $40 => {
|
|
2463
2380
|
const $48 = $49 => {
|
|
2464
2381
|
switch($49.h) {
|
|
2465
2382
|
case undefined: {
|
|
2466
2383
|
const $4b = Prelude_Types_List_tailRecAppend($3.a1, $49.a1);
|
|
2467
|
-
return Prelude_Interfaces_x3ex3e(
|
|
2384
|
+
return Prelude_Interfaces_x3ex3e(csegen_159(), $53 => Text_PrettyPrint_Prettyprinter_Render_Terminal_n__4235_5084_push($0, $1, $4b, $53), () => Prelude_Interfaces_x3ex3e(csegen_159(), $5e => Text_PrettyPrint_Prettyprinter_Render_Terminal_n__4235_5087_writeOutput($0, $2, Control_ANSI_SGR_escapeSGR($4b), $5e), () => Text_PrettyPrint_Prettyprinter_Render_Terminal_n__4235_5088_go($0, $1, $2, $3.a2)));
|
|
2468
2385
|
}
|
|
2469
2386
|
case 0: return $6c => ($1.value={h: 0});
|
|
2470
2387
|
}
|
|
@@ -2477,7 +2394,7 @@ function Text_PrettyPrint_Prettyprinter_Render_Terminal_n__4235_5088_go($0, $1,
|
|
|
2477
2394
|
const $7a = _ => $7b => {
|
|
2478
2395
|
const $83 = $84 => {
|
|
2479
2396
|
switch($84.h) {
|
|
2480
|
-
case undefined: return Prelude_Interfaces_x3ex3e(
|
|
2397
|
+
case undefined: return Prelude_Interfaces_x3ex3e(csegen_159(), $8a => Text_PrettyPrint_Prettyprinter_Render_Terminal_n__4235_5087_writeOutput($0, $2, Control_ANSI_SGR_escapeSGR({a1: {h: 0}, a2: $84.a1}), $8a), () => Text_PrettyPrint_Prettyprinter_Render_Terminal_n__4235_5088_go($0, $1, $2, $3.a1));
|
|
2481
2398
|
case 0: return $9a => ($1.value={h: 0});
|
|
2482
2399
|
}
|
|
2483
2400
|
};
|
|
@@ -2494,7 +2411,7 @@ const Text_PrettyPrint_Prettyprinter_Render_Terminal_underline = __lazy(function
|
|
|
2494
2411
|
});
|
|
2495
2412
|
|
|
2496
2413
|
function Text_PrettyPrint_Prettyprinter_Render_Terminal_renderString($0) {
|
|
2497
|
-
return Data_Maybe_fromMaybe(() => '<internal pretty printing error>', Control_Monad_ST_runST($6 => $7 => Control_Monad_ST_x3ex3ex3d_Monad_x28STx20x24sx29($a => Control_Monad_ST_newSTRef({a1: {h: 0}, a2: {h: 0}}, $a), styleStackRef => $11 => Control_Monad_ST_x3ex3ex3d_Monad_x28STx20x24sx29($14 => Control_Monad_ST_newSTRef('', $14), outputRef => Prelude_Interfaces_x3ex3e(
|
|
2414
|
+
return Data_Maybe_fromMaybe(() => '<internal pretty printing error>', Control_Monad_ST_runST($6 => $7 => Control_Monad_ST_x3ex3ex3d_Monad_x28STx20x24sx29($a => Control_Monad_ST_newSTRef({a1: {h: 0}, a2: {h: 0}}, $a), styleStackRef => $11 => Control_Monad_ST_x3ex3ex3d_Monad_x28STx20x24sx29($14 => Control_Monad_ST_newSTRef('', $14), outputRef => Prelude_Interfaces_x3ex3e(csegen_159(), Text_PrettyPrint_Prettyprinter_Render_Terminal_n__4235_5088_go($0, styleStackRef, outputRef, $0), () => $23 => {
|
|
2498
2415
|
const $2a = $2b => {
|
|
2499
2416
|
switch($2b.h) {
|
|
2500
2417
|
case 0: return $2d => ({h: 0});
|
|
@@ -2738,7 +2655,7 @@ function Text_PrettyPrint_Prettyprinter_Doc_hsep($0) {
|
|
|
2738
2655
|
}
|
|
2739
2656
|
|
|
2740
2657
|
function Text_PrettyPrint_Prettyprinter_Doc_hcat($0) {
|
|
2741
|
-
return Text_PrettyPrint_Prettyprinter_Doc_concatWith(
|
|
2658
|
+
return Text_PrettyPrint_Prettyprinter_Doc_concatWith(csegen_172(), $0);
|
|
2742
2659
|
}
|
|
2743
2660
|
|
|
2744
2661
|
function Text_PrettyPrint_Prettyprinter_Doc_hang($0, $1) {
|
|
@@ -2783,10 +2700,10 @@ function Text_PrettyPrint_Prettyprinter_Doc_encloseSep($0, $1, $2, $3) {
|
|
|
2783
2700
|
case undefined: {
|
|
2784
2701
|
switch($3.a2.h) {
|
|
2785
2702
|
case 0: return Text_PrettyPrint_Prettyprinter_Doc_x3cx2bx3e_Semigroup_x28Docx20x24annx29(Text_PrettyPrint_Prettyprinter_Doc_x3cx2bx3e_Semigroup_x28Docx20x24annx29($0, $3.a1), $1);
|
|
2786
|
-
default: return Text_PrettyPrint_Prettyprinter_Doc_x3cx2bx3e_Semigroup_x28Docx20x24annx29(Text_PrettyPrint_Prettyprinter_Doc_cat(Data_List_zipWith_Zippable_List(
|
|
2703
|
+
default: return Text_PrettyPrint_Prettyprinter_Doc_x3cx2bx3e_Semigroup_x28Docx20x24annx29(Text_PrettyPrint_Prettyprinter_Doc_cat(Data_List_zipWith_Zippable_List(csegen_172(), {a1: $0, a2: Data_List_replicate(Prelude_Types_prim__integerToNat((Prelude_Types_List_lengthTR($3)-1n)), $2)}, $3)), $1);
|
|
2787
2704
|
}
|
|
2788
2705
|
}
|
|
2789
|
-
default: return Text_PrettyPrint_Prettyprinter_Doc_x3cx2bx3e_Semigroup_x28Docx20x24annx29(Text_PrettyPrint_Prettyprinter_Doc_cat(Data_List_zipWith_Zippable_List(
|
|
2706
|
+
default: return Text_PrettyPrint_Prettyprinter_Doc_x3cx2bx3e_Semigroup_x28Docx20x24annx29(Text_PrettyPrint_Prettyprinter_Doc_cat(Data_List_zipWith_Zippable_List(csegen_172(), {a1: $0, a2: Data_List_replicate(Prelude_Types_prim__integerToNat((Prelude_Types_List_lengthTR($3)-1n)), $2)}, $3)), $1);
|
|
2790
2707
|
}
|
|
2791
2708
|
}
|
|
2792
2709
|
|
|
@@ -3013,11 +2930,11 @@ function Data_String_lines($0) {
|
|
|
3013
2930
|
}
|
|
3014
2931
|
|
|
3015
2932
|
function Data_String_isSuffixOf($0, $1) {
|
|
3016
|
-
return Data_List_isSuffixOf(
|
|
2933
|
+
return Data_List_isSuffixOf(csegen_176(), Prelude_Types_fastUnpack($0), Prelude_Types_fastUnpack($1));
|
|
3017
2934
|
}
|
|
3018
2935
|
|
|
3019
2936
|
function Data_String_isPrefixOf($0, $1) {
|
|
3020
|
-
return Data_List_isPrefixOf(
|
|
2937
|
+
return Data_List_isPrefixOf(csegen_176(), Prelude_Types_fastUnpack($0), Prelude_Types_fastUnpack($1));
|
|
3021
2938
|
}
|
|
3022
2939
|
|
|
3023
2940
|
function Data_String_indent($0, $1) {
|
|
@@ -3122,7 +3039,7 @@ function Prelude_Types_n__9361_8543_hexChars($0) {
|
|
|
3122
3039
|
function Prelude_Types_traverse_Traversable_List($0, $1, $2) {
|
|
3123
3040
|
switch($2.h) {
|
|
3124
3041
|
case 0: return $0.a2(undefined)({h: 0});
|
|
3125
|
-
case undefined: return $0.a3(undefined)(undefined)($0.a3(undefined)(undefined)($0.a2(undefined)(
|
|
3042
|
+
case undefined: return $0.a3(undefined)(undefined)($0.a3(undefined)(undefined)($0.a2(undefined)(csegen_192()))($1($2.a1)))(Prelude_Types_traverse_Traversable_List($0, $1, $2.a2));
|
|
3126
3043
|
}
|
|
3127
3044
|
}
|
|
3128
3045
|
|
|
@@ -3134,11 +3051,11 @@ function Prelude_Types_traverse_Traversable_x28Eitherx20x24ex29($0, $1, $2) {
|
|
|
3134
3051
|
}
|
|
3135
3052
|
|
|
3136
3053
|
function Prelude_Types_toList_Foldable_Maybe($0) {
|
|
3137
|
-
return Prelude_Types_foldr_Foldable_Maybe(
|
|
3054
|
+
return Prelude_Types_foldr_Foldable_Maybe(csegen_192(), {h: 0}, $0);
|
|
3138
3055
|
}
|
|
3139
3056
|
|
|
3140
3057
|
function Prelude_Types_toList_Foldable_x28Eitherx20x24ex29($0) {
|
|
3141
|
-
return Prelude_Types_foldr_Foldable_x28Eitherx20x24ex29(
|
|
3058
|
+
return Prelude_Types_foldr_Foldable_x28Eitherx20x24ex29(csegen_192(), {h: 0}, $0);
|
|
3142
3059
|
}
|
|
3143
3060
|
|
|
3144
3061
|
function Prelude_Types_rangeFromTo_Range_x24a($0, $1, $2) {
|
|
@@ -3257,7 +3174,7 @@ function Prelude_Types_foldr_Foldable_x28Eitherx20x24ex29($0, $1, $2) {
|
|
|
3257
3174
|
}
|
|
3258
3175
|
|
|
3259
3176
|
function Prelude_Types_foldl_Foldable_x28Eitherx20x24ex29($0, $1, $2) {
|
|
3260
|
-
return Prelude_Types_foldr_Foldable_x28Eitherx20x24ex29($6 => $7 => Prelude_Basics_flip(
|
|
3177
|
+
return Prelude_Types_foldr_Foldable_x28Eitherx20x24ex29($6 => $7 => Prelude_Basics_flip(csegen_193(), $c => Prelude_Basics_flip($0, $6, $c), $7), $13 => $13, $2)($1);
|
|
3261
3178
|
}
|
|
3262
3179
|
|
|
3263
3180
|
function Prelude_Types_foldlM_Foldable_List($0, $1, $2, $3) {
|
|
@@ -3466,7 +3383,7 @@ function Prelude_Types_isLower($0) {
|
|
|
3466
3383
|
}
|
|
3467
3384
|
|
|
3468
3385
|
function Prelude_Types_isHexDigit($0) {
|
|
3469
|
-
return Prelude_Types_elem(csegen_77(),
|
|
3386
|
+
return Prelude_Types_elem(csegen_77(), csegen_176(), Prelude_Types_toUpper($0), Prelude_Types_n__9361_8543_hexChars($0));
|
|
3470
3387
|
}
|
|
3471
3388
|
|
|
3472
3389
|
function Prelude_Types_isDigit($0) {
|
|
@@ -3890,10 +3807,6 @@ function Prelude_Interfaces_when($0, $1, $2) {
|
|
|
3890
3807
|
}
|
|
3891
3808
|
}
|
|
3892
3809
|
|
|
3893
|
-
function Prelude_Interfaces_traverse_($0, $1, $2, $3) {
|
|
3894
|
-
return $1.a1(undefined)(undefined)($d => $e => Prelude_Interfaces_x2ax3e($0, $2($d), $e))($0.a2(undefined)(undefined))($3);
|
|
3895
|
-
}
|
|
3896
|
-
|
|
3897
3810
|
function Prelude_Interfaces_mapHom($0, $1, $2) {
|
|
3898
3811
|
return $0.a1(undefined)(undefined)(undefined)(undefined)($1)($1)($2);
|
|
3899
3812
|
}
|
|
@@ -4862,8 +4775,8 @@ function Data_Config_parseConfig($0, $1) {
|
|
|
4862
4775
|
}
|
|
4863
4776
|
};
|
|
4864
4777
|
const $4 = {a1: $5, a2: a => $d => ({h: 1, a1: $d}), a3: $f};
|
|
4865
|
-
const $3 = {a1: $4, a2:
|
|
4866
|
-
return Prelude_Interfaces_x3ex3dx3e($3,
|
|
4778
|
+
const $3 = {a1: $4, a2: csegen_244(), a3: csegen_245()};
|
|
4779
|
+
return Prelude_Interfaces_x3ex3dx3e($3, csegen_246(), $20 => Data_Config_n__5186_7922_parseConfigJson($0, $20), $1);
|
|
4867
4780
|
}
|
|
4868
4781
|
|
|
4869
4782
|
function Data_Config_json($0) {
|
|
@@ -4991,17 +4904,17 @@ function Text_Bounded_mergeBounds($0, $1) {
|
|
|
4991
4904
|
switch($1.h) {
|
|
4992
4905
|
case undefined: {
|
|
4993
4906
|
switch($1.a2) {
|
|
4994
|
-
case 1: return Prelude_Interfaces_x3cx24x3e(
|
|
4907
|
+
case 1: return Prelude_Interfaces_x3cx24x3e(csegen_249(), $e => $1.a1, $0);
|
|
4995
4908
|
default: {
|
|
4996
|
-
const $10 = Prelude_EqOrd_min_Ord_x28x7cx28x28Builtinx2ePairx20x24ax29x20x24bx29x2cx28x28Builtinx2eMkPairx20x24ax29x20x24bx29x7cx29(
|
|
4997
|
-
const $1c = Prelude_EqOrd_max_Ord_x28x7cx28x28Builtinx2ePairx20x24ax29x20x24bx29x2cx28x28Builtinx2eMkPairx20x24ax29x20x24bx29x7cx29(
|
|
4909
|
+
const $10 = Prelude_EqOrd_min_Ord_x28x7cx28x28Builtinx2ePairx20x24ax29x20x24bx29x2cx28x28Builtinx2eMkPairx20x24ax29x20x24bx29x7cx29(csegen_260(), csegen_260(), Text_Bounded_start($0), Text_Bounded_start($1));
|
|
4910
|
+
const $1c = Prelude_EqOrd_max_Ord_x28x7cx28x28Builtinx2ePairx20x24ax29x20x24bx29x2cx28x28Builtinx2eMkPairx20x24ax29x20x24bx29x7cx29(csegen_260(), csegen_260(), Text_Bounded_end($0), Text_Bounded_end($1));
|
|
4998
4911
|
return {a1: $1.a1, a2: 0, a3: {a1: $10.a1, a2: $10.a2, a3: $1c.a1, a4: $1c.a2}};
|
|
4999
4912
|
}
|
|
5000
4913
|
}
|
|
5001
4914
|
}
|
|
5002
4915
|
default: {
|
|
5003
|
-
const $30 = Prelude_EqOrd_min_Ord_x28x7cx28x28Builtinx2ePairx20x24ax29x20x24bx29x2cx28x28Builtinx2eMkPairx20x24ax29x20x24bx29x7cx29(
|
|
5004
|
-
const $3c = Prelude_EqOrd_max_Ord_x28x7cx28x28Builtinx2ePairx20x24ax29x20x24bx29x2cx28x28Builtinx2eMkPairx20x24ax29x20x24bx29x7cx29(
|
|
4916
|
+
const $30 = Prelude_EqOrd_min_Ord_x28x7cx28x28Builtinx2ePairx20x24ax29x20x24bx29x2cx28x28Builtinx2eMkPairx20x24ax29x20x24bx29x7cx29(csegen_260(), csegen_260(), Text_Bounded_start($0), Text_Bounded_start($1));
|
|
4917
|
+
const $3c = Prelude_EqOrd_max_Ord_x28x7cx28x28Builtinx2ePairx20x24ax29x20x24bx29x2cx28x28Builtinx2eMkPairx20x24ax29x20x24bx29x7cx29(csegen_260(), csegen_260(), Text_Bounded_end($0), Text_Bounded_end($1));
|
|
5005
4918
|
return {a1: $1.a1, a2: 0, a3: {a1: $30.a1, a2: $30.a2, a3: $3c.a1, a4: $3c.a2}};
|
|
5006
4919
|
}
|
|
5007
4920
|
}
|
|
@@ -5012,17 +4925,17 @@ function Text_Bounded_mergeBounds($0, $1) {
|
|
|
5012
4925
|
switch($1.h) {
|
|
5013
4926
|
case undefined: {
|
|
5014
4927
|
switch($1.a2) {
|
|
5015
|
-
case 1: return Prelude_Interfaces_x3cx24x3e(
|
|
4928
|
+
case 1: return Prelude_Interfaces_x3cx24x3e(csegen_249(), $56 => $1.a1, $0);
|
|
5016
4929
|
default: {
|
|
5017
|
-
const $58 = Prelude_EqOrd_min_Ord_x28x7cx28x28Builtinx2ePairx20x24ax29x20x24bx29x2cx28x28Builtinx2eMkPairx20x24ax29x20x24bx29x7cx29(
|
|
5018
|
-
const $64 = Prelude_EqOrd_max_Ord_x28x7cx28x28Builtinx2ePairx20x24ax29x20x24bx29x2cx28x28Builtinx2eMkPairx20x24ax29x20x24bx29x7cx29(
|
|
4930
|
+
const $58 = Prelude_EqOrd_min_Ord_x28x7cx28x28Builtinx2ePairx20x24ax29x20x24bx29x2cx28x28Builtinx2eMkPairx20x24ax29x20x24bx29x7cx29(csegen_260(), csegen_260(), Text_Bounded_start($0), Text_Bounded_start($1));
|
|
4931
|
+
const $64 = Prelude_EqOrd_max_Ord_x28x7cx28x28Builtinx2ePairx20x24ax29x20x24bx29x2cx28x28Builtinx2eMkPairx20x24ax29x20x24bx29x7cx29(csegen_260(), csegen_260(), Text_Bounded_end($0), Text_Bounded_end($1));
|
|
5019
4932
|
return {a1: $1.a1, a2: 0, a3: {a1: $58.a1, a2: $58.a2, a3: $64.a1, a4: $64.a2}};
|
|
5020
4933
|
}
|
|
5021
4934
|
}
|
|
5022
4935
|
}
|
|
5023
4936
|
default: {
|
|
5024
|
-
const $78 = Prelude_EqOrd_min_Ord_x28x7cx28x28Builtinx2ePairx20x24ax29x20x24bx29x2cx28x28Builtinx2eMkPairx20x24ax29x20x24bx29x7cx29(
|
|
5025
|
-
const $84 = Prelude_EqOrd_max_Ord_x28x7cx28x28Builtinx2ePairx20x24ax29x20x24bx29x2cx28x28Builtinx2eMkPairx20x24ax29x20x24bx29x7cx29(
|
|
4937
|
+
const $78 = Prelude_EqOrd_min_Ord_x28x7cx28x28Builtinx2ePairx20x24ax29x20x24bx29x2cx28x28Builtinx2eMkPairx20x24ax29x20x24bx29x7cx29(csegen_260(), csegen_260(), Text_Bounded_start($0), Text_Bounded_start($1));
|
|
4938
|
+
const $84 = Prelude_EqOrd_max_Ord_x28x7cx28x28Builtinx2ePairx20x24ax29x20x24bx29x2cx28x28Builtinx2eMkPairx20x24ax29x20x24bx29x7cx29(csegen_260(), csegen_260(), Text_Bounded_end($0), Text_Bounded_end($1));
|
|
5026
4939
|
return {a1: $1.a1, a2: 0, a3: {a1: $78.a1, a2: $78.a2, a3: $84.a1, a4: $84.a2}};
|
|
5027
4940
|
}
|
|
5028
4941
|
}
|
|
@@ -5241,7 +5154,7 @@ const Language_JSON_Parser_string = __lazy(function () {
|
|
|
5241
5154
|
});
|
|
5242
5155
|
|
|
5243
5156
|
const Language_JSON_Parser_rawString = __lazy(function () {
|
|
5244
|
-
return {h: 8, a1: 0, a2: Text_Parser_match(
|
|
5157
|
+
return {h: 8, a1: 0, a2: Text_Parser_match(csegen_268(), csegen_271(), {h: 2}), a3: () => mstr => {
|
|
5245
5158
|
switch(mstr.h) {
|
|
5246
5159
|
case undefined: return {h: 0, a1: mstr.a1};
|
|
5247
5160
|
case 0: return {h: 4, a1: {h: 0}, a2: 0, a3: 'invalid string'};
|
|
@@ -5250,7 +5163,7 @@ const Language_JSON_Parser_rawString = __lazy(function () {
|
|
|
5250
5163
|
});
|
|
5251
5164
|
|
|
5252
5165
|
function Language_JSON_Parser_punct($0) {
|
|
5253
|
-
return Text_Parser_match(
|
|
5166
|
+
return Text_Parser_match(csegen_268(), csegen_271(), {h: 4, a1: $0});
|
|
5254
5167
|
}
|
|
5255
5168
|
|
|
5256
5169
|
function Language_JSON_Parser_parseJSON($0) {
|
|
@@ -5283,11 +5196,11 @@ const Language_JSON_Parser_object = __lazy(function () {
|
|
|
5283
5196
|
});
|
|
5284
5197
|
|
|
5285
5198
|
const Language_JSON_Parser_number = __lazy(function () {
|
|
5286
|
-
return Text_Parser_Core_map_Functor_x28x28x28Grammarx20x24statex29x20x24tokx29x20x24cx29(1, $3 => ({h: 2, a1: $3}), Text_Parser_match(
|
|
5199
|
+
return Text_Parser_Core_map_Functor_x28x28x28Grammarx20x24statex29x20x24tokx29x20x24cx29(1, $3 => ({h: 2, a1: $3}), Text_Parser_match(csegen_268(), csegen_271(), {h: 1}));
|
|
5287
5200
|
});
|
|
5288
5201
|
|
|
5289
5202
|
const Language_JSON_Parser_null = __lazy(function () {
|
|
5290
|
-
return Text_Parser_Core_map_Functor_x28x28x28Grammarx20x24statex29x20x24tokx29x20x24cx29(1, $3 => ({h: 0}), Text_Parser_match(
|
|
5203
|
+
return Text_Parser_Core_map_Functor_x28x28x28Grammarx20x24statex29x20x24tokx29x20x24cx29(1, $3 => ({h: 0}), Text_Parser_match(csegen_268(), csegen_271(), {h: 3}));
|
|
5291
5204
|
});
|
|
5292
5205
|
|
|
5293
5206
|
const Language_JSON_Parser_json = __lazy(function () {
|
|
@@ -5295,7 +5208,7 @@ const Language_JSON_Parser_json = __lazy(function () {
|
|
|
5295
5208
|
});
|
|
5296
5209
|
|
|
5297
5210
|
const Language_JSON_Parser_boolean = __lazy(function () {
|
|
5298
|
-
return Text_Parser_Core_map_Functor_x28x28x28Grammarx20x24statex29x20x24tokx29x20x24cx29(1, $3 => ({h: 1, a1: $3}), Text_Parser_match(
|
|
5211
|
+
return Text_Parser_Core_map_Functor_x28x28x28Grammarx20x24statex29x20x24tokx29x20x24cx29(1, $3 => ({h: 1, a1: $3}), Text_Parser_match(csegen_268(), csegen_271(), {h: 0}));
|
|
5299
5212
|
});
|
|
5300
5213
|
|
|
5301
5214
|
const Language_JSON_Parser_array = __lazy(function () {
|
|
@@ -5471,7 +5384,7 @@ function Text_Lexer_opt($0) {
|
|
|
5471
5384
|
}
|
|
5472
5385
|
|
|
5473
5386
|
function Text_Lexer_oneOf($0) {
|
|
5474
|
-
return Text_Lexer_Core_pred(x => Prelude_Types_elem(csegen_77(),
|
|
5387
|
+
return Text_Lexer_Core_pred(x => Prelude_Types_elem(csegen_77(), csegen_176(), x, Prelude_Types_fastUnpack($0)));
|
|
5475
5388
|
}
|
|
5476
5389
|
|
|
5477
5390
|
function Text_Lexer_non($0) {
|
|
@@ -5748,11 +5661,11 @@ function Language_JSON_String_Tokens_charValue($0) {
|
|
|
5748
5661
|
}
|
|
5749
5662
|
|
|
5750
5663
|
const Language_JSON_String_Parser_stringChar = __lazy(function () {
|
|
5751
|
-
return {h: 12, a1: 1, a2: 1, a3: Text_Parser_match(
|
|
5664
|
+
return {h: 12, a1: 1, a2: 1, a3: Text_Parser_match(csegen_307(), csegen_310(), 1), a4: () => ({h: 12, a1: 1, a2: 1, a3: Text_Parser_match(csegen_307(), csegen_310(), 2), a4: () => Text_Parser_match(csegen_307(), csegen_310(), 3)})};
|
|
5752
5665
|
});
|
|
5753
5666
|
|
|
5754
5667
|
const Language_JSON_String_Parser_quotedString = __lazy(function () {
|
|
5755
|
-
const $0 = Text_Parser_match(
|
|
5668
|
+
const $0 = Text_Parser_match(csegen_307(), csegen_310(), 0);
|
|
5756
5669
|
return {h: 8, a1: 0, a2: Text_Parser_between(0, $0, $0, Text_Parser_many(Language_JSON_String_Parser_stringChar())), a3: () => chars => ({h: 11, a1: 0, a2: 0, a3: {h: 3}, a4: {h: 0, a1: Prelude_Types_fastPack(chars)}})};
|
|
5757
5670
|
});
|
|
5758
5671
|
|
|
@@ -5814,7 +5727,7 @@ function Text_Parser_between($0, $1, $2, $3) {
|
|
|
5814
5727
|
function Text_Parser_Core_case__doParse_5194($0, $1, $2, $3, $4, $5) {
|
|
5815
5728
|
switch($5.h) {
|
|
5816
5729
|
case 0: return {h: 0, a1: $5.a1, a2: $5.a2, a3: $5.a3};
|
|
5817
|
-
case 1: return {h: 1, a1: $5.a1, a2: $5.a2, a3: Prelude_Interfaces_x3cx24x3e(
|
|
5730
|
+
case 1: return {h: 1, a1: $5.a1, a2: $5.a2, a3: Prelude_Interfaces_x3cx24x3e(csegen_326(), $11 => $5.a3, $5.a3), a4: $5.a4};
|
|
5818
5731
|
}
|
|
5819
5732
|
}
|
|
5820
5733
|
|
|
@@ -6238,12 +6151,12 @@ function Text_Parser_Core_doParse($0, $1, $2, $3, $4) {
|
|
|
6238
6151
|
case 7: return Text_Parser_Core_case__doParse_4048($0, $1, $3.a1, $4, $2, Text_Parser_Core_doParse($0, $1, $2, $3.a1, $4));
|
|
6239
6152
|
case 1: {
|
|
6240
6153
|
switch($4.h) {
|
|
6241
|
-
case 0: return {h: 0, a1: $2, a2: 0, a3:
|
|
6154
|
+
case 0: return {h: 0, a1: $2, a2: 0, a3: csegen_328()};
|
|
6242
6155
|
case undefined: {
|
|
6243
6156
|
const $44 = $3.a2($4.a1.a1);
|
|
6244
6157
|
switch($44.h) {
|
|
6245
6158
|
case 0: return {h: 0, a1: $2, a2: 0, a3: {a1: {a1: $3.a1, a2: {a1: $4.a1.a3}}, a2: {h: 0}}};
|
|
6246
|
-
case undefined: return {h: 1, a1: $1, a2: $2, a3: Prelude_Interfaces_x3cx24x3e(
|
|
6159
|
+
case undefined: return {h: 1, a1: $1, a2: $2, a3: Prelude_Interfaces_x3cx24x3e(csegen_326(), $58 => $44.a1, $4.a1), a4: $4.a2};
|
|
6247
6160
|
}
|
|
6248
6161
|
}
|
|
6249
6162
|
}
|
|
@@ -6256,7 +6169,7 @@ function Text_Parser_Core_doParse($0, $1, $2, $3, $4) {
|
|
|
6256
6169
|
}
|
|
6257
6170
|
case 2: {
|
|
6258
6171
|
switch($4.h) {
|
|
6259
|
-
case 0: return {h: 0, a1: $2, a2: 0, a3:
|
|
6172
|
+
case 0: return {h: 0, a1: $2, a2: 0, a3: csegen_328()};
|
|
6260
6173
|
case undefined: {
|
|
6261
6174
|
switch($3.a2($4.a1.a1)) {
|
|
6262
6175
|
case 1: return {h: 1, a1: $1, a2: $2, a3: Text_Bounded_removeIrrelevance($4.a1), a4: {a1: $4.a1, a2: $4.a2}};
|
|
@@ -6285,7 +6198,7 @@ function Text_Parser_Core_doParse($0, $1, $2, $3, $4) {
|
|
|
6285
6198
|
case 13: return Text_Parser_Core_case__doParse_5194($0, $1, $3.a1, $4, $2, Text_Parser_Core_doParse($0, $1, $2, $3.a1, $4));
|
|
6286
6199
|
case 14: {
|
|
6287
6200
|
switch($4.h) {
|
|
6288
|
-
case 0: return {h: 0, a1: $2, a2: 0, a3:
|
|
6201
|
+
case 0: return {h: 0, a1: $2, a2: 0, a3: csegen_328()};
|
|
6289
6202
|
case undefined: return {h: 1, a1: $1, a2: $2, a3: Text_Bounded_irrelevantBounds($4.a1.a3), a4: {a1: $4.a1, a2: $4.a2}};
|
|
6290
6203
|
}
|
|
6291
6204
|
}
|
|
@@ -6391,7 +6304,7 @@ function Decidable_Equality_decEq_DecEq_FromEqx24a($0, $1, $2) {
|
|
|
6391
6304
|
}
|
|
6392
6305
|
|
|
6393
6306
|
function Decidable_Equality_decEq_DecEq_Char($0, $1) {
|
|
6394
|
-
return Decidable_Equality_decEq_DecEq_FromEqx24a(
|
|
6307
|
+
return Decidable_Equality_decEq_DecEq_FromEqx24a(csegen_176(), $0, $1);
|
|
6395
6308
|
}
|
|
6396
6309
|
|
|
6397
6310
|
function Data_Either_maybeToEither($0, $1) {
|
|
@@ -6401,6 +6314,137 @@ function Data_Either_maybeToEither($0, $1) {
|
|
|
6401
6314
|
}
|
|
6402
6315
|
}
|
|
6403
6316
|
|
|
6317
|
+
function User_Reflect_case__casex20blockx20inx20reflectOnSelf_2298($0, $1, $2, $3, $4, $5, $6, $7, $8, $9) {
|
|
6318
|
+
const $b = Prelude_Interfaces_mapHom({a1: d => b => c => a => $f => $10 => $11 => ({a1: $f($11.a1), a2: $10($11.a2)}), a2: b => c => a => $1a => $1b => ({a1: $1a($1b.a1), a2: $1b.a2}), a3: a => d => b => $22 => $23 => ({a1: $23.a1, a2: $22($23.a2)})}, $2a => Data_List_headx27(Data_List_sort({a1: {a1: $31 => $32 => Data_Date_x3dx3d_Eq_Date($31, $32), a2: $37 => $38 => Data_Date_x2fx3d_Eq_Date($37, $38)}, a2: $3d => $3e => Data_Date_compare_Ord_Date($3d, $3e), a3: $43 => $44 => Data_Date_x3c_Ord_Date($43, $44), a4: $49 => $4a => Data_Date_x3e_Ord_Date($49, $4a), a5: $4f => $50 => Data_Date_x3cx3d_Ord_Date($4f, $50), a6: $55 => $56 => Data_Date_x3ex3d_Ord_Date($55, $56), a7: $5b => $5c => Data_Date_max_Ord_Date($5b, $5c), a8: $61 => $62 => Data_Date_min_Ord_Date($61, $62)}, Prelude_Types_map_Functor_List(csegen_380(), $2a))), {a1: $7, a2: $9.a1});
|
|
6319
|
+
return Util_renderIO($0, csegen_21(), User_Reflect_print(Prelude_Types_String_length(User_Reflect_intro()), Prelude_Types_List_lengthTR($4), Prelude_Types_List_lengthTR($9.a1), Prelude_Types_List_lengthTR($9.a2), Prelude_Types_List_lengthTR($8), Prelude_Types_List_lengthTR($7), $5, $b.a1, $b.a2));
|
|
6320
|
+
}
|
|
6321
|
+
|
|
6322
|
+
function User_Me_n__6251_2415_ul($0, $1, $2, $3) {
|
|
6323
|
+
return Text_PrettyPrint_Prettyprinter_Doc_annotate(Text_PrettyPrint_Prettyprinter_Render_Terminal_underline(), Text_PrettyPrint_Prettyprinter_Doc_pretty_Pretty_String($3));
|
|
6324
|
+
}
|
|
6325
|
+
|
|
6326
|
+
function User_Me_n__6251_2421_teams($0, $1, $2) {
|
|
6327
|
+
return Text_PrettyPrint_Prettyprinter_Doc_vsep({a1: User_Me_n__6251_2415_ul($0, $1, $2, 'GitHub Teams:'), a2: Prelude_Types_map_Functor_List($e => User_Me_n__6251_2416_it($0, $1, $2, $e), $0)});
|
|
6328
|
+
}
|
|
6329
|
+
|
|
6330
|
+
function User_Me_n__6251_2420_login($0, $1, $2) {
|
|
6331
|
+
return Text_PrettyPrint_Prettyprinter_Doc_x3cx2bx2bx3e(Text_PrettyPrint_Prettyprinter_Doc_pretty_Pretty_String('GitHub Login:'), User_Me_n__6251_2417_green($0, $1, $2, $1.a1));
|
|
6332
|
+
}
|
|
6333
|
+
|
|
6334
|
+
function User_Reflect_n__5344_1492_ital($0, $1) {
|
|
6335
|
+
return Text_PrettyPrint_Prettyprinter_Doc_annotate(Text_PrettyPrint_Prettyprinter_Render_Terminal_italic(), Text_PrettyPrint_Prettyprinter_Doc_pretty_Pretty_String($1));
|
|
6336
|
+
}
|
|
6337
|
+
|
|
6338
|
+
function User_Me_n__6251_2416_it($0, $1, $2, $3) {
|
|
6339
|
+
return Text_PrettyPrint_Prettyprinter_Doc_annotate(Text_PrettyPrint_Prettyprinter_Render_Terminal_italic(), Text_PrettyPrint_Prettyprinter_Doc_pretty_Pretty_String($3));
|
|
6340
|
+
}
|
|
6341
|
+
|
|
6342
|
+
function User_Me_n__6391_2571_handleUnsetEmail($0, $1, $2, $3) {
|
|
6343
|
+
switch($3) {
|
|
6344
|
+
case '': return {h: 0};
|
|
6345
|
+
default: return {a1: $3};
|
|
6346
|
+
}
|
|
6347
|
+
}
|
|
6348
|
+
|
|
6349
|
+
function User_Me_n__6251_2417_green($0, $1, $2, $3) {
|
|
6350
|
+
return Text_PrettyPrint_Prettyprinter_Doc_annotate(Text_PrettyPrint_Prettyprinter_Render_Terminal_color(2), Text_PrettyPrint_Prettyprinter_Doc_pretty_Pretty_String($3));
|
|
6351
|
+
}
|
|
6352
|
+
|
|
6353
|
+
function User_Me_n__6251_2419_fullName($0, $1, $2) {
|
|
6354
|
+
return Text_PrettyPrint_Prettyprinter_Doc_x3cx2bx2bx3e(Text_PrettyPrint_Prettyprinter_Doc_pretty_Pretty_String('GitHub Name:'), User_Me_n__6251_2417_green($0, $1, $2, $1.a2));
|
|
6355
|
+
}
|
|
6356
|
+
|
|
6357
|
+
function User_Me_n__6251_2418_email($0, $1, $2) {
|
|
6358
|
+
let $7;
|
|
6359
|
+
switch($2.h) {
|
|
6360
|
+
case undefined: {
|
|
6361
|
+
$7 = User_Me_n__6251_2417_green($0, $1, $2, $2.a1);
|
|
6362
|
+
break;
|
|
6363
|
+
}
|
|
6364
|
+
case 0: {
|
|
6365
|
+
$7 = User_Me_n__6251_2416_it($0, $1, $2, 'Not set');
|
|
6366
|
+
break;
|
|
6367
|
+
}
|
|
6368
|
+
}
|
|
6369
|
+
return Text_PrettyPrint_Prettyprinter_Doc_x3cx2bx2bx3e(Text_PrettyPrint_Prettyprinter_Doc_pretty_Pretty_String('Git Email:'), $7);
|
|
6370
|
+
}
|
|
6371
|
+
|
|
6372
|
+
const User_Reflect_rightTitle = __lazy(function () {
|
|
6373
|
+
return 'authored';
|
|
6374
|
+
});
|
|
6375
|
+
|
|
6376
|
+
const User_Reflect_reviewDetailsCount = __lazy(function () {
|
|
6377
|
+
return 25n;
|
|
6378
|
+
});
|
|
6379
|
+
|
|
6380
|
+
function User_replicatex27($0, $1, $2) {
|
|
6381
|
+
return Text_PrettyPrint_Prettyprinter_Doc_annotate(Text_PrettyPrint_Prettyprinter_Render_Terminal_color($0), Text_PrettyPrint_Prettyprinter_Doc_pretty_Pretty_String(Data_String_replicate($1, $2)));
|
|
6382
|
+
}
|
|
6383
|
+
|
|
6384
|
+
function User_Reflect_reflectOnSelf($0, $1, $2, $3) {
|
|
6385
|
+
const $c = prs => $d => $e => {
|
|
6386
|
+
const $19 = myLogin => $1a => $1b => {
|
|
6387
|
+
const $37 = reviews => {
|
|
6388
|
+
const $38 = Prelude_Types_map_Functor_Maybe(csegen_383(), Data_List_headx27(Data_List_sortBy($41 => $42 => Prelude_Basics_on(csegen_141(), csegen_383(), $41, $42), reviews)));
|
|
6389
|
+
const $4b = PullRequest_tuple(prs);
|
|
6390
|
+
const $4e = Prelude_Interfaces_mapHom({a1: d => b => c => a => $52 => $53 => $54 => ({a1: $52($54.a1), a2: $53($54.a2)}), a2: b => c => a => $5d => $5e => ({a1: $5d($5e.a1), a2: $5e.a2}), a3: a => d => b => $65 => $66 => ({a1: $66.a1, a2: $65($66.a2)})}, $6d => Prelude_Types_List_filter($70 => Prelude_EqOrd_x3dx3d_Eq_String($70.a3, myLogin), $6d), $4b);
|
|
6391
|
+
return User_Reflect_case__casex20blockx20inx20reflectOnSelf_2298($0, $1, prs, myLogin, reviews, $38, $4b, $4e.a1, $4e.a2, Prelude_Interfaces_mapHom({a1: d => b => c => a => $85 => $86 => $87 => ({a1: $85($87.a1), a2: $86($87.a2)}), a2: b => c => a => $90 => $91 => ({a1: $90($91.a1), a2: $91.a2}), a3: a => d => b => $98 => $99 => ({a1: $99.a1, a2: $98($99.a2)})}, $a0 => Prelude_Types_List_filter($a3 => Prelude_Interfaces_any(csegen_77(), $a8 => Prelude_EqOrd_x3dx3d_Eq_String($a8, myLogin), $a3.a5), $a0), $4b));
|
|
6392
|
+
};
|
|
6393
|
+
return Data_Promise_x3ex3ex3d_Monad_Promise(PullRequest_reviewsForUser($0, $1, myLogin, Data_List_take(User_Reflect_reviewDetailsCount(), Prelude_Types_List_reverse(Data_List_sortBy($2b => $2c => Prelude_Basics_on(csegen_141(), csegen_380(), $2b, $2c), PullRequest_combined(prs))))), $37, $1a, $1b);
|
|
6394
|
+
};
|
|
6395
|
+
return Data_Promise_x3ex3ex3d_Monad_Promise(Prelude_Interfaces_x3cx24x3e(csegen_103(), csegen_139(), FFI_GitHub_getSelf($1)), $19, $d, $e);
|
|
6396
|
+
};
|
|
6397
|
+
return Data_Promise_x3ex3ex3d_Monad_Promise(PullRequest_listPartitionedPRs($0, $1, 4n, User_Reflect_prCount()), $c, $2, $3);
|
|
6398
|
+
}
|
|
6399
|
+
|
|
6400
|
+
function User_Me_printInfoOnSelf($0, $1, $2, $3, $4) {
|
|
6401
|
+
return Data_Promise_x3ex3ex3d_Monad_Promise(Prelude_Interfaces_x3cx24x3e(csegen_103(), $b => User_Me_n__6391_2571_handleUnsetEmail($0, $1, $2, $b), $12 => $13 => FFI_Git_userEmail($2, $12, $13)), gitEmail => $19 => $1a => Data_Promise_x3ex3ex3d_Monad_Promise(FFI_GitHub_getSelf($1), githubUser => $20 => $21 => Data_Promise_x3ex3ex3d_Monad_Promise(Prelude_Interfaces_x3cx24x3e(csegen_103(), csegen_112(), FFI_GitHub_listMyTeams($1)), githubTeams => Util_renderIO($0, csegen_21(), User_Me_print(gitEmail, githubUser, githubTeams)), $20, $21), $19, $1a), $3, $4);
|
|
6402
|
+
}
|
|
6403
|
+
|
|
6404
|
+
function User_Reflect_print($0, $1, $2, $3, $4, $5, $6, $7, $8) {
|
|
6405
|
+
return Text_PrettyPrint_Prettyprinter_Doc_vsep({a1: Text_PrettyPrint_Prettyprinter_Doc_emptyDoc(), a2: {a1: User_Reflect_graph($0, $1, $2, $3, $4, $5), a2: {a1: Text_PrettyPrint_Prettyprinter_Doc_emptyDoc(), a2: {a1: User_Reflect_details($0, $1, $2, $3, $4, $5, $6, $7, $8), a2: {a1: Text_PrettyPrint_Prettyprinter_Doc_emptyDoc(), a2: {h: 0}}}}}});
|
|
6406
|
+
}
|
|
6407
|
+
|
|
6408
|
+
function User_Me_print($0, $1, $2) {
|
|
6409
|
+
return Text_PrettyPrint_Prettyprinter_Doc_vsep({a1: Text_PrettyPrint_Prettyprinter_Doc_emptyDoc(), a2: {a1: User_Me_n__6251_2418_email($2, $1, $0), a2: {a1: Text_PrettyPrint_Prettyprinter_Doc_emptyDoc(), a2: {a1: User_Me_n__6251_2419_fullName($2, $1, $0), a2: {a1: User_Me_n__6251_2420_login($2, $1, $0), a2: {a1: Text_PrettyPrint_Prettyprinter_Doc_emptyDoc(), a2: {a1: User_Me_n__6251_2421_teams($2, $1, $0), a2: {a1: Text_PrettyPrint_Prettyprinter_Doc_emptyDoc(), a2: {h: 0}}}}}}}}});
|
|
6410
|
+
}
|
|
6411
|
+
|
|
6412
|
+
const User_Reflect_prCount = __lazy(function () {
|
|
6413
|
+
return csegen_134();
|
|
6414
|
+
});
|
|
6415
|
+
|
|
6416
|
+
const User_Reflect_leftTitle = __lazy(function () {
|
|
6417
|
+
return 'requested';
|
|
6418
|
+
});
|
|
6419
|
+
|
|
6420
|
+
const User_Reflect_intro = __lazy(function () {
|
|
6421
|
+
return Prelude_Interfaces_concat(csegen_62(), csegen_77(), {a1: 'Your current pull request summary (out of the past ', a2: {a1: Data_Fin_show_Show_x28Finx20x24nx29(User_Reflect_prCount()), a2: {a1: ' PRs):', a2: {h: 0}}}});
|
|
6422
|
+
});
|
|
6423
|
+
|
|
6424
|
+
function User_Reflect_header($0) {
|
|
6425
|
+
return Text_PrettyPrint_Prettyprinter_Doc_indent(Prelude_Cast_cast_Cast_Nat_Int($0), Text_PrettyPrint_Prettyprinter_Doc_hsep({a1: User_Reflect_n__5344_1492_ital($0, User_Reflect_leftTitle()), a2: {a1: Text_PrettyPrint_Prettyprinter_Doc_pretty_Pretty_String(' '), a2: {a1: User_Reflect_n__5344_1492_ital($0, User_Reflect_rightTitle()), a2: {h: 0}}}}));
|
|
6426
|
+
}
|
|
6427
|
+
|
|
6428
|
+
function User_Reflect_graph($0, $1, $2, $3, $4, $5) {
|
|
6429
|
+
const $6 = ($2+$3);
|
|
6430
|
+
const $9 = ($5+$4);
|
|
6431
|
+
const $c = Prelude_Types_foldr_Foldable_List(csegen_388(), Prelude_Types_String_length(User_Reflect_leftTitle()), {a1: ($6+$1), a2: {a1: $9, a2: {h: 0}}});
|
|
6432
|
+
const $1b = Prelude_Types_foldr_Foldable_List(csegen_388(), Prelude_Types_String_length(User_Reflect_rightTitle()), {a1: $6, a2: {a1: $9, a2: {h: 0}}});
|
|
6433
|
+
const $28 = (($c+$1b)+3n);
|
|
6434
|
+
const $2d = ((Prelude_Cast_cast_Cast_Nat_Double($0)/2.0)-(Prelude_Cast_cast_Cast_Nat_Double($28)/2.0));
|
|
6435
|
+
const $38 = (Prelude_Cast_cast_Cast_Double_Nat($2d)+Prelude_Types_prim__integerToNat(($c-Prelude_Types_String_length(User_Reflect_leftTitle()))));
|
|
6436
|
+
const $44 = (Prelude_Cast_cast_Cast_Double_Nat($2d)+Prelude_Types_prim__integerToNat(($c-($6+$1))));
|
|
6437
|
+
return Text_PrettyPrint_Prettyprinter_Doc_vsep({a1: User_Reflect_header($38), a2: {a1: User_Reflect_chart($0, $1, $2, $3, $4, $5, $44), a2: {h: 0}}});
|
|
6438
|
+
}
|
|
6439
|
+
|
|
6440
|
+
function User_Reflect_details($0, $1, $2, $3, $4, $5, $6, $7, $8) {
|
|
6441
|
+
return Text_PrettyPrint_Prettyprinter_Doc_vsep({a1: Text_PrettyPrint_Prettyprinter_Doc_pretty_Pretty_String(User_Reflect_intro()), a2: {a1: Text_PrettyPrint_Prettyprinter_Doc_emptyDoc(), a2: {a1: Text_PrettyPrint_Prettyprinter_Doc_annotate(Text_PrettyPrint_Prettyprinter_Render_Terminal_underline(), Text_PrettyPrint_Prettyprinter_Doc_pretty_Pretty_String('Requested Reviews:')), a2: {a1: Text_PrettyPrint_Prettyprinter_Doc_indent(2, Text_PrettyPrint_Prettyprinter_Doc_vsep(Data_List_catMaybes({a1: {a1: Text_PrettyPrint_Prettyprinter_Doc_pretty_Pretty_String('unreviewed:')}, a2: {a1: {a1: Text_PrettyPrint_Prettyprinter_Doc_indent(2, Text_PrettyPrint_Prettyprinter_Doc_vsep(Data_List_catMaybes({a1: {a1: Text_PrettyPrint_Prettyprinter_Doc_hsep({a1: Text_PrettyPrint_Prettyprinter_Doc_pretty_Pretty_String('open:'), a2: {a1: Text_PrettyPrint_Prettyprinter_Doc_annotate(Text_PrettyPrint_Prettyprinter_Render_Terminal_color(3), Text_PrettyPrint_Prettyprinter_Doc_pretty_Pretty_Nat($2)), a2: {h: 0}}})}, a2: {a1: Prelude_Interfaces_x3cx26x3e(csegen_18(), $8, csegen_390()), a2: {a1: {a1: Text_PrettyPrint_Prettyprinter_Doc_hsep({a1: Text_PrettyPrint_Prettyprinter_Doc_pretty_Pretty_String('closed:'), a2: {a1: Text_PrettyPrint_Prettyprinter_Doc_annotate(Text_PrettyPrint_Prettyprinter_Render_Terminal_color(1), Text_PrettyPrint_Prettyprinter_Doc_pretty_Pretty_Nat($3)), a2: {h: 0}}})}, a2: {h: 0}}}})))}, a2: {a1: {a1: Text_PrettyPrint_Prettyprinter_Doc_hsep({a1: Text_PrettyPrint_Prettyprinter_Doc_pretty_Pretty_String('reviews*:'), a2: {a1: Text_PrettyPrint_Prettyprinter_Doc_annotate(Text_PrettyPrint_Prettyprinter_Render_Terminal_color(2), Text_PrettyPrint_Prettyprinter_Doc_pretty_Pretty_Nat($1)), a2: {h: 0}}})}, a2: {a1: Prelude_Interfaces_x3cx26x3e(csegen_18(), $6, date => Text_PrettyPrint_Prettyprinter_Doc_indent(2, Text_PrettyPrint_Prettyprinter_Doc_hsep({a1: Text_PrettyPrint_Prettyprinter_Doc_pretty_Pretty_String('most recent:'), a2: {a1: Text_PrettyPrint_Prettyprinter_Doc_pretty_Pretty_String(Data_Date_show_Show_Date(date)), a2: {h: 0}}}))), a2: {h: 0}}}}}))), a2: {a1: Text_PrettyPrint_Prettyprinter_Doc_emptyDoc(), a2: {a1: Text_PrettyPrint_Prettyprinter_Doc_annotate(Text_PrettyPrint_Prettyprinter_Render_Terminal_underline(), Text_PrettyPrint_Prettyprinter_Doc_pretty_Pretty_String('Authored Pulls:')), a2: {a1: Text_PrettyPrint_Prettyprinter_Doc_indent(2, Text_PrettyPrint_Prettyprinter_Doc_vsep(Data_List_catMaybes({a1: {a1: Text_PrettyPrint_Prettyprinter_Doc_hsep({a1: Text_PrettyPrint_Prettyprinter_Doc_pretty_Pretty_String('open:'), a2: {a1: Text_PrettyPrint_Prettyprinter_Doc_annotate(Text_PrettyPrint_Prettyprinter_Render_Terminal_color(3), Text_PrettyPrint_Prettyprinter_Doc_pretty_Pretty_Nat($5)), a2: {h: 0}}})}, a2: {a1: Prelude_Interfaces_x3cx26x3e(csegen_18(), $7, csegen_390()), a2: {a1: {a1: Text_PrettyPrint_Prettyprinter_Doc_hsep({a1: Text_PrettyPrint_Prettyprinter_Doc_pretty_Pretty_String('closed:'), a2: {a1: Text_PrettyPrint_Prettyprinter_Doc_annotate(Text_PrettyPrint_Prettyprinter_Render_Terminal_color(2), Text_PrettyPrint_Prettyprinter_Doc_pretty_Pretty_Nat($4)), a2: {h: 0}}})}, a2: {h: 0}}}}))), a2: {a1: Text_PrettyPrint_Prettyprinter_Doc_emptyDoc(), a2: {a1: Text_PrettyPrint_Prettyprinter_Doc_annotate(Text_PrettyPrint_Prettyprinter_Render_Terminal_italic(), Text_PrettyPrint_Prettyprinter_Doc_pretty_Pretty_String(Prelude_Interfaces_concat(csegen_62(), csegen_77(), {a1: '*review count (not PR count) of most recent ', a2: {a1: Data_Fin_show_Show_x28Finx20x24nx29(User_Reflect_reviewDetailsCount()), a2: {a1: ' PRs.', a2: {h: 0}}}}))), a2: {h: 0}}}}}}}}}});
|
|
6442
|
+
}
|
|
6443
|
+
|
|
6444
|
+
function User_Reflect_chart($0, $1, $2, $3, $4, $5, $6) {
|
|
6445
|
+
return Text_PrettyPrint_Prettyprinter_Doc_indent(Prelude_Cast_cast_Cast_Nat_Int($6), Text_PrettyPrint_Prettyprinter_Doc_x3cx2bx2bx3e(Text_PrettyPrint_Prettyprinter_Doc_x3cx2bx3e_Semigroup_x28Docx20x24annx29(Text_PrettyPrint_Prettyprinter_Doc_x3cx2bx3e_Semigroup_x28Docx20x24annx29(User_replicatex27(2, $1, '\u{b7}'), User_replicatex27(1, $3, '\u{25e6}')), User_replicatex27(3, $2, '<')), Text_PrettyPrint_Prettyprinter_Doc_x3cx2bx2bx3e(Text_PrettyPrint_Prettyprinter_Doc_pretty_Pretty_String('|'), Text_PrettyPrint_Prettyprinter_Doc_x3cx2bx3e_Semigroup_x28Docx20x24annx29(User_replicatex27(3, $5, '>'), User_replicatex27(2, $4, '\u{b7}')))));
|
|
6446
|
+
}
|
|
6447
|
+
|
|
6404
6448
|
function PullRequest_with__withx20blockx20inx20listPartitionedPRs_1206($0, $1, $2, $3, $4, $5, $6, $7) {
|
|
6405
6449
|
switch($2.h) {
|
|
6406
6450
|
case 1: return $9 => PullRequest_partitionx27(Data_Pagination_metaPages($0, 1n, $4, 1n, $4), $7, $9);
|
|
@@ -6420,65 +6464,55 @@ function PullRequest_with__listPartitionedPRs_1144($0, $1, $2, $3, $4) {
|
|
|
6420
6464
|
}
|
|
6421
6465
|
}
|
|
6422
6466
|
|
|
6423
|
-
function
|
|
6467
|
+
function PullRequest_case__identifyOrCreatePRx2ccreatePR_2311($0, $1, $2, $3, $4, $5) {
|
|
6424
6468
|
switch($5.h) {
|
|
6425
6469
|
case undefined: return ($5.a1+$5.a2);
|
|
6426
6470
|
default: return $3.a4;
|
|
6427
6471
|
}
|
|
6428
6472
|
}
|
|
6429
6473
|
|
|
6430
|
-
function
|
|
6474
|
+
function PullRequest_n__6853_1428_userNotice($0, $1, $2, $3, $4, $5, $6) {
|
|
6431
6475
|
switch($6.h) {
|
|
6432
6476
|
case 0: {
|
|
6433
6477
|
switch($2.h) {
|
|
6434
6478
|
case 0: return 'no users';
|
|
6435
|
-
default: return Prelude_Interfaces_concat(csegen_62(), csegen_77(), {a1:
|
|
6479
|
+
default: return Prelude_Interfaces_concat(csegen_62(), csegen_77(), {a1: PullRequest_n__6853_1427_csv($0, $1, $2, $3, $4, $5, $2), a2: {h: 0}});
|
|
6436
6480
|
}
|
|
6437
6481
|
}
|
|
6438
|
-
case undefined: return Prelude_Interfaces_concat(csegen_62(), csegen_77(), {a1:
|
|
6482
|
+
case undefined: return Prelude_Interfaces_concat(csegen_62(), csegen_77(), {a1: PullRequest_n__6853_1427_csv($0, $1, $2, $3, $4, $5, {a1: $6.a1, a2: $2}), a2: {h: 0}});
|
|
6439
6483
|
}
|
|
6440
6484
|
}
|
|
6441
6485
|
|
|
6442
|
-
function
|
|
6486
|
+
function PullRequest_n__6853_1429_teamNotice($0, $1, $2, $3, $4, $5, $6) {
|
|
6443
6487
|
switch($6.h) {
|
|
6444
6488
|
case 0: return '';
|
|
6445
6489
|
case undefined: {
|
|
6446
6490
|
switch($6.a2.h) {
|
|
6447
|
-
case 0: return Prelude_Interfaces_concat(csegen_62(), csegen_77(), {a1: ' and team ', a2: {a1:
|
|
6448
|
-
default: return Prelude_Interfaces_concat(csegen_62(), csegen_77(), {a1: ' and teams ', a2: {a1:
|
|
6491
|
+
case 0: return Prelude_Interfaces_concat(csegen_62(), csegen_77(), {a1: ' and team ', a2: {a1: PullRequest_n__6853_1427_csv($0, $1, $2, $3, $4, $5, {a1: $6.a1, a2: {h: 0}}), a2: {h: 0}}});
|
|
6492
|
+
default: return Prelude_Interfaces_concat(csegen_62(), csegen_77(), {a1: ' and teams ', a2: {a1: PullRequest_n__6853_1427_csv($0, $1, $2, $3, $4, $5, $6), a2: {h: 0}}});
|
|
6449
6493
|
}
|
|
6450
6494
|
}
|
|
6451
|
-
default: return Prelude_Interfaces_concat(csegen_62(), csegen_77(), {a1: ' and teams ', a2: {a1:
|
|
6495
|
+
default: return Prelude_Interfaces_concat(csegen_62(), csegen_77(), {a1: ' and teams ', a2: {a1: PullRequest_n__6853_1427_csv($0, $1, $2, $3, $4, $5, $6), a2: {h: 0}}});
|
|
6452
6496
|
}
|
|
6453
6497
|
}
|
|
6454
6498
|
|
|
6455
|
-
function
|
|
6499
|
+
function PullRequest_n__7433_1982_prepareDescriptionFile($0, $1, $2, $3, $4) {
|
|
6456
6500
|
return $4.a1.a2(undefined)(undefined)(System_File_Meta_exists($4, '.github/PULL_REQUEST_TEMPLATE.md'))($12 => Prelude_Interfaces_when($4.a1.a1, $12, () => $4.a1.a1.a1(undefined)(undefined)($23 => (undefined))(System_File_copyFile($4, '.github/PULL_REQUEST_TEMPLATE.md', 'pr_description.tmp.md'))));
|
|
6457
6501
|
}
|
|
6458
6502
|
|
|
6459
|
-
function
|
|
6503
|
+
function PullRequest_n__6853_1430_prComment($0, $1, $2, $3, $4, $5, $6) {
|
|
6460
6504
|
return Prelude_Interfaces_concat(csegen_62(), csegen_77(), {a1: ':musical_note: Harmoniously assigned @', a2: {a1: $6, a2: {a1: ' to review this PR.', a2: {h: 0}}}});
|
|
6461
6505
|
}
|
|
6462
6506
|
|
|
6463
|
-
function
|
|
6464
|
-
const $7 = $8 => {
|
|
6465
|
-
switch(Data_Config_rf__colors($5)) {
|
|
6466
|
-
case 1: return $8;
|
|
6467
|
-
case 0: return Text_PrettyPrint_Prettyprinter_Doc_unAnnotate($8);
|
|
6468
|
-
}
|
|
6469
|
-
};
|
|
6470
|
-
return Text_PrettyPrint_Prettyprinter_Render_Terminal_renderString(Text_PrettyPrint_Prettyprinter_Doc_layoutPretty(Text_PrettyPrint_Prettyprinter_Doc_defaultLayoutOptions(), $7($6)));
|
|
6471
|
-
}
|
|
6472
|
-
|
|
6473
|
-
function PullRequest_n__7478_2029_inlineDescription($0, $1, $2, $3, $4) {
|
|
6507
|
+
function PullRequest_n__7433_1981_inlineDescription($0, $1, $2, $3, $4) {
|
|
6474
6508
|
return Prelude_Interfaces_x3ex3e($4.a1, Prelude_IO_putStrLn($4, 'What would you like the description to be (two blank lines to finish)?'), () => Prelude_Interfaces_x3cx24x3e($4.a1.a1.a1, $13 => Data_String_fastUnlines($13), Util_getManyLines($4, Data_Fuel_limit(Prelude_Types_prim__integerToNat(100n)))));
|
|
6475
6509
|
}
|
|
6476
6510
|
|
|
6477
|
-
function
|
|
6511
|
+
function PullRequest_n__6746_1302_forkedReviews($0, $1, $2, $3, $4) {
|
|
6478
6512
|
return FFI_Concurrency_fork(csegen_21(), ('reviews --json '+Prelude_Show_show_Show_Integer($4.a1)));
|
|
6479
6513
|
}
|
|
6480
6514
|
|
|
6481
|
-
function
|
|
6515
|
+
function PullRequest_n__7433_1983_editorDescription($0, $1, $2, $3, $4, $5) {
|
|
6482
6516
|
const $10 = () => {
|
|
6483
6517
|
const $27 = $28 => {
|
|
6484
6518
|
switch($28) {
|
|
@@ -6488,17 +6522,17 @@ function PullRequest_n__7478_2031_editorDescription($0, $1, $2, $3, $4, $5) {
|
|
|
6488
6522
|
};
|
|
6489
6523
|
return $4.a1.a2(undefined)(undefined)(System_Node_system($4, Prelude_Interfaces_concat(csegen_62(), csegen_77(), {a1: $5, a2: {a1: ' pr_description.tmp.md', a2: {h: 0}}})))($27);
|
|
6490
6524
|
};
|
|
6491
|
-
return Prelude_Interfaces_x3ex3e($4.a1,
|
|
6525
|
+
return Prelude_Interfaces_x3ex3e($4.a1, PullRequest_n__7433_1982_prepareDescriptionFile($0, $1, $2, $3, $4), $10);
|
|
6492
6526
|
}
|
|
6493
6527
|
|
|
6494
|
-
function
|
|
6495
|
-
return
|
|
6528
|
+
function PullRequest_n__6853_1427_csv($0, $1, $2, $3, $4, $5, $6) {
|
|
6529
|
+
return Util_renderString($5, Text_PrettyPrint_Prettyprinter_Doc_encloseSep(Text_PrettyPrint_Prettyprinter_Doc_emptyDoc(), Text_PrettyPrint_Prettyprinter_Doc_emptyDoc(), Text_PrettyPrint_Prettyprinter_Doc_pretty_Pretty_String(', '), Prelude_Types_map_Functor_List(csegen_402(), $6)));
|
|
6496
6530
|
}
|
|
6497
6531
|
|
|
6498
|
-
function
|
|
6532
|
+
function PullRequest_n__7433_1984_createPR($0, $1, $2, $3) {
|
|
6499
6533
|
return Prelude_Interfaces_x3ex3e(csegen_15(), $8 => $9 => Data_Promise_x3ex3ex3d_Monad_Promise($c => $d => FFI_Git_remoteTrackingBranch($0, $c, $d), $13 => Prelude_Interfaces_when(csegen_9(), Prelude_Types_x3dx3d_Eq_x28Maybex20x24ax29(csegen_94(), $13, {h: 0}), () => Prelude_Interfaces_x3ex3e(csegen_15(), Prelude_IO_putStrLn(csegen_21(), 'Creating a new remote branch...'), () => $27 => $28 => FFI_Git_pushNewBranch($0, 'origin', $2, $27, $28))), $8, $9), () => Prelude_Interfaces_x3ex3e(csegen_15(), Prelude_IO_putStrLn(csegen_21(), Prelude_Interfaces_concat(csegen_62(), csegen_77(), {a1: 'Creating a new PR for the current branch (', a2: {a1: $2, a2: {a1: ').', a2: {h: 0}}}})), () => Prelude_Interfaces_x3ex3e(csegen_15(), Prelude_IO_putStrLn(csegen_21(), Prelude_Interfaces_concat(csegen_62(), csegen_77(), {a1: 'What branch are you merging into (ENTER for default: ', a2: {a1: $3.a4, a2: {a1: ')?', a2: {h: 0}}}})), () => $5d => $5e => {
|
|
6500
6534
|
const $6a = baseBranchInput => {
|
|
6501
|
-
const $6b =
|
|
6535
|
+
const $6b = PullRequest_case__identifyOrCreatePRx2ccreatePR_2311($0, $1, $2, $3, baseBranchInput, Data_String_strM(baseBranchInput));
|
|
6502
6536
|
const $7e = Data_Maybe_fromMaybe(() => '', Prelude_Interfaces_x3cx24x3e(csegen_18(), $86 => ($86+' - '), Util_parseJiraPrefix($2)));
|
|
6503
6537
|
const $7d = () => Prelude_Interfaces_x3ex3e(csegen_15(), Prelude_IO_putStr(csegen_21(), $7e), () => $95 => $96 => {
|
|
6504
6538
|
const $a4 = title => $a5 => $a6 => {
|
|
@@ -6506,21 +6540,21 @@ function PullRequest_n__7478_2032_createPR($0, $1, $2, $3) {
|
|
|
6506
6540
|
let $a8;
|
|
6507
6541
|
switch($a9.h) {
|
|
6508
6542
|
case 0: {
|
|
6509
|
-
$a8 =
|
|
6543
|
+
$a8 = PullRequest_n__7433_1981_inlineDescription($0, $1, $2, $3, csegen_21());
|
|
6510
6544
|
break;
|
|
6511
6545
|
}
|
|
6512
6546
|
case undefined: {
|
|
6513
|
-
$a8 = Prelude_Interfaces_x3cx24x3e(csegen_103(), $b7 => Prelude_Types_either(() => $ba => '', () => $bc => $bc, $b7),
|
|
6547
|
+
$a8 = Prelude_Interfaces_x3cx24x3e(csegen_103(), $b7 => Prelude_Types_either(() => $ba => '', () => $bc => $bc, $b7), PullRequest_n__7433_1983_editorDescription($0, $1, $2, $3, csegen_21(), $a9.a1));
|
|
6514
6548
|
break;
|
|
6515
6549
|
}
|
|
6516
6550
|
}
|
|
6517
6551
|
return Data_Promise_x3ex3ex3d_Monad_Promise($a8, description => Prelude_Interfaces_x3ex3e(csegen_15(), Prelude_IO_putStrLn(csegen_21(), 'Creating PR...'), () => Prelude_Interfaces_x3ex3e(csegen_15(), Prelude_IO_putStrLn(csegen_21(), $2), () => FFI_GitHub_createPR($1, $3.a2, $3.a3, $2, $6b, title, description))), $a5, $a6);
|
|
6518
6552
|
};
|
|
6519
|
-
return Data_Promise_x3ex3ex3d_Monad_Promise(Prelude_Interfaces_x3cx24x3e(csegen_103(), $9d => ($7e+Data_String_trim($9d)),
|
|
6553
|
+
return Data_Promise_x3ex3ex3d_Monad_Promise(Prelude_Interfaces_x3cx24x3e(csegen_103(), $9d => ($7e+Data_String_trim($9d)), csegen_404()), $a4, $95, $96);
|
|
6520
6554
|
});
|
|
6521
6555
|
return Prelude_Interfaces_x3ex3e(csegen_15(), Prelude_IO_putStrLn(csegen_21(), 'What would you like the title to be?'), $7d);
|
|
6522
6556
|
};
|
|
6523
|
-
return Data_Promise_x3ex3ex3d_Monad_Promise(Prelude_Interfaces_x3cx24x3e(csegen_103(), $65 => Data_String_trim($65),
|
|
6557
|
+
return Data_Promise_x3ex3ex3d_Monad_Promise(Prelude_Interfaces_x3cx24x3e(csegen_103(), $65 => Data_String_trim($65), csegen_404()), $6a, $5d, $5e);
|
|
6524
6558
|
})));
|
|
6525
6559
|
}
|
|
6526
6560
|
|
|
@@ -6577,7 +6611,7 @@ function PullRequest_reviewsForUser($0, $1, $2, $3) {
|
|
|
6577
6611
|
};
|
|
6578
6612
|
return Data_Promise_x3ex3ex3d_Monad_Promise($2a, reviews => $53 => $54 => Data_Promise_pure_Applicative_Promise(Prelude_Types_List_filter($59 => Data_Review_isAuthor($2, $59), Prelude_Types_join_Monad_List(reviews)), $53, $54), $27, $28);
|
|
6579
6613
|
};
|
|
6580
|
-
return Data_Promise_x3ex3ex3d_Monad_Promise(Prelude_Interfaces_x3dx3cx3c(csegen_15(), csegen_113(), Prelude_Types_traverse_Traversable_List(csegen_9(), $1e =>
|
|
6614
|
+
return Data_Promise_x3ex3ex3d_Monad_Promise(Prelude_Interfaces_x3dx3cx3c(csegen_15(), csegen_113(), Prelude_Types_traverse_Traversable_List(csegen_9(), $1e => PullRequest_n__6746_1302_forkedReviews($1, $3, $2, $0, $1e), $4)), $26, $10, $11);
|
|
6581
6615
|
};
|
|
6582
6616
|
}
|
|
6583
6617
|
|
|
@@ -6612,18 +6646,18 @@ function PullRequest_requestReviewers($0, $1, $2, $3, $4, $5, $6, $7) {
|
|
|
6612
6646
|
}
|
|
6613
6647
|
const $4e = Prelude_Interfaces_when(csegen_9(), $52, () => Prelude_Interfaces_x3ex3e(csegen_15(), $59 => $5a => Data_Promise_map_Functor_Promise($5d => (undefined), FFI_GitHub_addPullReviewers($1, $0.a2, $0.a3, $2.a1, $42, $48), $59, $5a), () => Prelude_Interfaces_when(csegen_9(), $0.a6, () => $72 => $73 => {
|
|
6614
6648
|
switch(chosenUser.h) {
|
|
6615
|
-
case undefined: return FFI_GitHub_createComment($1, $0.a2, $0.a3, $2.a1,
|
|
6649
|
+
case undefined: return FFI_GitHub_createComment($1, $0.a2, $0.a3, $2.a1, PullRequest_n__6853_1430_prComment($1, $5, $4, $3, $2, $0, chosenUser.a1), $72, $73);
|
|
6616
6650
|
case 0: return Data_Promise_pure_Applicative_Promise(undefined, $72, $73);
|
|
6617
6651
|
}
|
|
6618
6652
|
})));
|
|
6619
6653
|
let $8c;
|
|
6620
6654
|
switch(Prelude_Types_null_Foldable_List($42)) {
|
|
6621
6655
|
case 1: {
|
|
6622
|
-
$8c = () => Prelude_IO_putStrLn(csegen_21(),
|
|
6656
|
+
$8c = () => Prelude_IO_putStrLn(csegen_21(), Util_renderString($0, Text_PrettyPrint_Prettyprinter_Doc_vsep({a1: Text_PrettyPrint_Prettyprinter_Doc_annotate(Text_PrettyPrint_Prettyprinter_Render_Terminal_color(3), Text_PrettyPrint_Prettyprinter_Doc_pretty_Pretty_String('Could not pick a user from the given Team ')), a2: {a1: Text_PrettyPrint_Prettyprinter_Doc_pretty_Pretty_String('(perhaps the only option was the author of the pull request?).'), a2: {h: 0}}})));
|
|
6623
6657
|
break;
|
|
6624
6658
|
}
|
|
6625
6659
|
case 0: {
|
|
6626
|
-
$8c = () => Prelude_IO_putStrLn(csegen_21(),
|
|
6660
|
+
$8c = () => Prelude_IO_putStrLn(csegen_21(), Util_renderString($0, Text_PrettyPrint_Prettyprinter_Doc_vsep({a1: Text_PrettyPrint_Prettyprinter_Doc_pretty_Pretty_String(Prelude_Interfaces_concat(csegen_62(), csegen_77(), {a1: 'Assigned ', a2: {a1: PullRequest_n__6853_1428_userNotice($1, $5, $4, $3, $2, $0, chosenUser), a2: {a1: PullRequest_n__6853_1429_teamNotice($1, $5, $4, $3, $2, $0, $48), a2: {a1: ' to the open PR ', a2: {h: 0}}}}})), a2: {a1: Text_PrettyPrint_Prettyprinter_Doc_pretty_Pretty_String(Prelude_Interfaces_concat(csegen_62(), csegen_77(), {a1: 'for the current branch (', a2: {a1: Data_PullRequest_rf__webURI($0, $2), a2: {a1: ').', a2: {h: 0}}}})), a2: {h: 0}}})));
|
|
6627
6661
|
break;
|
|
6628
6662
|
}
|
|
6629
6663
|
}
|
|
@@ -6658,7 +6692,7 @@ function PullRequest_partitionx27($0, $1, $2) {
|
|
|
6658
6692
|
}
|
|
6659
6693
|
};
|
|
6660
6694
|
const $4c = {a1: $4d, a2: a => $55 => ({h: 1, a1: $55}), a3: $57};
|
|
6661
|
-
const $4a = Prelude_Types_traverse_Traversable_List($4c,
|
|
6695
|
+
const $4a = Prelude_Types_traverse_Traversable_List($4c, csegen_434(), prJsons);
|
|
6662
6696
|
return Data_Promise_either(csegen_115(), $4a, $45, $46);
|
|
6663
6697
|
};
|
|
6664
6698
|
return Data_Promise_x3ex3ex3d_Monad_Promise($44, pulls => $67 => $68 => Data_Promise_pure_Applicative_Promise(PullRequest_partition(Prelude_Types_join_Monad_List(pulls)), $67, $68), $41, $42);
|
|
@@ -6689,7 +6723,7 @@ function PullRequest_identifyOrCreatePR($0, $1, $2, $3, $4, $5) {
|
|
|
6689
6723
|
}
|
|
6690
6724
|
};
|
|
6691
6725
|
}
|
|
6692
|
-
case 0: return Prelude_Interfaces_x3cx24x3e(csegen_103(), $23 => ({a1: 1, a2: $23}),
|
|
6726
|
+
case 0: return Prelude_Interfaces_x3cx24x3e(csegen_103(), $23 => ({a1: 1, a2: $23}), PullRequest_n__7433_1984_createPR($1, $2, $3, $0));
|
|
6693
6727
|
default: return $2c => $2d => Data_Promise_reject('Multiple PRs for the current brach. We only handle 1 PR per branch currently.', $2c, $2d);
|
|
6694
6728
|
}
|
|
6695
6729
|
};
|
|
@@ -6765,14 +6799,14 @@ function System_File_ReadWrite_readLinesOnto($0, $1, $2, $3, $4) {
|
|
|
6765
6799
|
}
|
|
6766
6800
|
};
|
|
6767
6801
|
const $26 = {a1: $27, a2: a => $2f => ({h: 1, a1: $2f}), a3: $31};
|
|
6768
|
-
const $25 = {a1: $26, a2:
|
|
6802
|
+
const $25 = {a1: $26, a2: csegen_244(), a3: csegen_245()};
|
|
6769
6803
|
const $40 = b => a => func => $41 => {
|
|
6770
6804
|
switch($41.h) {
|
|
6771
6805
|
case 0: return {h: 0, a1: $41.a1};
|
|
6772
6806
|
case 1: return {h: 1, a1: func($41.a1)};
|
|
6773
6807
|
}
|
|
6774
6808
|
};
|
|
6775
|
-
const $3f = {a1: $40, a2:
|
|
6809
|
+
const $3f = {a1: $40, a2: csegen_454(), a3: csegen_458()};
|
|
6776
6810
|
return Prelude_Interfaces_Monad_x3ex3ex3d_Monad_Composex28x28x2ex20x24mx29x20x24tx29($0.a1, $25, $3f, System_File_ReadWrite_fGetLine($0, $4), str => System_File_ReadWrite_readLinesOnto($0, {a1: str, a2: $1}, 0n, $3.a1(), $4));
|
|
6777
6811
|
}
|
|
6778
6812
|
default: {
|
|
@@ -7121,18 +7155,18 @@ function System_Node_system($0, $1) {
|
|
|
7121
7155
|
return $0.a2(undefined)($7 => System_Node_prim__system($1, $7));
|
|
7122
7156
|
}
|
|
7123
7157
|
|
|
7124
|
-
function
|
|
7158
|
+
function Reviewer_with__scoredReviewersx2czipReviewsx2ccalc_1758($0, $1, $2, $3, $4, $5, $6, $7, $8, $9, $a, $b, $c, $d, $e) {
|
|
7125
7159
|
switch($c.h) {
|
|
7126
7160
|
case 0: return ($e+$d);
|
|
7127
7161
|
case 1: return Prelude_Types_prim__integerToNat(($e-$d));
|
|
7128
7162
|
}
|
|
7129
7163
|
}
|
|
7130
7164
|
|
|
7131
|
-
function
|
|
7165
|
+
function Reviewer_n__5330_2143_yellowDot($0, $1, $2, $3, $4) {
|
|
7132
7166
|
return Text_PrettyPrint_Prettyprinter_Doc_annotate(Text_PrettyPrint_Prettyprinter_Render_Terminal_color(3), Text_PrettyPrint_Prettyprinter_Doc_pretty_Pretty_String('\u{b7}'));
|
|
7133
7167
|
}
|
|
7134
7168
|
|
|
7135
|
-
function
|
|
7169
|
+
function Reviewer_n__4753_1591_weightReviews($0, $1, $2, $3, $4, $5) {
|
|
7136
7170
|
const $6 = Data_List_groupAllWith($0, $a => $a, $5);
|
|
7137
7171
|
const $10 = xs => {
|
|
7138
7172
|
const $11 = (Prelude_Types_List_lengthTR(Data_List1_forget(xs))*$4);
|
|
@@ -7141,43 +7175,43 @@ function Reviewer_n__4747_1531_weightReviews($0, $1, $2, $3, $4, $5) {
|
|
|
7141
7175
|
return Prelude_Interfaces_x3cx26x3e(csegen_119(), $6, $10);
|
|
7142
7176
|
}
|
|
7143
7177
|
|
|
7144
|
-
function
|
|
7178
|
+
function Reviewer_n__4753_1592_sortx27($0, $1, $2, $3, $4) {
|
|
7145
7179
|
return Data_List_sortBy($7 => $8 => Prelude_Basics_on($b => $c => Prelude_EqOrd_compare_Ord_Integer($b, $c), $11 => $11.a3, $7, $8), $4);
|
|
7146
7180
|
}
|
|
7147
7181
|
|
|
7148
|
-
function
|
|
7182
|
+
function Reviewer_n__5330_2144_redDot($0, $1, $2, $3, $4) {
|
|
7149
7183
|
return Text_PrettyPrint_Prettyprinter_Doc_annotate(Text_PrettyPrint_Prettyprinter_Render_Terminal_color(1), Text_PrettyPrint_Prettyprinter_Doc_pretty_Pretty_String('\u{25e6}'));
|
|
7150
7184
|
}
|
|
7151
7185
|
|
|
7152
|
-
function
|
|
7153
|
-
return Text_PrettyPrint_Prettyprinter_Doc_vsep({a1: Text_PrettyPrint_Prettyprinter_Doc_emptyDoc(), a2: {a1: Text_PrettyPrint_Prettyprinter_Doc_pretty_Pretty_String('Weighted review workload.'), a2: {a1: Text_PrettyPrint_Prettyprinter_Doc_x3cx2bx2bx3e(Text_PrettyPrint_Prettyprinter_Doc_pretty_Pretty_String('4x the
|
|
7186
|
+
function Reviewer_n__5330_2145_header($0, $1, $2, $3, $4) {
|
|
7187
|
+
return Text_PrettyPrint_Prettyprinter_Doc_vsep({a1: Text_PrettyPrint_Prettyprinter_Doc_emptyDoc(), a2: {a1: Text_PrettyPrint_Prettyprinter_Doc_pretty_Pretty_String('Weighted review workload.'), a2: {a1: Text_PrettyPrint_Prettyprinter_Doc_x3cx2bx2bx3e(Text_PrettyPrint_Prettyprinter_Doc_pretty_Pretty_String('4x the number of open review requests'), Text_PrettyPrint_Prettyprinter_Symbols_parens(Reviewer_n__5330_2143_yellowDot($0, $1, $2, $3, $4))), a2: {a1: Text_PrettyPrint_Prettyprinter_Doc_x3cx2bx2bx3e(Text_PrettyPrint_Prettyprinter_Doc_pretty_Pretty_String('1x the number of closed PRs with unanswered review requests'), Text_PrettyPrint_Prettyprinter_Symbols_parens(Reviewer_n__5330_2144_redDot($0, $1, $2, $3, $4))), a2: {a1: Text_PrettyPrint_Prettyprinter_Symbols_parens(Text_PrettyPrint_Prettyprinter_Doc_x3cx2bx2bx3e(Reviewer_n__5330_2144_redDot($0, $1, $2, $3, $4), Text_PrettyPrint_Prettyprinter_Doc_x3cx2bx2bx3e(Text_PrettyPrint_Prettyprinter_Doc_pretty_Pretty_String('overlayed on'), Reviewer_n__5330_2143_yellowDot($0, $1, $2, $3, $4)))), a2: {a1: Text_PrettyPrint_Prettyprinter_Doc_emptyDoc(), a2: {a1: Text_PrettyPrint_Prettyprinter_Doc_emptyDoc(), a2: {h: 0}}}}}}}});
|
|
7154
7188
|
}
|
|
7155
7189
|
|
|
7156
|
-
function
|
|
7190
|
+
function Reviewer_n__5330_2147_graphOne($0, $1, $2, $3, $4, $5, $6) {
|
|
7157
7191
|
const $8 = Prelude_Types_prim__integerToNat(($5-$6.a2));
|
|
7158
7192
|
const $d = Text_PrettyPrint_Prettyprinter_Doc_annotate(Text_PrettyPrint_Prettyprinter_Render_Terminal_italic(), $1.a1(undefined)($6.a1));
|
|
7159
7193
|
const $17 = Prelude_Types_prim__integerToNat(($6.a2-$6.a3));
|
|
7160
7194
|
const $1c = Prelude_Types_prim__integerToNat(($5-$6.a3));
|
|
7161
|
-
return Text_PrettyPrint_Prettyprinter_Doc_x3cx2bx2bx3e(
|
|
7195
|
+
return Text_PrettyPrint_Prettyprinter_Doc_x3cx2bx2bx3e(Reviewer_n__5330_2146_bar($0, $1, $2, $3, $4, $8, $6.a3, Prelude_Types_min_Ord_Nat($1c, $17)), $d);
|
|
7162
7196
|
}
|
|
7163
7197
|
|
|
7164
|
-
function
|
|
7165
|
-
return Text_PrettyPrint_Prettyprinter_Doc_vsep(Prelude_Types_map_Functor_List($b =>
|
|
7198
|
+
function Reviewer_n__5330_2148_graph($0, $1, $2, $3, $4, $5, $6) {
|
|
7199
|
+
return Text_PrettyPrint_Prettyprinter_Doc_vsep(Prelude_Types_map_Functor_List($b => Reviewer_n__5330_2147_graphOne($0, $1, $2, $3, $4, $5, $b), $6));
|
|
7166
7200
|
}
|
|
7167
7201
|
|
|
7168
|
-
function
|
|
7169
|
-
return
|
|
7202
|
+
function Reviewer_n__4780_1748_calc($0, $1, $2, $3, $4, $5, $6, $7, $8, $9, $a, $b, $c, $d) {
|
|
7203
|
+
return Reviewer_with__scoredReviewersx2czipReviewsx2ccalc_1758(undefined, $0, $1, $2, $3, $4, $5, $6, $8, $9, $a, $b, $a, $d, $c);
|
|
7170
7204
|
}
|
|
7171
7205
|
|
|
7172
|
-
function
|
|
7206
|
+
function Reviewer_n__5330_2146_bar($0, $1, $2, $3, $4, $5, $6, $7) {
|
|
7173
7207
|
return Text_PrettyPrint_Prettyprinter_Doc_indent(Prelude_Cast_cast_Cast_Nat_Int($5), Text_PrettyPrint_Prettyprinter_Doc_hcat({a1: Text_PrettyPrint_Prettyprinter_Doc_annotate(Text_PrettyPrint_Prettyprinter_Render_Terminal_color(1), Text_PrettyPrint_Prettyprinter_Doc_pretty_Pretty_String(Data_String_replicate($7, '\u{25e6}'))), a2: {a1: Text_PrettyPrint_Prettyprinter_Doc_annotate(Text_PrettyPrint_Prettyprinter_Render_Terminal_color(3), Text_PrettyPrint_Prettyprinter_Doc_pretty_Pretty_String(Data_String_replicate($6, '\u{b7}'))), a2: {h: 0}}}));
|
|
7174
7208
|
}
|
|
7175
7209
|
|
|
7176
7210
|
function Reviewer_scoredReviewers($0, $1, $2, $3) {
|
|
7177
|
-
const $4 =
|
|
7178
|
-
const $c =
|
|
7179
|
-
const $14 =
|
|
7180
|
-
return
|
|
7211
|
+
const $4 = Reviewer_n__4753_1591_weightReviews($0, $3, $2, $1, 1n, $1);
|
|
7212
|
+
const $c = Reviewer_n__4753_1591_weightReviews($0, $3, $2, $1, 4n, $2);
|
|
7213
|
+
const $14 = Reviewer_n__4753_1596_zipReviews($0, $3, $2, $1, $c, $4, {h: 1, a1: $0, a2: $3, a3: $2, a4: $1}, 0);
|
|
7214
|
+
return Reviewer_n__4753_1592_sortx27($0, $3, $2, $1, Reviewer_n__4753_1596_zipReviews($0, $3, $2, $1, $14, Reviewer_n__4753_1591_weightReviews($0, $3, $2, $1, 0n, $3), {h: 0, a1: $0, a2: $3, a3: $2, a4: $1}, 1));
|
|
7181
7215
|
}
|
|
7182
7216
|
|
|
7183
7217
|
function Reviewer_reviewsGraph($0, $1, $2, $3, $4) {
|
|
@@ -7197,8 +7231,8 @@ function Reviewer_reviewsGraph($0, $1, $2, $3, $4) {
|
|
|
7197
7231
|
break;
|
|
7198
7232
|
}
|
|
7199
7233
|
}
|
|
7200
|
-
const $28 =
|
|
7201
|
-
const $1f = Text_PrettyPrint_Prettyprinter_Doc_x3cx2bx3e_Semigroup_x28Docx20x24annx29(
|
|
7234
|
+
const $28 = Reviewer_n__5330_2148_graph($0, $1, $4, $3, $2, $2f, $5);
|
|
7235
|
+
const $1f = Text_PrettyPrint_Prettyprinter_Doc_x3cx2bx3e_Semigroup_x28Docx20x24annx29(Reviewer_n__5330_2145_header($0, $1, $4, $3, $2), $28);
|
|
7202
7236
|
return Text_PrettyPrint_Prettyprinter_Doc_x3cx2bx3e_Semigroup_x28Docx20x24annx29($1f, Text_PrettyPrint_Prettyprinter_Doc_line());
|
|
7203
7237
|
}
|
|
7204
7238
|
}
|
|
@@ -7298,11 +7332,11 @@ function FFI_GitHub_listPullRequestsJsonStr($0, $1, $2, $3, $4, $5) {
|
|
|
7298
7332
|
}
|
|
7299
7333
|
|
|
7300
7334
|
function FFI_GitHub_listPullRequests($0, $1, $2, $3, $4, $5) {
|
|
7301
|
-
return Prelude_Interfaces_x3dx3cx3c(csegen_15(),
|
|
7335
|
+
return Prelude_Interfaces_x3dx3cx3c(csegen_15(), csegen_479(), FFI_GitHub_listPullRequestsJsonStr($0, $1, $2, $3, $4, $5));
|
|
7302
7336
|
}
|
|
7303
7337
|
|
|
7304
7338
|
function FFI_GitHub_listPRsForBranch($0, $1, $2, $3) {
|
|
7305
|
-
return Prelude_Interfaces_x3dx3cx3c(csegen_15(),
|
|
7339
|
+
return Prelude_Interfaces_x3dx3cx3c(csegen_15(), csegen_479(), $a => $b => FFI_promiseIO($e => $f => $10 => FFI_GitHub_prim__listPRsForBranch($0, $1, $2, $3, $e, $f, $10), $a, $b));
|
|
7306
7340
|
}
|
|
7307
7341
|
|
|
7308
7342
|
function FFI_GitHub_listOrgMembers($0, $1) {
|
|
@@ -7314,11 +7348,11 @@ function FFI_GitHub_listMyTeams($0) {
|
|
|
7314
7348
|
}
|
|
7315
7349
|
|
|
7316
7350
|
function FFI_GitHub_getUser($0) {
|
|
7317
|
-
return Prelude_Interfaces_x3cx3dx3c(csegen_15(),
|
|
7351
|
+
return Prelude_Interfaces_x3cx3dx3c(csegen_15(), csegen_480(), $7 => $8 => $9 => FFI_promiseIO($c => $d => $e => FFI_GitHub_prim__getUser($0, $7, $c, $d, $e), $8, $9));
|
|
7318
7352
|
}
|
|
7319
7353
|
|
|
7320
7354
|
function FFI_GitHub_getSelf($0) {
|
|
7321
|
-
return Prelude_Interfaces_x3dx3cx3c(csegen_15(),
|
|
7355
|
+
return Prelude_Interfaces_x3dx3cx3c(csegen_15(), csegen_480(), $7 => $8 => FFI_promiseIO($b => $c => $d => FFI_GitHub_prim__getSelf($0, $b, $c, $d), $7, $8));
|
|
7322
7356
|
}
|
|
7323
7357
|
|
|
7324
7358
|
function FFI_GitHub_getRepoDefaultBranch($0, $1, $2, $3, $4) {
|
|
@@ -7412,8 +7446,8 @@ function Data_User_parseUserString($0) {
|
|
|
7412
7446
|
}
|
|
7413
7447
|
};
|
|
7414
7448
|
const $3 = {a1: $4, a2: a => $c => ({h: 1, a1: $c}), a3: $e};
|
|
7415
|
-
const $2 = {a1: $3, a2:
|
|
7416
|
-
return Prelude_Interfaces_x3ex3dx3e($2,
|
|
7449
|
+
const $2 = {a1: $3, a2: csegen_244(), a3: csegen_245()};
|
|
7450
|
+
return Prelude_Interfaces_x3ex3dx3e($2, csegen_246(), $1f => Data_User_parseUser($1f), $0);
|
|
7417
7451
|
}
|
|
7418
7452
|
|
|
7419
7453
|
function Data_User_parseUser($0) {
|
|
@@ -7460,7 +7494,7 @@ function Data_Review_parseReview($0) {
|
|
|
7460
7494
|
}
|
|
7461
7495
|
};
|
|
7462
7496
|
const $20 = {a1: $21, a2: a => $29 => ({h: 1, a1: $29}), a3: $2b};
|
|
7463
|
-
const $1f = {a1: $20, a2:
|
|
7497
|
+
const $1f = {a1: $20, a2: csegen_244(), a3: csegen_245()};
|
|
7464
7498
|
const $1d = Prelude_Interfaces_x3dx3cx3c($1f, $3a => Data_Review_parseState($3a), Language_JSON_Accessors_string($12.a2.a1));
|
|
7465
7499
|
const $40 = state => {
|
|
7466
7500
|
const $46 = b => a => func => $47 => {
|
|
@@ -7481,7 +7515,7 @@ function Data_Review_parseReview($0) {
|
|
|
7481
7515
|
}
|
|
7482
7516
|
};
|
|
7483
7517
|
const $45 = {a1: $46, a2: a => $4e => ({h: 1, a1: $4e}), a3: $50};
|
|
7484
|
-
const $44 = {a1: $45, a2:
|
|
7518
|
+
const $44 = {a1: $45, a2: csegen_244(), a3: csegen_245()};
|
|
7485
7519
|
const $42 = Prelude_Interfaces_x3dx3cx3c($44, $5f => Data_Review_parseDateTime($5f), Language_JSON_Accessors_string($12.a2.a2.a1));
|
|
7486
7520
|
return Prelude_Types_x3ex3ex3d_Monad_x28Eitherx20x24ex29($42, submittedAt => ({h: 1, a1: {a1: submittedAt, a2: author, a3: state}}));
|
|
7487
7521
|
};
|
|
@@ -7734,8 +7768,8 @@ function Data_PullRequest_parsePullRequestsString($0) {
|
|
|
7734
7768
|
}
|
|
7735
7769
|
};
|
|
7736
7770
|
const $3 = {a1: $4, a2: a => $c => ({h: 1, a1: $c}), a3: $e};
|
|
7737
|
-
const $2 = {a1: $3, a2:
|
|
7738
|
-
return Prelude_Interfaces_x3ex3dx3e($2,
|
|
7771
|
+
const $2 = {a1: $3, a2: csegen_244(), a3: csegen_245()};
|
|
7772
|
+
return Prelude_Interfaces_x3ex3dx3e($2, csegen_246(), csegen_434(), $0);
|
|
7739
7773
|
}
|
|
7740
7774
|
|
|
7741
7775
|
function Data_PullRequest_parsePullRequestString($0) {
|
|
@@ -7757,8 +7791,8 @@ function Data_PullRequest_parsePullRequestString($0) {
|
|
|
7757
7791
|
}
|
|
7758
7792
|
};
|
|
7759
7793
|
const $3 = {a1: $4, a2: a => $c => ({h: 1, a1: $c}), a3: $e};
|
|
7760
|
-
const $2 = {a1: $3, a2:
|
|
7761
|
-
return Prelude_Interfaces_x3ex3dx3e($2,
|
|
7794
|
+
const $2 = {a1: $3, a2: csegen_244(), a3: csegen_245()};
|
|
7795
|
+
return Prelude_Interfaces_x3ex3dx3e($2, csegen_246(), $1f => Data_PullRequest_parsePR($1f), $0);
|
|
7762
7796
|
}
|
|
7763
7797
|
|
|
7764
7798
|
function Data_PullRequest_parsePR($0) {
|
|
@@ -7784,7 +7818,7 @@ function Data_PullRequest_parsePR($0) {
|
|
|
7784
7818
|
}
|
|
7785
7819
|
};
|
|
7786
7820
|
const $2e = {a1: $2f, a2: a => $37 => ({h: 1, a1: $37}), a3: $39};
|
|
7787
|
-
const $2d = {a1: $2e, a2:
|
|
7821
|
+
const $2d = {a1: $2e, a2: csegen_244(), a3: csegen_245()};
|
|
7788
7822
|
const $2b = Prelude_Interfaces_x3dx3cx3c($2d, $48 => Data_PullRequest_parseState($48), Language_JSON_Accessors_string($18.a2.a2.a1));
|
|
7789
7823
|
const $4e = state => {
|
|
7790
7824
|
const $54 = b => a => func => $55 => {
|
|
@@ -7805,7 +7839,7 @@ function Data_PullRequest_parsePR($0) {
|
|
|
7805
7839
|
}
|
|
7806
7840
|
};
|
|
7807
7841
|
const $53 = {a1: $54, a2: a => $5c => ({h: 1, a1: $5c}), a3: $5e};
|
|
7808
|
-
const $52 = {a1: $53, a2:
|
|
7842
|
+
const $52 = {a1: $53, a2: csegen_244(), a3: csegen_245()};
|
|
7809
7843
|
const $50 = Prelude_Interfaces_x3dx3cx3c($52, $6d => Data_PullRequest_parseDateTime($6d), Language_JSON_Accessors_string($18.a2.a2.a2.a1));
|
|
7810
7844
|
return Prelude_Types_x3ex3ex3d_Monad_x28Eitherx20x24ex29($50, createdAt => Prelude_Types_x3ex3ex3d_Monad_x28Eitherx20x24ex29(Language_JSON_Accessors_array($78 => Language_JSON_Accessors_string($78), $18.a2.a2.a2.a2.a1), reviewers => Prelude_Types_x3ex3ex3d_Monad_x28Eitherx20x24ex29(Language_JSON_Accessors_string($18.a2.a2.a2.a2.a2.a1), headRef => ({h: 1, a1: {a1: number, a2: createdAt, a3: author, a4: state, a5: reviewers, a6: headRef}}))));
|
|
7811
7845
|
};
|
|
@@ -7935,7 +7969,7 @@ function Data_Pagination_with__lemma_5493($0, $1, $2, $3, $4) {
|
|
|
7935
7969
|
}
|
|
7936
7970
|
|
|
7937
7971
|
function Data_Pagination_toList_Foldable_x28x28x28Paginationx20x24itemsx29x20x24perPagex29x20x24pagex29($0) {
|
|
7938
|
-
return Data_Pagination_foldr_Foldable_x28x28x28Paginationx20x24itemsx29x20x24perPagex29x20x24pagex29(
|
|
7972
|
+
return Data_Pagination_foldr_Foldable_x28x28x28Paginationx20x24itemsx29x20x24perPagex29x20x24pagex29(csegen_192(), {h: 0}, $0);
|
|
7939
7973
|
}
|
|
7940
7974
|
|
|
7941
7975
|
function Data_Pagination_null_Foldable_x28x28x28Paginationx20x24itemsx29x20x24perPagex29x20x24pagex29($0) {
|
|
@@ -7950,7 +7984,7 @@ function Data_Pagination_foldr_Foldable_x28x28x28Paginationx20x24itemsx29x20x24p
|
|
|
7950
7984
|
}
|
|
7951
7985
|
|
|
7952
7986
|
function Data_Pagination_foldl_Foldable_x28x28x28Paginationx20x24itemsx29x20x24perPagex29x20x24pagex29($0, $1, $2) {
|
|
7953
|
-
return Data_Pagination_foldr_Foldable_x28x28x28Paginationx20x24itemsx29x20x24perPagex29x20x24pagex29($6 => $7 => Prelude_Basics_flip(
|
|
7987
|
+
return Data_Pagination_foldr_Foldable_x28x28x28Paginationx20x24itemsx29x20x24perPagex29x20x24pagex29($6 => $7 => Prelude_Basics_flip(csegen_193(), $c => Prelude_Basics_flip($0, $6, $c), $7), $13 => $13, $2)($1);
|
|
7954
7988
|
}
|
|
7955
7989
|
|
|
7956
7990
|
function Data_Pagination_foldlM_Foldable_x28x28x28Paginationx20x24itemsx29x20x24perPagex29x20x24pagex29($0, $1, $2, $3) {
|
|
@@ -8042,7 +8076,7 @@ function System_getEnv($0, $1) {
|
|
|
8042
8076
|
function System_getArgs($0) {
|
|
8043
8077
|
const $12 = n => {
|
|
8044
8078
|
switch(Prelude_EqOrd_x3e_Ord_Int(n, Number(_truncBigInt32(0n)))) {
|
|
8045
|
-
case 1: return Prelude_Interfaces_for($0.a1.a1, {a1: b => a => func => $1e => Prelude_Types_map_Functor_List(func, $1e), a2: csegen_77(), a3: b => a => f => $25 => $26 => $27 => Prelude_Types_traverse_Traversable_List($25, $26, $27)}, Prelude_Types_rangeFromTo_Range_x24a({a1: {a1:
|
|
8079
|
+
case 1: return Prelude_Interfaces_for($0.a1.a1, {a1: b => a => func => $1e => Prelude_Types_map_Functor_List(func, $1e), a2: csegen_77(), a3: b => a => f => $25 => $26 => $27 => Prelude_Types_traverse_Traversable_List($25, $26, $27)}, Prelude_Types_rangeFromTo_Range_x24a({a1: {a1: csegen_513(), a2: $33 => $34 => Prelude_Num_div_Integral_Int($33, $34), a3: $39 => $3a => Prelude_Num_mod_Integral_Int($39, $3a)}, a2: {a1: csegen_260(), a2: {a1: csegen_513(), a2: $45 => _sub32s(0, $45), a3: $49 => $4a => _sub32s($49, $4a)}}}, 0, _sub32s(n, 1)), $52 => $0.a2(undefined)($58 => System_prim__getArg($52, $58)));
|
|
8046
8080
|
case 0: return $0.a1.a1.a2(undefined)({h: 0});
|
|
8047
8081
|
}
|
|
8048
8082
|
};
|
|
@@ -8088,7 +8122,7 @@ function Help_n__4274_1023_heading($0, $1) {
|
|
|
8088
8122
|
}
|
|
8089
8123
|
|
|
8090
8124
|
function Help_n__4274_1022_argument($0, $1) {
|
|
8091
|
-
return Help_n__4274_1019_maybeDecorate($0,
|
|
8125
|
+
return Help_n__4274_1019_maybeDecorate($0, csegen_402(), $1);
|
|
8092
8126
|
}
|
|
8093
8127
|
|
|
8094
8128
|
function Help_help($0) {
|
|
@@ -8166,7 +8200,7 @@ function Config_n__5528_5264_update($0, $1, $2, $3, $4) {
|
|
|
8166
8200
|
}
|
|
8167
8201
|
|
|
8168
8202
|
function Config_n__5884_5648_repo($0, $1, $2, $3, $4) {
|
|
8169
|
-
return Prelude_Types_map_Functor_Maybe(
|
|
8203
|
+
return Prelude_Types_map_Functor_Maybe(csegen_528(), $4);
|
|
8170
8204
|
}
|
|
8171
8205
|
|
|
8172
8206
|
function Config_n__5396_5127_parseSuffix($0, $1) {
|
|
@@ -8186,7 +8220,7 @@ function Config_n__5528_5263_parseBool($0) {
|
|
|
8186
8220
|
}
|
|
8187
8221
|
|
|
8188
8222
|
function Config_n__5884_5647_org($0, $1, $2, $3, $4) {
|
|
8189
|
-
return Prelude_Types_map_Functor_Maybe(
|
|
8223
|
+
return Prelude_Types_map_Functor_Maybe(csegen_532(), $4);
|
|
8190
8224
|
}
|
|
8191
8225
|
|
|
8192
8226
|
function Config_n__5884_5645_orIfEmpty($0, $1, $2, $3, $4, $5) {
|
|
@@ -8249,9 +8283,9 @@ function Config_syncConfig($0, $1, $2, $3, $4) {
|
|
|
8249
8283
|
const $14 = orgMembers => $15 => $16 => {
|
|
8250
8284
|
const $1a = updatedAt => {
|
|
8251
8285
|
const $1b = {a1: updatedAt, a2: $0.a2, a3: $0.a3, a4: $0.a4, a5: $0.a5, a6: $0.a6, a7: teamSlugs, a8: orgMembers, a9: $0.a9};
|
|
8252
|
-
return Prelude_Interfaces_x3ex3e(csegen_15(), $2a => $2b => Data_Promise_map_Functor_Promise($2e => (undefined), $30 => $31 => Config_writeConfig($1b, $30, $31), $2a, $2b), () => Prelude_Interfaces_x3ex3e(csegen_15(), Prelude_Interfaces_when(csegen_9(), $2, () => Prelude_Interfaces_x3ex3e(csegen_15(), Prelude_IO_putStrLn(csegen_21(), 'Your updated configuration is:'), () => Prelude_IO_printLn(
|
|
8286
|
+
return Prelude_Interfaces_x3ex3e(csegen_15(), $2a => $2b => Data_Promise_map_Functor_Promise($2e => (undefined), $30 => $31 => Config_writeConfig($1b, $30, $31), $2a, $2b), () => Prelude_Interfaces_x3ex3e(csegen_15(), Prelude_Interfaces_when(csegen_9(), $2, () => Prelude_Interfaces_x3ex3e(csegen_15(), Prelude_IO_putStrLn(csegen_21(), 'Your updated configuration is:'), () => Prelude_IO_printLn(csegen_539(), $0))), () => $50 => $51 => Data_Promise_pure_Applicative_Promise($1b, $50, $51)));
|
|
8253
8287
|
};
|
|
8254
|
-
return Data_Promise_x3ex3ex3d_Monad_Promise(
|
|
8288
|
+
return Data_Promise_x3ex3ex3d_Monad_Promise(csegen_535(), $1a, $15, $16);
|
|
8255
8289
|
};
|
|
8256
8290
|
return Data_Promise_x3ex3ex3d_Monad_Promise(FFI_GitHub_listOrgMembers($1, $0.a2), $14, $c, $d);
|
|
8257
8291
|
};
|
|
@@ -8314,14 +8348,14 @@ function Config_loadConfig($0, $1, $2) {
|
|
|
8314
8348
|
}
|
|
8315
8349
|
};
|
|
8316
8350
|
const $a = {a1: $b, a2: a => $13 => ({h: 1, a1: $13}), a3: $15};
|
|
8317
|
-
const $9 = {a1: $a, a2:
|
|
8351
|
+
const $9 = {a1: $a, a2: csegen_244(), a3: csegen_245()};
|
|
8318
8352
|
const $24 = b => a => func => $25 => {
|
|
8319
8353
|
switch($25.h) {
|
|
8320
8354
|
case 0: return {h: 0, a1: $25.a1};
|
|
8321
8355
|
case 1: return {h: 1, a1: func($25.a1)};
|
|
8322
8356
|
}
|
|
8323
8357
|
};
|
|
8324
|
-
const $23 = {a1: $24, a2:
|
|
8358
|
+
const $23 = {a1: $24, a2: csegen_454(), a3: csegen_458()};
|
|
8325
8359
|
return Prelude_Interfaces_Monad_x3ex3ex3d_Monad_Composex28x28x2ex20x24mx29x20x24tx29($0.a1, $9, $23, $4, $5);
|
|
8326
8360
|
};
|
|
8327
8361
|
const $39 = $3a => {
|
|
@@ -8389,11 +8423,11 @@ function Config_dropPrefixx27($0, $1) {
|
|
|
8389
8423
|
function Config_createConfig($0, $1, $2, $3) {
|
|
8390
8424
|
return Prelude_Interfaces_x3ex3e(csegen_15(), Prelude_IO_putStrLn(csegen_21(), Prelude_Interfaces_concat(csegen_62(), csegen_77(), {a1: 'Creating a new configuration (storing in ', a2: {a1: Data_Config_filename(), a2: {a1: ')...', a2: {h: 0}}}})), () => $1a => $1b => {
|
|
8391
8425
|
const $3a = defaultOrgAndRepo => {
|
|
8392
|
-
const $3b = Config_n__5884_5650_defaultStr($0, $1, $3, $2,
|
|
8426
|
+
const $3b = Config_n__5884_5650_defaultStr($0, $1, $3, $2, csegen_532(), defaultOrgAndRepo);
|
|
8393
8427
|
return Prelude_Interfaces_x3ex3e(csegen_15(), Prelude_IO_putStrLn(csegen_21(), Prelude_Interfaces_concat(csegen_62(), csegen_77(), {a1: 'What GitHub org would you like to use harmony for', a2: {a1: $3b, a2: {a1: '?', a2: {h: 0}}}})), () => $59 => $5a => {
|
|
8394
8428
|
const $73 = org => {
|
|
8395
|
-
const $74 = Config_n__5884_5650_defaultStr($0, $1, $3, $2,
|
|
8396
|
-
return Prelude_Interfaces_x3ex3e(csegen_15(), Prelude_IO_putStrLn(csegen_21(), Prelude_Interfaces_concat(csegen_62(), csegen_77(), {a1: 'What repository would you like to use harmony for', a2: {a1: $74, a2: {a1: '?', a2: {h: 0}}}})), () => $92 => $93 => Data_Promise_x3ex3ex3d_Monad_Promise(Prelude_Interfaces_x3cx24x3e(csegen_103(), $9a => Config_n__5884_5645_orIfEmpty($0, $1, $3, $2, Config_n__5884_5648_repo($0, $1, $3, $2, defaultOrgAndRepo), Data_String_trim($9a)),
|
|
8429
|
+
const $74 = Config_n__5884_5650_defaultStr($0, $1, $3, $2, csegen_528(), defaultOrgAndRepo);
|
|
8430
|
+
return Prelude_Interfaces_x3ex3e(csegen_15(), Prelude_IO_putStrLn(csegen_21(), Prelude_Interfaces_concat(csegen_62(), csegen_77(), {a1: 'What repository would you like to use harmony for', a2: {a1: $74, a2: {a1: '?', a2: {h: 0}}}})), () => $92 => $93 => Data_Promise_x3ex3ex3d_Monad_Promise(Prelude_Interfaces_x3cx24x3e(csegen_103(), $9a => Config_n__5884_5645_orIfEmpty($0, $1, $3, $2, Config_n__5884_5648_repo($0, $1, $3, $2, defaultOrgAndRepo), Data_String_trim($9a)), csegen_404()), repo => Prelude_Interfaces_x3ex3e(csegen_15(), Prelude_IO_putStr(csegen_21(), 'Would you like harmony to comment when it assigns reviewers? [Y/n] '), () => $b6 => $b7 => Data_Promise_x3ex3ex3d_Monad_Promise(Prelude_Interfaces_x3cx24x3e(csegen_103(), $be => Config_n__5884_5646_yesUnlessNo($0, $1, $3, $2, Data_String_trim($be)), csegen_404()), commentOnAssign => Prelude_Interfaces_x3ex3e(csegen_15(), Prelude_IO_putStr(csegen_21(), 'Would you like harmony to assign teams in addition to individuals when it assigns reviewers? [Y/n] '), () => $d3 => $d4 => Data_Promise_x3ex3ex3d_Monad_Promise(Prelude_Interfaces_x3cx24x3e(csegen_103(), $db => Config_n__5884_5646_yesUnlessNo($0, $1, $3, $2, Data_String_trim($db)), csegen_404()), assignTeams => Prelude_Interfaces_x3ex3e(csegen_15(), Prelude_IO_putStrLn(csegen_21(), 'Creating config...'), () => $f0 => $f1 => {
|
|
8397
8431
|
const $fc = mainBranch => $fd => $fe => {
|
|
8398
8432
|
const $102 = updatedAt => {
|
|
8399
8433
|
const $103 = {a1: Prelude_Interfaces_concat(csegen_62(), csegen_77(), {a1: './', a2: {a1: Data_Config_filename(), a2: {h: 0}}}), a2: $2, a3: $3};
|
|
@@ -8401,19 +8435,19 @@ function Config_createConfig($0, $1, $2, $3) {
|
|
|
8401
8435
|
const $119 = teamSlugs => $11a => $11b => {
|
|
8402
8436
|
const $121 = orgMembers => {
|
|
8403
8437
|
const $122 = {a1: updatedAt, a2: org, a3: repo, a4: mainBranch, a5: assignTeams, a6: commentOnAssign, a7: teamSlugs, a8: orgMembers, a9: $103};
|
|
8404
|
-
return Prelude_Interfaces_x3ex3e(csegen_15(), $130 => $131 => Data_Promise_map_Functor_Promise($134 => (undefined), $136 => $137 => Config_writeConfig($122, $136, $137), $130, $131), () => Prelude_Interfaces_x3ex3e(csegen_15(), Prelude_IO_putStrLn(csegen_21(), 'Your new configuration is:'), () => Prelude_Interfaces_x3ex3e(csegen_15(), Prelude_IO_printLn(
|
|
8438
|
+
return Prelude_Interfaces_x3ex3e(csegen_15(), $130 => $131 => Data_Promise_map_Functor_Promise($134 => (undefined), $136 => $137 => Config_writeConfig($122, $136, $137), $130, $131), () => Prelude_Interfaces_x3ex3e(csegen_15(), Prelude_IO_putStrLn(csegen_21(), 'Your new configuration is:'), () => Prelude_Interfaces_x3ex3e(csegen_15(), Prelude_IO_printLn(csegen_539(), $122), () => $151 => $152 => Data_Promise_pure_Applicative_Promise($122, $151, $152))));
|
|
8405
8439
|
};
|
|
8406
8440
|
return Data_Promise_x3ex3ex3d_Monad_Promise(FFI_GitHub_listOrgMembers($1, org), $121, $11a, $11b);
|
|
8407
8441
|
};
|
|
8408
8442
|
return Data_Promise_x3ex3ex3d_Monad_Promise(FFI_GitHub_listTeams($1, org), $119, $112, $113);
|
|
8409
8443
|
};
|
|
8410
8444
|
};
|
|
8411
|
-
return Data_Promise_x3ex3ex3d_Monad_Promise(
|
|
8445
|
+
return Data_Promise_x3ex3ex3d_Monad_Promise(csegen_535(), $102, $fd, $fe);
|
|
8412
8446
|
};
|
|
8413
8447
|
return Data_Promise_x3ex3ex3d_Monad_Promise($f4 => $f5 => FFI_GitHub_getRepoDefaultBranch($1, org, repo, $f4, $f5), $fc, $f0, $f1);
|
|
8414
8448
|
}), $d3, $d4)), $b6, $b7)), $92, $93));
|
|
8415
8449
|
};
|
|
8416
|
-
return Data_Promise_x3ex3ex3d_Monad_Promise(Prelude_Interfaces_x3cx24x3e(csegen_103(), $61 => Config_n__5884_5645_orIfEmpty($0, $1, $3, $2, Config_n__5884_5647_org($0, $1, $3, $2, defaultOrgAndRepo), Data_String_trim($61)),
|
|
8450
|
+
return Data_Promise_x3ex3ex3d_Monad_Promise(Prelude_Interfaces_x3cx24x3e(csegen_103(), $61 => Config_n__5884_5645_orIfEmpty($0, $1, $3, $2, Config_n__5884_5647_org($0, $1, $3, $2, defaultOrgAndRepo), Data_String_trim($61)), csegen_404()), $73, $59, $5a);
|
|
8417
8451
|
});
|
|
8418
8452
|
};
|
|
8419
8453
|
return Data_Promise_x3ex3ex3d_Monad_Promise($1e => $1f => Data_Promise_x3cx7cx3e_Alternative_Promise(Prelude_Interfaces_x3cx24x3e(csegen_103(), $26 => Config_parseGitHubURI($26), $2a => $2b => FFI_Git_remoteURI($0, 'origin', $2a, $2b)), () => $32 => $33 => Data_Promise_pure_Applicative_Promise({h: 0}, $32, $33), $1e, $1f), $3a, $1a, $1b);
|
|
@@ -8569,7 +8603,7 @@ function BashCompletion_cmdOpts($0, $1) {
|
|
|
8569
8603
|
switch($0) {
|
|
8570
8604
|
case '-': {
|
|
8571
8605
|
switch($1) {
|
|
8572
|
-
case 'contribute': return
|
|
8606
|
+
case 'contribute': return csegen_564();
|
|
8573
8607
|
default: {
|
|
8574
8608
|
switch($1) {
|
|
8575
8609
|
case 'contribute': {
|
|
@@ -8585,7 +8619,7 @@ function BashCompletion_cmdOpts($0, $1) {
|
|
|
8585
8619
|
}
|
|
8586
8620
|
case '--': {
|
|
8587
8621
|
switch($1) {
|
|
8588
|
-
case 'contribute': return
|
|
8622
|
+
case 'contribute': return csegen_564();
|
|
8589
8623
|
default: {
|
|
8590
8624
|
switch($1) {
|
|
8591
8625
|
case 'contribute': {
|
|
@@ -8629,7 +8663,7 @@ function BashCompletion_cmdOpts($0, $1) {
|
|
|
8629
8663
|
switch($0) {
|
|
8630
8664
|
case '-': {
|
|
8631
8665
|
switch($1) {
|
|
8632
|
-
case 'contribute': return
|
|
8666
|
+
case 'contribute': return csegen_564();
|
|
8633
8667
|
default: {
|
|
8634
8668
|
switch($1) {
|
|
8635
8669
|
case 'contribute': {
|
|
@@ -8645,7 +8679,7 @@ function BashCompletion_cmdOpts($0, $1) {
|
|
|
8645
8679
|
}
|
|
8646
8680
|
case '--': {
|
|
8647
8681
|
switch($1) {
|
|
8648
|
-
case 'contribute': return
|
|
8682
|
+
case 'contribute': return csegen_564();
|
|
8649
8683
|
default: {
|
|
8650
8684
|
switch($1) {
|
|
8651
8685
|
case 'contribute': {
|
|
@@ -8686,7 +8720,7 @@ function AppVersion_printVersion($0) {
|
|
|
8686
8720
|
}
|
|
8687
8721
|
|
|
8688
8722
|
const AppVersion_appVersion = __lazy(function () {
|
|
8689
|
-
return '0.7.
|
|
8723
|
+
return '0.7.1';
|
|
8690
8724
|
});
|
|
8691
8725
|
|
|
8692
8726
|
|