@mattpolzin/harmony 2.4.0 → 2.4.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.
- package/harmony +225 -161
- package/package.json +1 -1
package/harmony
CHANGED
|
@@ -820,7 +820,7 @@ function x24tcOpt_1($0) {
|
|
|
820
820
|
case 0: return {h: 0 /* {TcDone:1} */, a1: $0.a5};
|
|
821
821
|
default: {
|
|
822
822
|
const $18 = {a1: $0.a5.a1.a1, a2: $0.a5.a1.a2, a3: $0.a5.a1.a3};
|
|
823
|
-
const $1c = Data_List_DeleteBy_deleteByx27($1f => $20 => Prelude_Basics_on($23 => $24 => $0.a1.a1.a1($23)($24),
|
|
823
|
+
const $1c = Data_List_DeleteBy_deleteByx27($1f => $20 => Prelude_Basics_on($23 => $24 => $0.a1.a1.a1($23)($24), csegen_729(), $1f, $20), $18, $0.a6);
|
|
824
824
|
switch($1c.a1.h) {
|
|
825
825
|
case 0: /* nothing */ {
|
|
826
826
|
switch($0.a8) {
|
|
@@ -835,7 +835,7 @@ function x24tcOpt_1($0) {
|
|
|
835
835
|
}
|
|
836
836
|
default: {
|
|
837
837
|
const $6b = {a1: $0.a5.a1.a1, a2: $0.a5.a1.a2, a3: $0.a5.a1.a3};
|
|
838
|
-
const $6f = Data_List_DeleteBy_deleteByx27($72 => $73 => Prelude_Basics_on($76 => $77 => $0.a1.a1.a1($76)($77),
|
|
838
|
+
const $6f = Data_List_DeleteBy_deleteByx27($72 => $73 => Prelude_Basics_on($76 => $77 => $0.a1.a1.a1($76)($77), csegen_729(), $72, $73), $6b, $0.a6);
|
|
839
839
|
switch($6f.a1.h) {
|
|
840
840
|
case 0: /* nothing */ {
|
|
841
841
|
switch($0.a8) {
|
|
@@ -860,7 +860,7 @@ function x24tcOpt_1($0) {
|
|
|
860
860
|
case 0: return {h: 0 /* {TcDone:1} */, a1: $0.a5};
|
|
861
861
|
default: {
|
|
862
862
|
const $c2 = {a1: $0.a5.a1.a1, a2: $0.a5.a1.a2, a3: $0.a5.a1.a3};
|
|
863
|
-
const $c6 = Data_List_DeleteBy_deleteByx27($c9 => $ca => Prelude_Basics_on($cd => $ce => $0.a1.a1.a1($cd)($ce),
|
|
863
|
+
const $c6 = Data_List_DeleteBy_deleteByx27($c9 => $ca => Prelude_Basics_on($cd => $ce => $0.a1.a1.a1($cd)($ce), csegen_729(), $c9, $ca), $c2, $0.a6);
|
|
864
864
|
switch($c6.a1.h) {
|
|
865
865
|
case 0: /* nothing */ {
|
|
866
866
|
switch($0.a8) {
|
|
@@ -875,7 +875,7 @@ function x24tcOpt_1($0) {
|
|
|
875
875
|
}
|
|
876
876
|
default: {
|
|
877
877
|
const $115 = {a1: $0.a5.a1.a1, a2: $0.a5.a1.a2, a3: $0.a5.a1.a3};
|
|
878
|
-
const $119 = Data_List_DeleteBy_deleteByx27($11c => $11d => Prelude_Basics_on($120 => $121 => $0.a1.a1.a1($120)($121),
|
|
878
|
+
const $119 = Data_List_DeleteBy_deleteByx27($11c => $11d => Prelude_Basics_on($120 => $121 => $0.a1.a1.a1($120)($121), csegen_729(), $11c, $11d), $115, $0.a6);
|
|
879
879
|
switch($119.a1.h) {
|
|
880
880
|
case 0: /* nothing */ {
|
|
881
881
|
switch($0.a8) {
|
|
@@ -2347,124 +2347,124 @@ const csegen_535 = __lazy(function () {
|
|
|
2347
2347
|
return {a1: csegen_62()('?'), a2: {h: 0}};
|
|
2348
2348
|
});
|
|
2349
2349
|
|
|
2350
|
-
/* {csegen:
|
|
2351
|
-
const
|
|
2350
|
+
/* {csegen:578} */
|
|
2351
|
+
const csegen_578 = __lazy(function () {
|
|
2352
2352
|
return Text_PrettyPrint_Prettyprinter_Doc_pretty_Pretty_String(csegen_62()(', '));
|
|
2353
2353
|
});
|
|
2354
2354
|
|
|
2355
|
-
/* {csegen:
|
|
2356
|
-
const
|
|
2355
|
+
/* {csegen:588} */
|
|
2356
|
+
const csegen_588 = __lazy(function () {
|
|
2357
2357
|
return {a1: csegen_9(), a2: a => ({h: 0}), a3: a => $4 => $5 => Prelude_Types_x3cx7cx3e_Alternative_Maybe($4, $5)};
|
|
2358
2358
|
});
|
|
2359
2359
|
|
|
2360
|
-
/* {csegen:
|
|
2361
|
-
const
|
|
2360
|
+
/* {csegen:590} */
|
|
2361
|
+
const csegen_590 = __lazy(function () {
|
|
2362
2362
|
return csegen_55()($3 => Data_List_sort(csegen_442(), $3));
|
|
2363
2363
|
});
|
|
2364
2364
|
|
|
2365
|
-
/* {csegen:
|
|
2366
|
-
const
|
|
2365
|
+
/* {csegen:591} */
|
|
2366
|
+
const csegen_591 = __lazy(function () {
|
|
2367
2367
|
return $0 => FFI_Concurrency_promiseAll(csegen_193(), $0);
|
|
2368
2368
|
});
|
|
2369
2369
|
|
|
2370
|
-
/* {csegen:
|
|
2371
|
-
const
|
|
2370
|
+
/* {csegen:593} */
|
|
2371
|
+
const csegen_593 = __lazy(function () {
|
|
2372
2372
|
const $0 = $1 => Text_PrettyPrint_Prettyprinter_Doc_pretty_Pretty_String($1);
|
|
2373
2373
|
return $4 => $0($4);
|
|
2374
2374
|
});
|
|
2375
2375
|
|
|
2376
|
-
/* {csegen:
|
|
2377
|
-
const
|
|
2376
|
+
/* {csegen:604} */
|
|
2377
|
+
const csegen_604 = __lazy(function () {
|
|
2378
2378
|
return csegen_55()($3 => $3.a1);
|
|
2379
2379
|
});
|
|
2380
2380
|
|
|
2381
|
-
/* {csegen:
|
|
2382
|
-
const
|
|
2381
|
+
/* {csegen:606} */
|
|
2382
|
+
const csegen_606 = __lazy(function () {
|
|
2383
2383
|
return $0 => $1 => Data_Date_compare_Ord_Date($0, $1);
|
|
2384
2384
|
});
|
|
2385
2385
|
|
|
2386
|
-
/* {csegen:
|
|
2387
|
-
const
|
|
2386
|
+
/* {csegen:607} */
|
|
2387
|
+
const csegen_607 = __lazy(function () {
|
|
2388
2388
|
return $0 => $0.a2;
|
|
2389
2389
|
});
|
|
2390
2390
|
|
|
2391
|
-
/* {csegen:
|
|
2392
|
-
const
|
|
2393
|
-
return $0 => $1 => Prelude_Basics_on(
|
|
2391
|
+
/* {csegen:608} */
|
|
2392
|
+
const csegen_608 = __lazy(function () {
|
|
2393
|
+
return $0 => $1 => Prelude_Basics_on(csegen_606(), csegen_607(), $0, $1);
|
|
2394
2394
|
});
|
|
2395
2395
|
|
|
2396
|
-
/* {csegen:
|
|
2397
|
-
const
|
|
2396
|
+
/* {csegen:621} */
|
|
2397
|
+
const csegen_621 = __lazy(function () {
|
|
2398
2398
|
return $0 => $0.a2;
|
|
2399
2399
|
});
|
|
2400
2400
|
|
|
2401
|
-
/* {csegen:
|
|
2402
|
-
const
|
|
2401
|
+
/* {csegen:628} */
|
|
2402
|
+
const csegen_628 = __lazy(function () {
|
|
2403
2403
|
return $0 => $0.a1;
|
|
2404
2404
|
});
|
|
2405
2405
|
|
|
2406
|
-
/* {csegen:
|
|
2407
|
-
const
|
|
2406
|
+
/* {csegen:643} */
|
|
2407
|
+
const csegen_643 = __lazy(function () {
|
|
2408
2408
|
return Text_PrettyPrint_Prettyprinter_Doc_pretty_Pretty_String(csegen_62()('open:'));
|
|
2409
2409
|
});
|
|
2410
2410
|
|
|
2411
|
-
/* {csegen:
|
|
2412
|
-
const
|
|
2411
|
+
/* {csegen:647} */
|
|
2412
|
+
const csegen_647 = __lazy(function () {
|
|
2413
2413
|
return csegen_60()(date => Text_PrettyPrint_Prettyprinter_Doc_indent(2, Text_PrettyPrint_Prettyprinter_Doc_hsep({a1: Text_PrettyPrint_Prettyprinter_Doc_pretty_Pretty_String(csegen_62()('earliest:')), a2: {a1: Text_PrettyPrint_Prettyprinter_Doc_pretty_Pretty_String(Data_Date_show_Show_Date(date)), a2: {h: 0}}})));
|
|
2414
2414
|
});
|
|
2415
2415
|
|
|
2416
|
-
/* {csegen:
|
|
2417
|
-
const
|
|
2416
|
+
/* {csegen:649} */
|
|
2417
|
+
const csegen_649 = __lazy(function () {
|
|
2418
2418
|
return Text_PrettyPrint_Prettyprinter_Doc_pretty_Pretty_String(csegen_62()('closed:'));
|
|
2419
2419
|
});
|
|
2420
2420
|
|
|
2421
|
-
/* {csegen:
|
|
2422
|
-
const
|
|
2421
|
+
/* {csegen:672} */
|
|
2422
|
+
const csegen_672 = __lazy(function () {
|
|
2423
2423
|
return csegen_62()('pr_description.tmp.md');
|
|
2424
2424
|
});
|
|
2425
2425
|
|
|
2426
|
-
/* {csegen:
|
|
2427
|
-
const
|
|
2426
|
+
/* {csegen:722} */
|
|
2427
|
+
const csegen_722 = __lazy(function () {
|
|
2428
2428
|
return $0 => $1 => Data_Promise_reject('Multiple PRs for the current brach. Harmony only handles 1 PR per branch currently.', $0, $1);
|
|
2429
2429
|
});
|
|
2430
2430
|
|
|
2431
|
-
/* {csegen:
|
|
2432
|
-
const
|
|
2431
|
+
/* {csegen:729} */
|
|
2432
|
+
const csegen_729 = __lazy(function () {
|
|
2433
2433
|
return $0 => $0.a1;
|
|
2434
2434
|
});
|
|
2435
2435
|
|
|
2436
|
-
/* {csegen:
|
|
2437
|
-
const
|
|
2436
|
+
/* {csegen:755} */
|
|
2437
|
+
const csegen_755 = __lazy(function () {
|
|
2438
2438
|
return {a1: {a1: Text_PrettyPrint_Prettyprinter_Doc_emptyDoc()}, a2: {a1: {a1: Text_PrettyPrint_Prettyprinter_Doc_emptyDoc()}, a2: {h: 0}}};
|
|
2439
2439
|
});
|
|
2440
2440
|
|
|
2441
|
-
/* {csegen:
|
|
2442
|
-
const
|
|
2441
|
+
/* {csegen:776} */
|
|
2442
|
+
const csegen_776 = __lazy(function () {
|
|
2443
2443
|
return {a1: ann => $1 => Graph_pretty_Pretty_Date($1), a2: ann => $5 => $6 => Graph_prettyPrec_Pretty_Date($5, $6)};
|
|
2444
2444
|
});
|
|
2445
2445
|
|
|
2446
|
+
/* {csegen:791} */
|
|
2447
|
+
const csegen_791 = __lazy(function () {
|
|
2448
|
+
return csegen_116()($3 => BashCompletion_hashify(BashCompletion_slugify($3)));
|
|
2449
|
+
});
|
|
2450
|
+
|
|
2446
2451
|
/* {csegen:793} */
|
|
2447
2452
|
const csegen_793 = __lazy(function () {
|
|
2448
|
-
return csegen_116()($3 =>
|
|
2453
|
+
return csegen_116()($3 => BashCompletion_slugify($3));
|
|
2449
2454
|
});
|
|
2450
2455
|
|
|
2451
|
-
/* {csegen:
|
|
2452
|
-
const
|
|
2453
|
-
return
|
|
2456
|
+
/* {csegen:794} */
|
|
2457
|
+
const csegen_794 = __lazy(function () {
|
|
2458
|
+
return {a1: '--completed', a2: {a1: 'graph', a2: {h: 0}}};
|
|
2454
2459
|
});
|
|
2455
2460
|
|
|
2456
2461
|
/* {csegen:796} */
|
|
2457
2462
|
const csegen_796 = __lazy(function () {
|
|
2458
|
-
return {a1: '--
|
|
2463
|
+
return {a1: {a1: '--checkout', a2: {a1: '-c', a2: {h: 0}}}};
|
|
2459
2464
|
});
|
|
2460
2465
|
|
|
2461
2466
|
/* {csegen:798} */
|
|
2462
2467
|
const csegen_798 = __lazy(function () {
|
|
2463
|
-
return {a1: {a1: '--checkout', a2: {a1: '-c', a2: {h: 0}}}};
|
|
2464
|
-
});
|
|
2465
|
-
|
|
2466
|
-
/* {csegen:800} */
|
|
2467
|
-
const csegen_800 = __lazy(function () {
|
|
2468
2468
|
return {a1: {a1: '--completed', a2: {a1: '-c', a2: {h: 0}}}};
|
|
2469
2469
|
});
|
|
2470
2470
|
|
|
@@ -2473,18 +2473,18 @@ function prim__sub_Integer($0, $1) {
|
|
|
2473
2473
|
return ($0-$1);
|
|
2474
2474
|
}
|
|
2475
2475
|
|
|
2476
|
-
/* Main.
|
|
2477
|
-
function
|
|
2476
|
+
/* Main.6951:1348:parsePg */
|
|
2477
|
+
function Main_n__6951_1348_parsePg($0, $1, $2, $3, $4, $5, $6) {
|
|
2478
2478
|
return Data_String_parsePositive(csegen_2(), $6);
|
|
2479
2479
|
}
|
|
2480
2480
|
|
|
2481
|
-
/* Main.
|
|
2482
|
-
function
|
|
2481
|
+
/* Main.6951:1347:parseLim */
|
|
2482
|
+
function Main_n__6951_1347_parseLim($0, $1, $2, $3, $4, $5) {
|
|
2483
2483
|
return Prelude_Interfaces_x3cx3dx3c(csegen_14(), x => Data_Fin_natToFin(x, 101n), $e => Data_String_parsePositive(csegen_2(), $e));
|
|
2484
2484
|
}
|
|
2485
2485
|
|
|
2486
|
-
/* Main.
|
|
2487
|
-
function
|
|
2486
|
+
/* Main.6812:1149:configuredOpts */
|
|
2487
|
+
function Main_n__6812_1149_configuredOpts($0, $1, $2, $3) {
|
|
2488
2488
|
const $11 = $12 => {
|
|
2489
2489
|
switch($12.h) {
|
|
2490
2490
|
case 1: /* Right */ return $0.a1.a1.a2(undefined)(BashCompletion_opts($12.a1, $3, $2, $1));
|
|
@@ -2706,7 +2706,7 @@ function Main_handleAuthenticatedArgs($0, $1, $2, $3) {
|
|
|
2706
2706
|
}
|
|
2707
2707
|
return Prelude_Types_x3ex3ex3d_Monad_Maybe($a7, filter => ({a1: {a1: filter, a2: {a1: $a4.a1, a2: $a4.a2}}}));
|
|
2708
2708
|
};
|
|
2709
|
-
const $84 = Prelude_Types_x3ex3ex3d_Monad_Maybe(Prelude_Types_x3cx2ax3e_Applicative_Maybe(Prelude_Types_x3cx2ax3e_Applicative_Maybe({a1: $8c => $8d => ({a1: $8c, a2: $8d})},
|
|
2709
|
+
const $84 = Prelude_Types_x3ex3ex3d_Monad_Maybe(Prelude_Types_x3cx2ax3e_Applicative_Maybe(Prelude_Types_x3cx2ax3e_Applicative_Maybe({a1: $8c => $8d => ({a1: $8c, a2: $8d})}, Main_n__6951_1347_parseLim($1, $2, $3.a2.a2.a1, $3.a2.a2.a2.a1, $3.a2.a2.a2.a2.a1, $0)($3.a2.a2.a2.a1)), Main_n__6951_1348_parsePg($1, $2, $3.a2.a2.a1, $3.a2.a2.a2.a1, $3.a2.a2.a2.a2.a1, $0, $3.a2.a2.a2.a2.a1)), $a3);
|
|
2710
2710
|
switch($84.h) {
|
|
2711
2711
|
case undefined: /* just */ return Data_Promise_x3ex3ex3d_Monad_Promise(FFI_GitHub_listPullRequestsJsonStr($2, $0.a2, $0.a3, $84.a1.a1, $84.a1.a2.a1, $84.a1.a2.a2), pullsJsonStr => $c3 => $c4 => $c5 => Data_Promise_liftIO_HasIO_Promise($c8 => Prelude_IO_prim__putStr(pullsJsonStr, $c8), $c3, $c4, $c5));
|
|
2712
2712
|
case 0: /* nothing */ return csegen_68();
|
|
@@ -2912,7 +2912,7 @@ function Main_exitError($0, $1) {
|
|
|
2912
2912
|
|
|
2913
2913
|
/* Main.bashCompletion : HasIO io => String -> String -> String -> io () */
|
|
2914
2914
|
function Main_bashCompletion($0, $1, $2, $3) {
|
|
2915
|
-
const $4 = Prelude_Types_maybe(() =>
|
|
2915
|
+
const $4 = Prelude_Types_maybe(() => Main_n__6812_1149_configuredOpts($0, $3, $2, $1), () => $d => $0.a1.a1.a2(undefined)($d), BashCompletion_cmdOpts($1, $2, $3));
|
|
2916
2916
|
return $0.a1.a2(undefined)(undefined)($4)($24 => $0.a2(undefined)($2a => Prelude_IO_prim__putStr(Data_String_fastUnlines($24), $2a)));
|
|
2917
2917
|
}
|
|
2918
2918
|
|
|
@@ -9660,7 +9660,7 @@ function Data_List_PrefixSuffix_dropPrefix($0, $1, $2) {
|
|
|
9660
9660
|
}
|
|
9661
9661
|
|
|
9662
9662
|
/* Commands.case block in contribute */
|
|
9663
|
-
function
|
|
9663
|
+
function Commands_case__contribute_2594($0, $1, $2, $3, $4, $5, $6, $7, $8, $9, $a) {
|
|
9664
9664
|
const $c = Data_List_headx27(Data_List_drop($6, Prelude_Types_List_tailRecAppend($a.a1, $a.a2)));
|
|
9665
9665
|
switch($c.h) {
|
|
9666
9666
|
case 0: /* nothing */ return $16 => $17 => Data_Promise_reject(csegen_62()('No open PRs to review!'), $16, $17);
|
|
@@ -9683,7 +9683,7 @@ function Commands_case__contribute_2450($0, $1, $2, $3, $4, $5, $6, $7, $8, $9,
|
|
|
9683
9683
|
}
|
|
9684
9684
|
|
|
9685
9685
|
/* Commands.case block in case block in graph */
|
|
9686
|
-
function
|
|
9686
|
+
function Commands_case__casex20blockx20inx20graph_2168($0, $1, $2, $3, $4, $5, $6, $7) {
|
|
9687
9687
|
let $a;
|
|
9688
9688
|
switch(Data_Maybe_isJust($3)) {
|
|
9689
9689
|
case 1: {
|
|
@@ -9699,15 +9699,15 @@ function Commands_case__casex20blockx20inx20graph_2024($0, $1, $2, $3, $4, $5, $
|
|
|
9699
9699
|
}
|
|
9700
9700
|
|
|
9701
9701
|
/* Commands.case block in graph */
|
|
9702
|
-
function
|
|
9702
|
+
function Commands_case__graph_2126($0, $1, $2, $3, $4) {
|
|
9703
9703
|
switch($4.h) {
|
|
9704
|
-
case undefined: /* just */ return Data_Promise_x3ex3ex3d_Monad_Promise(FFI_GitHub_listTeamMembers($0, $2.a2, $4.a1), teamMemberLogins => Data_Promise_x3ex3ex3d_Monad_Promise(PullRequest_listPartitionedPRs($2, $0, 4n, 100n), prs =>
|
|
9704
|
+
case undefined: /* just */ return Data_Promise_x3ex3ex3d_Monad_Promise(FFI_GitHub_listTeamMembers($0, $2.a2, $4.a1), teamMemberLogins => Data_Promise_x3ex3ex3d_Monad_Promise(PullRequest_listPartitionedPRs($2, $0, 4n, 100n), prs => Commands_case__casex20blockx20inx20graph_2168($0, $1, $2, $3, $4.a1, teamMemberLogins, prs, PullRequest_rf__allReviewers(prs))));
|
|
9705
9705
|
case 0: /* nothing */ return $21 => $22 => Data_Promise_reject('The graph command expects the name of a GitHub Team as an argument.', $21, $22);
|
|
9706
9706
|
}
|
|
9707
9707
|
}
|
|
9708
9708
|
|
|
9709
9709
|
/* Commands.case block in assign */
|
|
9710
|
-
function
|
|
9710
|
+
function Commands_case__assign_1766($0, $1, $2, $3, $4, $5) {
|
|
9711
9711
|
let $8;
|
|
9712
9712
|
switch(Prelude_Types_null_Foldable_List($5.a1)) {
|
|
9713
9713
|
case 1: {
|
|
@@ -9756,52 +9756,43 @@ function Commands_case__assign_1622($0, $1, $2, $3, $4, $5) {
|
|
|
9756
9756
|
}
|
|
9757
9757
|
|
|
9758
9758
|
/* Commands.case block in case block in assign,partitionedArgs */
|
|
9759
|
-
function
|
|
9759
|
+
function Commands_case__casex20blockx20inx20assignx2cpartitionedArgs_1686($0, $1, $2, $3, $4, $5, $6, $7) {
|
|
9760
9760
|
const $9 = Prelude_Interfaces_mapHom({a1: d => b => c => a => $d => $e => $f => ({a1: $d($f.a1), a2: $e($f.a2)}), a2: b => c => a => $18 => $19 => ({a1: $18($19.a1), a2: $19.a2}), a3: a => d => b => $20 => $21 => ({a1: $21.a1, a2: $20($21.a2)})}, csegen_116()($2b => Data_String_Extra_drop(1n, $2b)), {a1: $5, a2: $7.a1});
|
|
9761
9761
|
return {a1: $9.a1, a2: {a1: $7.a2, a2: $9.a2}};
|
|
9762
9762
|
}
|
|
9763
9763
|
|
|
9764
9764
|
/* Commands.case block in assign,partitionedArgs */
|
|
9765
|
-
function
|
|
9766
|
-
return
|
|
9765
|
+
function Commands_case__assignx2cpartitionedArgs_1663($0, $1, $2, $3, $4, $5) {
|
|
9766
|
+
return Commands_case__casex20blockx20inx20assignx2cpartitionedArgs_1686($0, $1, $2, $3, $4, $5.a1, $5.a2, Data_List_partition($12 => BashCompletion_isHashPrefix($12), $5.a2));
|
|
9767
9767
|
}
|
|
9768
9768
|
|
|
9769
|
-
/* Commands.
|
|
9770
|
-
function
|
|
9771
|
-
const $6 = Data_List_find($9 => Prelude_EqOrd_x3dx3d_Eq_String($9, $5), $4);
|
|
9772
|
-
switch($6.h) {
|
|
9773
|
-
case undefined: /* just */ return $6.a1;
|
|
9774
|
-
case 0: /* nothing */ return BashCompletion_unslugify($5);
|
|
9775
|
-
}
|
|
9776
|
-
}
|
|
9777
|
-
|
|
9778
|
-
/* Commands.7702:1778:putNameLn */
|
|
9779
|
-
function Commands_n__7702_1778_putNameLn($0, $1, $2, $3) {
|
|
9769
|
+
/* Commands.7860:1922:putNameLn */
|
|
9770
|
+
function Commands_n__7860_1922_putNameLn($0, $1, $2, $3) {
|
|
9780
9771
|
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}}}});
|
|
9781
9772
|
}
|
|
9782
9773
|
|
|
9783
|
-
/* Commands.
|
|
9784
|
-
function
|
|
9785
|
-
return Text_PrettyPrint_Prettyprinter_Doc_hcat(Data_List_intersperse(
|
|
9774
|
+
/* Commands.7181:1299:putLabels */
|
|
9775
|
+
function Commands_n__7181_1299_putLabels($0, $1, $2, $3, $4) {
|
|
9776
|
+
return Text_PrettyPrint_Prettyprinter_Doc_hcat(Data_List_intersperse(csegen_578(), csegen_116()($f => Commands_n__7181_1298_putLabel($0, $1, $2, $3, $f))($4)));
|
|
9786
9777
|
}
|
|
9787
9778
|
|
|
9788
|
-
/* Commands.
|
|
9789
|
-
function
|
|
9779
|
+
/* Commands.7181:1298:putLabel */
|
|
9780
|
+
function Commands_n__7181_1298_putLabel($0, $1, $2, $3, $4) {
|
|
9790
9781
|
return Text_PrettyPrint_Prettyprinter_Doc_enclose(Text_PrettyPrint_Prettyprinter_Doc_pretty_Pretty_String('\"'), Text_PrettyPrint_Prettyprinter_Doc_pretty_Pretty_String('\"'), Text_PrettyPrint_Prettyprinter_Doc_annotate(Text_PrettyPrint_Prettyprinter_Render_Terminal_color(2), Text_PrettyPrint_Prettyprinter_Doc_pretty_Pretty_String($4)));
|
|
9791
9782
|
}
|
|
9792
9783
|
|
|
9793
|
-
/* Commands.
|
|
9794
|
-
function
|
|
9795
|
-
return
|
|
9784
|
+
/* Commands.7536:1651:partitionedArgs */
|
|
9785
|
+
function Commands_n__7536_1651_partitionedArgs($0, $1, $2, $3, $4) {
|
|
9786
|
+
return Commands_case__assignx2cpartitionedArgs_1663($0, $1, $2, $3, $4, Data_List_partition($e => Data_String_isPrefixOf('+', $e), $4));
|
|
9796
9787
|
}
|
|
9797
9788
|
|
|
9798
|
-
/* Commands.
|
|
9799
|
-
function
|
|
9789
|
+
/* Commands.8310:2373:parseTeamArg */
|
|
9790
|
+
function Commands_n__8310_2373_parseTeamArg($0, $1) {
|
|
9800
9791
|
return {a1: {a1: $1}};
|
|
9801
9792
|
}
|
|
9802
9793
|
|
|
9803
|
-
/* Commands.
|
|
9804
|
-
function
|
|
9794
|
+
/* Commands.8701:2749:parseSkipArg */
|
|
9795
|
+
function Commands_n__8701_2749_parseSkipArg($0, $1) {
|
|
9805
9796
|
const $2 = Prelude_Types_fastUnpack($1);
|
|
9806
9797
|
switch($2.h) {
|
|
9807
9798
|
case undefined: /* cons */ {
|
|
@@ -9823,8 +9814,8 @@ function Commands_n__8543_2605_parseSkipArg($0, $1) {
|
|
|
9823
9814
|
}
|
|
9824
9815
|
}
|
|
9825
9816
|
|
|
9826
|
-
/* Commands.
|
|
9827
|
-
function
|
|
9817
|
+
/* Commands.8310:2372:parseCompletedFlag */
|
|
9818
|
+
function Commands_n__8310_2372_parseCompletedFlag($0, $1) {
|
|
9828
9819
|
switch($1) {
|
|
9829
9820
|
case '-c': return {a1: {h: 0}};
|
|
9830
9821
|
case '--completed': return {a1: {h: 0}};
|
|
@@ -9832,8 +9823,8 @@ function Commands_n__8152_2228_parseCompletedFlag($0, $1) {
|
|
|
9832
9823
|
}
|
|
9833
9824
|
}
|
|
9834
9825
|
|
|
9835
|
-
/* Commands.
|
|
9836
|
-
function
|
|
9826
|
+
/* Commands.8701:2748:parseCheckoutFlag */
|
|
9827
|
+
function Commands_n__8701_2748_parseCheckoutFlag($0, $1) {
|
|
9837
9828
|
switch($1) {
|
|
9838
9829
|
case '-c': return {a1: {h: 0}};
|
|
9839
9830
|
case '--checkout': return {a1: {h: 0}};
|
|
@@ -9841,8 +9832,8 @@ function Commands_n__8543_2604_parseCheckoutFlag($0, $1) {
|
|
|
9841
9832
|
}
|
|
9842
9833
|
}
|
|
9843
9834
|
|
|
9844
|
-
/* Commands.
|
|
9845
|
-
function
|
|
9835
|
+
/* Commands.7860:1921:forkedUser */
|
|
9836
|
+
function Commands_n__7860_1921_forkedUser($0, $1, $2, $3) {
|
|
9846
9837
|
return FFI_Concurrency_fork(csegen_94(), ('user --json '+$3));
|
|
9847
9838
|
}
|
|
9848
9839
|
|
|
@@ -9851,6 +9842,15 @@ function Commands_whoami($0, $1, $2) {
|
|
|
9851
9842
|
return User_Me_printInfoOnSelf($0, $2, $1);
|
|
9852
9843
|
}
|
|
9853
9844
|
|
|
9845
|
+
/* Commands.unslugifyLabel : List String -> String -> String */
|
|
9846
|
+
function Commands_unslugifyLabel($0, $1) {
|
|
9847
|
+
const $2 = Data_List_find($5 => Prelude_EqOrd_x3dx3d_Eq_String($5, $1), $0);
|
|
9848
|
+
switch($2.h) {
|
|
9849
|
+
case undefined: /* just */ return $2.a1;
|
|
9850
|
+
case 0: /* nothing */ return BashCompletion_unslugify(BashCompletion_unhashify($1));
|
|
9851
|
+
}
|
|
9852
|
+
}
|
|
9853
|
+
|
|
9854
9854
|
/* Commands.teamNameArg : GraphArg -> Maybe String */
|
|
9855
9855
|
function Commands_teamNameArg($0) {
|
|
9856
9856
|
switch($0.h) {
|
|
@@ -9880,34 +9880,34 @@ function Commands_reflect($0, $1) {
|
|
|
9880
9880
|
/* Commands.pr : Config => Git => Octokit => {default False _ : Bool} ->
|
|
9881
9881
|
List String -> Promise () */
|
|
9882
9882
|
function Commands_pr($0, $1, $2, $3, $4) {
|
|
9883
|
-
switch(Prelude_Types_foldMap_Foldable_List({a1: $9 => $a => Prelude_Interfaces_Bool_Semigroup_x3cx2bx3e_Semigroup_AllBool($9, $a), a2: 1}, $10 =>
|
|
9883
|
+
switch(Prelude_Types_foldMap_Foldable_List({a1: $9 => $a => Prelude_Interfaces_Bool_Semigroup_x3cx2bx3e_Semigroup_AllBool($9, $a), a2: 1}, $10 => BashCompletion_isHashPrefix($10), $4)) {
|
|
9884
9884
|
case 1: {
|
|
9885
|
-
const $
|
|
9886
|
-
const $
|
|
9887
|
-
switch($
|
|
9888
|
-
case 0: return $
|
|
9889
|
-
case 1: return Data_Promise_pure_Applicative_Promise(undefined, $
|
|
9885
|
+
const $22 = $23 => {
|
|
9886
|
+
const $26 = $27 => $28 => {
|
|
9887
|
+
switch($23.a1) {
|
|
9888
|
+
case 0: return $2a => Data_Promise_liftIO_HasIO_Promise($2d => Prelude_IO_prim__putStr((Data_PullRequest_rf__webURI($0, $23.a2)+'\n'), $2d), $27, $28, $2a);
|
|
9889
|
+
case 1: return Data_Promise_pure_Applicative_Promise(undefined, $27, $28);
|
|
9890
9890
|
}
|
|
9891
9891
|
};
|
|
9892
|
-
const $
|
|
9893
|
-
let $
|
|
9892
|
+
const $3d = $3e => {
|
|
9893
|
+
let $42;
|
|
9894
9894
|
switch(Prelude_Types_null_Foldable_List($4)) {
|
|
9895
9895
|
case 1: {
|
|
9896
|
-
$
|
|
9896
|
+
$42 = 0;
|
|
9897
9897
|
break;
|
|
9898
9898
|
}
|
|
9899
9899
|
case 0: {
|
|
9900
|
-
$
|
|
9900
|
+
$42 = 1;
|
|
9901
9901
|
break;
|
|
9902
9902
|
}
|
|
9903
9903
|
}
|
|
9904
|
-
return Prelude_Interfaces_when(csegen_86(), $
|
|
9904
|
+
return Prelude_Interfaces_when(csegen_86(), $42, () => Commands_label($0, $1, $2, $4));
|
|
9905
9905
|
};
|
|
9906
|
-
return Data_Promise_x3ex3ex3d_Monad_Promise($
|
|
9906
|
+
return Data_Promise_x3ex3ex3d_Monad_Promise($26, $3d);
|
|
9907
9907
|
};
|
|
9908
|
-
return Data_Promise_x3ex3ex3d_Monad_Promise(Data_Promise_x3ex3ex3d_Monad_Promise(FFI_Git_currentBranch($1), $
|
|
9908
|
+
return Data_Promise_x3ex3ex3d_Monad_Promise(Data_Promise_x3ex3ex3d_Monad_Promise(FFI_Git_currentBranch($1), $1b => PullRequest_identifyOrCreatePR($0, $1, $2, $3, $1b)), $22);
|
|
9909
9909
|
}
|
|
9910
|
-
case 0: return $
|
|
9910
|
+
case 0: return $4c => $4d => Data_Promise_reject('The pr command only accepts labels prefixed with \'#\' and the --draft flag.', $4c, $4d);
|
|
9911
9911
|
}
|
|
9912
9912
|
}
|
|
9913
9913
|
|
|
@@ -9921,7 +9921,7 @@ function Commands_parseGraphArgs($0) {
|
|
|
9921
9921
|
switch($0.a2.a2.h) {
|
|
9922
9922
|
case undefined: /* cons */ return {h: 0 /* Left */, a1: 'graph accepts at most one team name and the --completed flag.'};
|
|
9923
9923
|
default: {
|
|
9924
|
-
const $6 = Prelude_Types_traverse_Traversable_List(csegen_9(), $b => Commands_x3cx7cx7cx3e(
|
|
9924
|
+
const $6 = Prelude_Types_traverse_Traversable_List(csegen_9(), $b => Commands_x3cx7cx7cx3e(csegen_588(), $10 => Commands_n__8310_2372_parseCompletedFlag($0, $10), $15 => Commands_n__8310_2373_parseTeamArg($0, $15), $b), $0);
|
|
9925
9925
|
switch($6.h) {
|
|
9926
9926
|
case undefined: /* just */ return {h: 1 /* Right */, a1: $6.a1};
|
|
9927
9927
|
case 0: /* nothing */ return {h: 0 /* Left */, a1: 'The graph command expects the name of a GitHub Team and optionally --completed as arguments.'};
|
|
@@ -9930,7 +9930,7 @@ function Commands_parseGraphArgs($0) {
|
|
|
9930
9930
|
}
|
|
9931
9931
|
}
|
|
9932
9932
|
default: {
|
|
9933
|
-
const $1d = Prelude_Types_traverse_Traversable_List(csegen_9(), $22 => Commands_x3cx7cx7cx3e(
|
|
9933
|
+
const $1d = Prelude_Types_traverse_Traversable_List(csegen_9(), $22 => Commands_x3cx7cx7cx3e(csegen_588(), $27 => Commands_n__8310_2372_parseCompletedFlag($0, $27), $2c => Commands_n__8310_2373_parseTeamArg($0, $2c), $22), $0);
|
|
9934
9934
|
switch($1d.h) {
|
|
9935
9935
|
case undefined: /* just */ return {h: 1 /* Right */, a1: $1d.a1};
|
|
9936
9936
|
case 0: /* nothing */ return {h: 0 /* Left */, a1: 'The graph command expects the name of a GitHub Team and optionally --completed as arguments.'};
|
|
@@ -9939,7 +9939,7 @@ function Commands_parseGraphArgs($0) {
|
|
|
9939
9939
|
}
|
|
9940
9940
|
}
|
|
9941
9941
|
default: {
|
|
9942
|
-
const $34 = Prelude_Types_traverse_Traversable_List(csegen_9(), $39 => Commands_x3cx7cx7cx3e(
|
|
9942
|
+
const $34 = Prelude_Types_traverse_Traversable_List(csegen_9(), $39 => Commands_x3cx7cx7cx3e(csegen_588(), $3e => Commands_n__8310_2372_parseCompletedFlag($0, $3e), $43 => Commands_n__8310_2373_parseTeamArg($0, $43), $39), $0);
|
|
9943
9943
|
switch($34.h) {
|
|
9944
9944
|
case undefined: /* just */ return {h: 1 /* Right */, a1: $34.a1};
|
|
9945
9945
|
case 0: /* nothing */ return {h: 0 /* Left */, a1: 'The graph command expects the name of a GitHub Team and optionally --completed as arguments.'};
|
|
@@ -9958,7 +9958,7 @@ function Commands_parseContributeArgs($0) {
|
|
|
9958
9958
|
switch($0.a2.a2.h) {
|
|
9959
9959
|
case undefined: /* cons */ return {h: 0 /* Left */, a1: 'contribute\'s arguments must be either -<num> to skip num PRs or --checkout (-c) to checkout the branch needing review.'};
|
|
9960
9960
|
default: {
|
|
9961
|
-
const $6 = Prelude_Types_traverse_Traversable_List(csegen_9(), $b => Commands_x3cx7cx7cx3e(
|
|
9961
|
+
const $6 = Prelude_Types_traverse_Traversable_List(csegen_9(), $b => Commands_x3cx7cx7cx3e(csegen_588(), $10 => Commands_n__8701_2749_parseSkipArg($0, $10), $15 => Commands_n__8701_2748_parseCheckoutFlag($0, $15), $b), $0);
|
|
9962
9962
|
switch($6.h) {
|
|
9963
9963
|
case undefined: /* just */ return {h: 1 /* Right */, a1: $6.a1};
|
|
9964
9964
|
case 0: /* nothing */ return {h: 0 /* Left */, a1: 'contribute\'s arguments must be either -<num> to skip num PRs or --checkout (-c) to checkout the branch needing review.'};
|
|
@@ -9967,7 +9967,7 @@ function Commands_parseContributeArgs($0) {
|
|
|
9967
9967
|
}
|
|
9968
9968
|
}
|
|
9969
9969
|
default: {
|
|
9970
|
-
const $1d = Prelude_Types_traverse_Traversable_List(csegen_9(), $22 => Commands_x3cx7cx7cx3e(
|
|
9970
|
+
const $1d = Prelude_Types_traverse_Traversable_List(csegen_9(), $22 => Commands_x3cx7cx7cx3e(csegen_588(), $27 => Commands_n__8701_2749_parseSkipArg($0, $27), $2c => Commands_n__8701_2748_parseCheckoutFlag($0, $2c), $22), $0);
|
|
9971
9971
|
switch($1d.h) {
|
|
9972
9972
|
case undefined: /* just */ return {h: 1 /* Right */, a1: $1d.a1};
|
|
9973
9973
|
case 0: /* nothing */ return {h: 0 /* Left */, a1: 'contribute\'s arguments must be either -<num> to skip num PRs or --checkout (-c) to checkout the branch needing review.'};
|
|
@@ -9976,7 +9976,7 @@ function Commands_parseContributeArgs($0) {
|
|
|
9976
9976
|
}
|
|
9977
9977
|
}
|
|
9978
9978
|
default: {
|
|
9979
|
-
const $34 = Prelude_Types_traverse_Traversable_List(csegen_9(), $39 => Commands_x3cx7cx7cx3e(
|
|
9979
|
+
const $34 = Prelude_Types_traverse_Traversable_List(csegen_9(), $39 => Commands_x3cx7cx7cx3e(csegen_588(), $3e => Commands_n__8701_2749_parseSkipArg($0, $3e), $43 => Commands_n__8701_2748_parseCheckoutFlag($0, $43), $39), $0);
|
|
9980
9980
|
switch($34.h) {
|
|
9981
9981
|
case undefined: /* just */ return {h: 1 /* Right */, a1: $34.a1};
|
|
9982
9982
|
case 0: /* nothing */ return {h: 0 /* Left */, a1: 'contribute\'s arguments must be either -<num> to skip num PRs or --checkout (-c) to checkout the branch needing review.'};
|
|
@@ -9987,14 +9987,14 @@ function Commands_parseContributeArgs($0) {
|
|
|
9987
9987
|
|
|
9988
9988
|
/* Commands.list : Config => Octokit => String -> Promise () */
|
|
9989
9989
|
function Commands_list($0, $1, $2) {
|
|
9990
|
-
return Data_Promise_x3ex3ex3d_Monad_Promise(
|
|
9990
|
+
return Data_Promise_x3ex3ex3d_Monad_Promise(csegen_590()(FFI_GitHub_listTeamMembers($1, $0.a2, $2)), teamMemberLogins => Data_Promise_x3ex3ex3d_Monad_Promise(Prelude_Basics_flip(csegen_449(), csegen_591(), Prelude_Types_traverse_Traversable_List(csegen_86(), $1a => Commands_n__7860_1921_forkedUser($1, $2, $0, $1a), teamMemberLogins)), teamMembersJson => Data_Promise_x3ex3ex3d_Monad_Promise(Prelude_Types_traverse_Traversable_List(csegen_86(), $28 => $29 => Data_Promise_either(csegen_72(), Data_User_parseUser($28), $29), teamMembersJson), teamMembers => Util_renderIO($0, csegen_94(), Text_PrettyPrint_Prettyprinter_Doc_vsep(csegen_116()($3e => Commands_n__7860_1922_putNameLn($1, $2, $0, $3e))(teamMembers))))));
|
|
9991
9991
|
}
|
|
9992
9992
|
|
|
9993
9993
|
/* Commands.label : Config => Git => Octokit => List String -> Promise () */
|
|
9994
9994
|
function Commands_label($0, $1, $2, $3) {
|
|
9995
9995
|
const $12 = $13 => {
|
|
9996
|
-
const $15 = csegen_116()($1a =>
|
|
9997
|
-
return Data_Promise_x3ex3ex3d_Monad_Promise(Label_addLabels($0, $2, $13.a2, $15), allLabels => Util_renderIO($0, csegen_94(), Text_PrettyPrint_Prettyprinter_Doc_vsep({a1: Text_PrettyPrint_Prettyprinter_Doc_x3cx2bx2bx3e(
|
|
9996
|
+
const $15 = csegen_116()($1a => Commands_unslugifyLabel($0.a10, $1a))($3);
|
|
9997
|
+
return Data_Promise_x3ex3ex3d_Monad_Promise(Label_addLabels($0, $2, $13.a2, $15), allLabels => Util_renderIO($0, csegen_94(), Text_PrettyPrint_Prettyprinter_Doc_vsep({a1: Text_PrettyPrint_Prettyprinter_Doc_x3cx2bx2bx3e(csegen_593()('Added'), csegen_491()(Commands_n__7181_1299_putLabels($1, $2, $3, $0, $15))(Text_PrettyPrint_Prettyprinter_Doc_vsep({a1: Text_PrettyPrint_Prettyprinter_Doc_unsafeTextWithoutNewLines(' to PR.'), a2: {h: 0}}))), a2: {a1: Text_PrettyPrint_Prettyprinter_Doc_x3cx2bx2bx3e(Text_PrettyPrint_Prettyprinter_Doc_pretty_Pretty_String(Prelude_Types_foldMap_Foldable_List(csegen_70(), $51 => $51, {a1: csegen_62()('All labels for PR of '), a2: {a1: csegen_62()($13.a2.a7), a2: {a1: csegen_62()(':'), a2: {h: 0}}}})), csegen_491()(Commands_n__7181_1299_putLabels($1, $2, $3, $0, allLabels))(Text_PrettyPrint_Prettyprinter_Doc_vsep({a1: Text_PrettyPrint_Prettyprinter_Doc_unsafeTextWithoutNewLines('.'), a2: {h: 0}}))), a2: {h: 0}}})));
|
|
9998
9998
|
};
|
|
9999
9999
|
return Data_Promise_x3ex3ex3d_Monad_Promise(Data_Promise_x3ex3ex3d_Monad_Promise(FFI_Git_currentBranch($1), $b => PullRequest_identifyOrCreatePR($0, $1, $2, 0, $b)), $12);
|
|
10000
10000
|
}
|
|
@@ -10013,7 +10013,7 @@ function Commands_graph($0, $1, $2) {
|
|
|
10013
10013
|
}
|
|
10014
10014
|
};
|
|
10015
10015
|
const $3 = Data_List_find($5, $2);
|
|
10016
|
-
return
|
|
10016
|
+
return Commands_case__graph_2126($1, $2, $0, $3, Data_List_headx27(Prelude_Types_List_mapMaybeAppend({h: 0}, $14 => Commands_teamNameArg($14), $2)));
|
|
10017
10017
|
}
|
|
10018
10018
|
|
|
10019
10019
|
/* Commands.contribute : Config => Git => Octokit => List ContributeArg -> Promise () */
|
|
@@ -10036,9 +10036,9 @@ function Commands_contribute($0, $1, $2, $3) {
|
|
|
10036
10036
|
};
|
|
10037
10037
|
const $2c = Prelude_Types_List_filterAppend({h: 0}, $2f, openPrs);
|
|
10038
10038
|
const $36 = Data_List_partition($39 => Data_PullRequest_isRequestedReviewer(myLogin, $39), $2c);
|
|
10039
|
-
return
|
|
10039
|
+
return Commands_case__contribute_2594($1, $2, $3, $0, openPrs, myLogin, $19, $26, $2c, $36, Prelude_Interfaces_mapHom({a1: d => b => c => a => $4d => $4e => $4f => ({a1: $4d($4f.a1), a2: $4e($4f.a2)}), a2: b => c => a => $58 => $59 => ({a1: $58($59.a1), a2: $59.a2}), a3: a => d => b => $60 => $61 => ({a1: $61.a1, a2: $60($61.a2)})}, $68 => Data_List_sortBy(csegen_608(), $68), $36));
|
|
10040
10040
|
};
|
|
10041
|
-
return Data_Promise_x3ex3ex3d_Monad_Promise(
|
|
10041
|
+
return Data_Promise_x3ex3ex3d_Monad_Promise(csegen_604()(FFI_GitHub_getSelf($2)), $18);
|
|
10042
10042
|
};
|
|
10043
10043
|
return Data_Promise_x3ex3ex3d_Monad_Promise(FFI_GitHub_listPullRequests($2, $0.a2, $0.a3, {a1: 0}, 100n, 0n), $10);
|
|
10044
10044
|
}
|
|
@@ -10057,7 +10057,7 @@ function Commands_branch($0, $1) {
|
|
|
10057
10057
|
/* Commands.assign : Config => Git => Octokit => List String -> {default False _ : Bool} ->
|
|
10058
10058
|
Promise () */
|
|
10059
10059
|
function Commands_assign($0, $1, $2, $3, $4) {
|
|
10060
|
-
return
|
|
10060
|
+
return Commands_case__assign_1766($0, $1, $2, $4, $3, Commands_n__7536_1651_partitionedArgs($0, $1, $2, $4, $3));
|
|
10061
10061
|
}
|
|
10062
10062
|
|
|
10063
10063
|
/* Commands.<||> : Alternative t => (a -> t b) -> (a -> t b) -> a -> t b */
|
|
@@ -10067,7 +10067,7 @@ function Commands_x3cx7cx7cx3e($0, $1, $2, $3) {
|
|
|
10067
10067
|
|
|
10068
10068
|
/* User.Reflect.case block in case block in reflectOnSelf */
|
|
10069
10069
|
function User_Reflect_case__casex20blockx20inx20reflectOnSelf_1862($0, $1, $2, $3, $4, $5, $6, $7, $8, $9) {
|
|
10070
|
-
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)}, csegen_116()(
|
|
10070
|
+
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)}, csegen_116()(csegen_621())($2a))), {a1: $7, a2: $9.a1});
|
|
10071
10071
|
return Util_renderIO($0, csegen_94(), 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));
|
|
10072
10072
|
}
|
|
10073
10073
|
|
|
@@ -10083,7 +10083,7 @@ function User_Me_n__7184_1985_teams($0, $1, $2) {
|
|
|
10083
10083
|
|
|
10084
10084
|
/* User.Me.7184:1984:login */
|
|
10085
10085
|
function User_Me_n__7184_1984_login($0, $1, $2) {
|
|
10086
|
-
return Text_PrettyPrint_Prettyprinter_Doc_x3cx2bx2bx3e(
|
|
10086
|
+
return Text_PrettyPrint_Prettyprinter_Doc_x3cx2bx2bx3e(csegen_593()('GitHub Login:'), User_Me_n__7184_1981_green($0, $1, $2, $1.a1));
|
|
10087
10087
|
}
|
|
10088
10088
|
|
|
10089
10089
|
/* User.Reflect.6277:1056:ital */
|
|
@@ -10111,7 +10111,7 @@ function User_Me_n__7184_1981_green($0, $1, $2, $3) {
|
|
|
10111
10111
|
|
|
10112
10112
|
/* User.Me.7184:1983:fullName */
|
|
10113
10113
|
function User_Me_n__7184_1983_fullName($0, $1, $2) {
|
|
10114
|
-
return Text_PrettyPrint_Prettyprinter_Doc_x3cx2bx2bx3e(
|
|
10114
|
+
return Text_PrettyPrint_Prettyprinter_Doc_x3cx2bx2bx3e(csegen_593()('GitHub Name:'), User_Me_n__7184_1981_green($0, $1, $2, $1.a2));
|
|
10115
10115
|
}
|
|
10116
10116
|
|
|
10117
10117
|
/* User.Me.7184:1982:email */
|
|
@@ -10127,7 +10127,7 @@ function User_Me_n__7184_1982_email($0, $1, $2) {
|
|
|
10127
10127
|
break;
|
|
10128
10128
|
}
|
|
10129
10129
|
}
|
|
10130
|
-
return Text_PrettyPrint_Prettyprinter_Doc_x3cx2bx2bx3e(
|
|
10130
|
+
return Text_PrettyPrint_Prettyprinter_Doc_x3cx2bx2bx3e(csegen_593()('Git Email:'), $8);
|
|
10131
10131
|
}
|
|
10132
10132
|
|
|
10133
10133
|
/* User.Reflect.rightTitle : String */
|
|
@@ -10150,21 +10150,21 @@ function User_Reflect_reflectOnSelf($0, $1) {
|
|
|
10150
10150
|
const $a = prs => {
|
|
10151
10151
|
const $12 = myLogin => {
|
|
10152
10152
|
const $2e = reviews => {
|
|
10153
|
-
const $2f = csegen_60()(
|
|
10153
|
+
const $2f = csegen_60()(csegen_628())(Data_List_headx27(Data_List_sortBy($3a => $3b => Prelude_Basics_on(csegen_606(), csegen_628(), $3a, $3b), reviews)));
|
|
10154
10154
|
const $44 = PullRequest_tuple(prs);
|
|
10155
10155
|
const $47 = Prelude_Interfaces_mapHom({a1: d => b => c => a => $4b => $4c => $4d => ({a1: $4b($4d.a1), a2: $4c($4d.a2)}), a2: b => c => a => $56 => $57 => ({a1: $56($57.a1), a2: $57.a2}), a3: a => d => b => $5e => $5f => ({a1: $5f.a1, a2: $5e($5f.a2)})}, $66 => Prelude_Types_List_filterAppend({h: 0}, $6a => Prelude_EqOrd_x3dx3d_Eq_String($6a.a4, myLogin), $66), $44);
|
|
10156
10156
|
return User_Reflect_case__casex20blockx20inx20reflectOnSelf_1862($0, $1, prs, myLogin, reviews, $2f, $44, $47.a1, $47.a2, Prelude_Interfaces_mapHom({a1: d => b => c => a => $7f => $80 => $81 => ({a1: $7f($81.a1), a2: $80($81.a2)}), a2: b => c => a => $8a => $8b => ({a1: $8a($8b.a1), a2: $8b.a2}), a3: a => d => b => $92 => $93 => ({a1: $93.a1, a2: $92($93.a2)})}, $9a => Prelude_Types_List_filterAppend({h: 0}, $9e => Prelude_Types_foldMap_Foldable_List(csegen_136(), $a3 => Prelude_EqOrd_x3dx3d_Eq_String($a3, myLogin), $9e.a6), $9a), $44));
|
|
10157
10157
|
};
|
|
10158
|
-
return Data_Promise_x3ex3ex3d_Monad_Promise(PullRequest_reviewsByUser($0, $1, myLogin, Data_List_take(User_Reflect_reviewDetailsCount(), Prelude_Types_List_reverse(Data_List_sortBy($22 => $23 => Prelude_Basics_on(
|
|
10158
|
+
return Data_Promise_x3ex3ex3d_Monad_Promise(PullRequest_reviewsByUser($0, $1, myLogin, Data_List_take(User_Reflect_reviewDetailsCount(), Prelude_Types_List_reverse(Data_List_sortBy($22 => $23 => Prelude_Basics_on(csegen_606(), csegen_621(), $22, $23), PullRequest_combined(prs))))), $2e);
|
|
10159
10159
|
};
|
|
10160
|
-
return Data_Promise_x3ex3ex3d_Monad_Promise(
|
|
10160
|
+
return Data_Promise_x3ex3ex3d_Monad_Promise(csegen_604()(FFI_GitHub_getSelf($1)), $12);
|
|
10161
10161
|
};
|
|
10162
10162
|
return Data_Promise_x3ex3ex3d_Monad_Promise(PullRequest_listPartitionedPRs($0, $1, 4n, User_Reflect_prCount()), $a);
|
|
10163
10163
|
}
|
|
10164
10164
|
|
|
10165
10165
|
/* User.Me.printInfoOnSelf : Config => Octokit => Git => Promise () */
|
|
10166
10166
|
function User_Me_printInfoOnSelf($0, $1, $2) {
|
|
10167
|
-
return Data_Promise_x3ex3ex3d_Monad_Promise(csegen_55()($9 => User_Me_n__7324_2135_handleUnsetEmail($0, $1, $2, $9))(FFI_Git_userEmail($2)), gitEmail => Data_Promise_x3ex3ex3d_Monad_Promise(FFI_GitHub_getSelf($1), githubUser => Data_Promise_x3ex3ex3d_Monad_Promise(
|
|
10167
|
+
return Data_Promise_x3ex3ex3d_Monad_Promise(csegen_55()($9 => User_Me_n__7324_2135_handleUnsetEmail($0, $1, $2, $9))(FFI_Git_userEmail($2)), gitEmail => Data_Promise_x3ex3ex3d_Monad_Promise(FFI_GitHub_getSelf($1), githubUser => Data_Promise_x3ex3ex3d_Monad_Promise(csegen_590()(FFI_GitHub_listMyTeams($1)), githubTeams => Util_renderIO($0, csegen_94(), User_Me_print(gitEmail, githubUser, githubTeams)))));
|
|
10168
10168
|
}
|
|
10169
10169
|
|
|
10170
10170
|
/* User.Reflect.print : Nat -> Nat -> Nat -> Nat -> Nat -> Nat -> Maybe Date -> Maybe Date -> Maybe Date -> Doc AnsiStyle */
|
|
@@ -10212,7 +10212,7 @@ function User_Reflect_graph($0, $1, $2, $3, $4, $5) {
|
|
|
10212
10212
|
|
|
10213
10213
|
/* User.Reflect.details : Nat -> Nat -> Nat -> Nat -> Nat -> Nat -> Maybe Date -> Maybe Date -> Maybe Date -> Doc AnsiStyle */
|
|
10214
10214
|
function User_Reflect_details($0, $1, $2, $3, $4, $5, $6, $7, $8) {
|
|
10215
|
-
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(csegen_62()('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(csegen_62()('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:
|
|
10215
|
+
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(csegen_62()('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(csegen_62()('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: csegen_643(), 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: csegen_647()($8), a2: {a1: {a1: Text_PrettyPrint_Prettyprinter_Doc_hsep({a1: csegen_649(), 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(csegen_62()('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: csegen_60()(date => Text_PrettyPrint_Prettyprinter_Doc_indent(2, Text_PrettyPrint_Prettyprinter_Doc_hsep({a1: Text_PrettyPrint_Prettyprinter_Doc_pretty_Pretty_String(csegen_62()('most recent:')), a2: {a1: Text_PrettyPrint_Prettyprinter_Doc_pretty_Pretty_String(Data_Date_show_Show_Date(date)), a2: {h: 0}}})))($6), 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(csegen_62()('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: csegen_643(), 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: csegen_647()($7), a2: {a1: {a1: Text_PrettyPrint_Prettyprinter_Doc_hsep({a1: csegen_649(), 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_Types_foldMap_Foldable_List(csegen_70(), $da => $da, {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}}}}}}}}}});
|
|
10216
10216
|
}
|
|
10217
10217
|
|
|
10218
10218
|
/* User.Reflect.chart : Nat -> Nat -> Nat -> Nat -> Nat -> Nat -> Nat -> Doc AnsiStyle */
|
|
@@ -10357,15 +10357,15 @@ function PullRequest_n__9013_2624_editorDescription($0, $1, $2, $3, $4, $5, $6,
|
|
|
10357
10357
|
const $62 = $5.a1.a1.a1;
|
|
10358
10358
|
const $61 = $66 => $67 => $62(undefined)(undefined)($66)($67);
|
|
10359
10359
|
const $60 = $61($71 => (undefined));
|
|
10360
|
-
return $60(System_File_ReadWrite_removeFile($5,
|
|
10360
|
+
return $60(System_File_ReadWrite_removeFile($5, csegen_672()));
|
|
10361
10361
|
};
|
|
10362
10362
|
return Prelude_Interfaces_when($5.a1.a1, $59, $5f);
|
|
10363
10363
|
};
|
|
10364
|
-
const $4a = $5.a1.a2(undefined)(undefined)(System_File_Meta_exists($5,
|
|
10364
|
+
const $4a = $5.a1.a2(undefined)(undefined)(System_File_Meta_exists($5, csegen_672()))($58);
|
|
10365
10365
|
const $44 = $5.a1.a2(undefined)(undefined)($4a);
|
|
10366
10366
|
return $44($78 => $5.a1.a1.a2(undefined)(description));
|
|
10367
10367
|
};
|
|
10368
|
-
return $5.a1.a2(undefined)(undefined)(System_File_ReadWrite_readFile($5,
|
|
10368
|
+
return $5.a1.a2(undefined)(undefined)(System_File_ReadWrite_readFile($5, csegen_672()))($41);
|
|
10369
10369
|
}
|
|
10370
10370
|
default: return $5.a1.a1.a2(undefined)({h: 0 /* Left */, a1: {h: 0 /* GenericFileError */, a1: $32}});
|
|
10371
10371
|
}
|
|
@@ -10377,7 +10377,7 @@ function PullRequest_n__9013_2624_editorDescription($0, $1, $2, $3, $4, $5, $6,
|
|
|
10377
10377
|
|
|
10378
10378
|
/* PullRequest.8323:1960:csv */
|
|
10379
10379
|
function PullRequest_n__8323_1960_csv($0, $1, $2, $3, $4, $5, $6) {
|
|
10380
|
-
return Util_renderString($5, Text_PrettyPrint_Prettyprinter_Doc_encloseSep(Text_PrettyPrint_Prettyprinter_Doc_emptyDoc(), Text_PrettyPrint_Prettyprinter_Doc_emptyDoc(),
|
|
10380
|
+
return Util_renderString($5, Text_PrettyPrint_Prettyprinter_Doc_encloseSep(Text_PrettyPrint_Prettyprinter_Doc_emptyDoc(), Text_PrettyPrint_Prettyprinter_Doc_emptyDoc(), csegen_578(), csegen_116()(csegen_398())($6)));
|
|
10381
10381
|
}
|
|
10382
10382
|
|
|
10383
10383
|
/* PullRequest.9013:2625:createPR */
|
|
@@ -10463,7 +10463,7 @@ function PullRequest_reviewsForPrs($0, $1, $2) {
|
|
|
10463
10463
|
};
|
|
10464
10464
|
return Data_Promise_x3ex3ex3d_Monad_Promise($18, reviews => $3f => $40 => Data_Promise_pure_Applicative_Promise(Prelude_Types_join_Monad_List(reviews), $3f, $40));
|
|
10465
10465
|
};
|
|
10466
|
-
return Data_Promise_x3ex3ex3d_Monad_Promise(Prelude_Basics_flip(csegen_449(),
|
|
10466
|
+
return Data_Promise_x3ex3ex3d_Monad_Promise(Prelude_Basics_flip(csegen_449(), csegen_591(), Prelude_Types_traverse_Traversable_List(csegen_86(), $f => PullRequest_n__8098_1704_forkedReviews($0, $1, $2, $f), $2)), $16);
|
|
10467
10467
|
}
|
|
10468
10468
|
|
|
10469
10469
|
/* PullRequest.reviewsByUser : Config => Octokit => String -> List PullRequest -> Promise (List Review) */
|
|
@@ -10677,11 +10677,11 @@ function PullRequest_identifyOrCreatePR($0, $1, $2, $3, $4) {
|
|
|
10677
10677
|
const $13 = Prelude_Interfaces_when(csegen_86(), $17, () => $1c => $1d => Data_Promise_reject(csegen_62()('There is already a PR for the current branch and Harmony does not currently support converting existing PRs to drafts.'), $1c, $1d));
|
|
10678
10678
|
return Data_Promise_x3ex3ex3d_Monad_Promise($13, $26 => $27 => $28 => Data_Promise_pure_Applicative_Promise({a1: 0, a2: $f.a1}, $27, $28));
|
|
10679
10679
|
}
|
|
10680
|
-
default: return
|
|
10680
|
+
default: return csegen_722();
|
|
10681
10681
|
}
|
|
10682
10682
|
}
|
|
10683
10683
|
case 0: /* nil */ return csegen_55()($34 => ({a1: 1, a2: $34}))(PullRequest_n__9013_2625_createPR($1, $2, $4, $3, $0));
|
|
10684
|
-
default: return
|
|
10684
|
+
default: return csegen_722();
|
|
10685
10685
|
}
|
|
10686
10686
|
};
|
|
10687
10687
|
return Data_Promise_x3ex3ex3d_Monad_Promise(FFI_GitHub_listPRsForBranch($2, $0.a2, $0.a3, $4), $e);
|
|
@@ -11256,7 +11256,7 @@ function Graph_n__6229_2263_header($0, $1, $2, $3, $4, $5) {
|
|
|
11256
11256
|
break;
|
|
11257
11257
|
}
|
|
11258
11258
|
}
|
|
11259
|
-
const $3d = {a1: $3e, a2: {a1: {a1: Text_PrettyPrint_Prettyprinter_Symbols_parens(Text_PrettyPrint_Prettyprinter_Doc_x3cx2bx2bx3e(Graph_n__6229_2261_redDot($0, $1, $2, $3, $4, $5), Text_PrettyPrint_Prettyprinter_Doc_x3cx2bx2bx3e(Text_PrettyPrint_Prettyprinter_Doc_pretty_Pretty_String(csegen_62()('overlayed on')), Graph_n__6229_2260_yellowDot($0, $1, $2, $3, $4, $5))))}, a2:
|
|
11259
|
+
const $3d = {a1: $3e, a2: {a1: {a1: Text_PrettyPrint_Prettyprinter_Symbols_parens(Text_PrettyPrint_Prettyprinter_Doc_x3cx2bx2bx3e(Graph_n__6229_2261_redDot($0, $1, $2, $3, $4, $5), Text_PrettyPrint_Prettyprinter_Doc_x3cx2bx2bx3e(Text_PrettyPrint_Prettyprinter_Doc_pretty_Pretty_String(csegen_62()('overlayed on')), Graph_n__6229_2260_yellowDot($0, $1, $2, $3, $4, $5))))}, a2: csegen_755()}};
|
|
11260
11260
|
const $29 = {a1: {a1: Text_PrettyPrint_Prettyprinter_Doc_x3cx2bx2bx3e(Text_PrettyPrint_Prettyprinter_Doc_pretty_Pretty_String(csegen_62()('1x the number of closed PRs with unanswered review requests')), Text_PrettyPrint_Prettyprinter_Symbols_parens(Graph_n__6229_2261_redDot($0, $1, $2, $3, $4, $5)))}, a2: $3d};
|
|
11261
11261
|
const $15 = {a1: {a1: Text_PrettyPrint_Prettyprinter_Doc_x3cx2bx2bx3e(Text_PrettyPrint_Prettyprinter_Doc_pretty_Pretty_String(csegen_62()('4x the number of open review requests')), Text_PrettyPrint_Prettyprinter_Symbols_parens(Graph_n__6229_2260_yellowDot($0, $1, $2, $3, $4, $5)))}, a2: $29};
|
|
11262
11262
|
const $d = {a1: {a1: Text_PrettyPrint_Prettyprinter_Doc_pretty_Pretty_String(csegen_62()('Weighted review workload.'))}, a2: $15};
|
|
@@ -11267,7 +11267,7 @@ function Graph_n__6229_2263_header($0, $1, $2, $3, $4, $5) {
|
|
|
11267
11267
|
|
|
11268
11268
|
/* Graph.5908:1932:header */
|
|
11269
11269
|
function Graph_n__5908_1932_header($0) {
|
|
11270
|
-
return Text_PrettyPrint_Prettyprinter_Doc_vsep(Data_List_catMaybes({a1: {a1: Text_PrettyPrint_Prettyprinter_Doc_emptyDoc()}, a2: {a1: {a1: Text_PrettyPrint_Prettyprinter_Doc_pretty_Pretty_String(csegen_62()('Open Pull Requests grouped by month craetaed.'))}, a2:
|
|
11270
|
+
return Text_PrettyPrint_Prettyprinter_Doc_vsep(Data_List_catMaybes({a1: {a1: Text_PrettyPrint_Prettyprinter_Doc_emptyDoc()}, a2: {a1: {a1: Text_PrettyPrint_Prettyprinter_Doc_pretty_Pretty_String(csegen_62()('Open Pull Requests grouped by month craetaed.'))}, a2: csegen_755()}}));
|
|
11271
11271
|
}
|
|
11272
11272
|
|
|
11273
11273
|
/* Graph.6229:2262:greenBox */
|
|
@@ -11412,9 +11412,9 @@ function Graph_reviewsGraph($0, $1, $2, $3, $4, $5) {
|
|
|
11412
11412
|
|
|
11413
11413
|
/* Graph.healthGraph : List PullRequest -> Doc AnsiStyle */
|
|
11414
11414
|
function Graph_healthGraph($0) {
|
|
11415
|
-
const $1 = Data_List_groupBy($4 => $5 => Prelude_Basics_on($8 => $9 => Prelude_Basics_on($c => $d => (($c===$d)?1:0), $11 => $11.a2, $8, $9),
|
|
11415
|
+
const $1 = Data_List_groupBy($4 => $5 => Prelude_Basics_on($8 => $9 => Prelude_Basics_on($c => $d => (($c===$d)?1:0), $11 => $11.a2, $8, $9), csegen_607(), $4, $5), Data_List_sortBy(csegen_608(), $0));
|
|
11416
11416
|
const $1e = Prelude_Types_foldr_Foldable_List(xs => m => Prelude_Types_max_Ord_Nat(Data_List1_length(xs), m), 1n, $1);
|
|
11417
|
-
return Text_PrettyPrint_Prettyprinter_Doc_vsep({a1: Graph_n__5908_1932_header($0), a2: {a1: Graph_graph({a1: $32 => Graph_totalWidth_Graphable_x28PRsOnDatex20x24dateTyx29(
|
|
11417
|
+
return Text_PrettyPrint_Prettyprinter_Doc_vsep({a1: Graph_n__5908_1932_header($0), a2: {a1: Graph_graph({a1: $32 => Graph_totalWidth_Graphable_x28PRsOnDatex20x24dateTyx29(csegen_776(), $32), a2: $38 => Graph_label_Graphable_x28PRsOnDatex20x24dateTyx29(csegen_776(), $38), a3: $3e => Graph_score_Graphable_x28PRsOnDatex20x24dateTyx29(csegen_776(), $3e), a4: $44 => Graph_detractor_Graphable_x28PRsOnDatex20x24dateTyx29(csegen_776(), $44), a5: $4a => Graph_bonus_Graphable_x28PRsOnDatex20x24dateTyx29(csegen_776(), $4a)}, $1e, Graph_n__5908_1930_unfoldGraph($0, Data_Fuel_limit(48n), $1, {h: 0})), a2: {h: 0}}});
|
|
11418
11418
|
}
|
|
11419
11419
|
|
|
11420
11420
|
/* Graph.graphOne : Graphable g => Nat -> g -> Doc AnsiStyle */
|
|
@@ -11434,13 +11434,67 @@ function Graph_bar($0, $1, $2, $3) {
|
|
|
11434
11434
|
return Text_PrettyPrint_Prettyprinter_Doc_indent(Number(_truncBigInt32($0)), Text_PrettyPrint_Prettyprinter_Doc_hcat({a1: Text_PrettyPrint_Prettyprinter_Doc_annotate(Text_PrettyPrint_Prettyprinter_Render_Terminal_color(1), Text_PrettyPrint_Prettyprinter_Doc_hcat(Data_List_replicateTR({h: 0}, $2, Text_PrettyPrint_Prettyprinter_Doc_pretty_Pretty_Char(csegen_62()('\u{25e6}'))))), a2: {a1: Text_PrettyPrint_Prettyprinter_Doc_annotate(Text_PrettyPrint_Prettyprinter_Render_Terminal_color(3), Text_PrettyPrint_Prettyprinter_Doc_hcat(Data_List_replicateTR({h: 0}, $1, Text_PrettyPrint_Prettyprinter_Doc_pretty_Pretty_Char(csegen_62()('\u{b7}'))))), a2: {a1: Text_PrettyPrint_Prettyprinter_Doc_annotate(Text_PrettyPrint_Prettyprinter_Render_Terminal_color(2), Text_PrettyPrint_Prettyprinter_Doc_hcat(Data_List_replicateTR({h: 0}, $3, Text_PrettyPrint_Prettyprinter_Doc_pretty_Pretty_Char(csegen_62()('\u{25aa}'))))), a2: {h: 0}}}}));
|
|
11435
11435
|
}
|
|
11436
11436
|
|
|
11437
|
-
/* BashCompletion.
|
|
11438
|
-
function
|
|
11437
|
+
/* BashCompletion.case block in case block in unhashify */
|
|
11438
|
+
function BashCompletion_case__casex20blockx20inx20unhashify_7794($0, $1, $2) {
|
|
11439
|
+
switch($0) {
|
|
11440
|
+
case '': {
|
|
11441
|
+
switch($2.h) {
|
|
11442
|
+
case 0: /* nil */ return $1;
|
|
11443
|
+
default: {
|
|
11444
|
+
switch($2.a1) {
|
|
11445
|
+
case '#': return $2.a2;
|
|
11446
|
+
default: return $1;
|
|
11447
|
+
}
|
|
11448
|
+
}
|
|
11449
|
+
}
|
|
11450
|
+
}
|
|
11451
|
+
default: {
|
|
11452
|
+
switch($2.a1) {
|
|
11453
|
+
case '#': return $2.a2;
|
|
11454
|
+
default: return $1;
|
|
11455
|
+
}
|
|
11456
|
+
}
|
|
11457
|
+
}
|
|
11458
|
+
}
|
|
11459
|
+
|
|
11460
|
+
/* BashCompletion.case block in unhashify */
|
|
11461
|
+
function BashCompletion_case__unhashify_7774($0, $1) {
|
|
11462
|
+
switch($0) {
|
|
11463
|
+
case '': {
|
|
11464
|
+
switch($1.h) {
|
|
11465
|
+
case 0: /* nil */ return '';
|
|
11466
|
+
default: {
|
|
11467
|
+
switch($1.a1) {
|
|
11468
|
+
case '#': return $1.a2;
|
|
11469
|
+
case '\u{5c}': {
|
|
11470
|
+
const $6 = ('\u{5c}'+$1.a2);
|
|
11471
|
+
return BashCompletion_case__casex20blockx20inx20unhashify_7794($1.a2, $6, Data_String_strM($1.a2));
|
|
11472
|
+
}
|
|
11473
|
+
default: return $0;
|
|
11474
|
+
}
|
|
11475
|
+
}
|
|
11476
|
+
}
|
|
11477
|
+
}
|
|
11478
|
+
default: {
|
|
11479
|
+
switch($1.a1) {
|
|
11480
|
+
case '#': return $1.a2;
|
|
11481
|
+
case '\u{5c}': {
|
|
11482
|
+
const $11 = ('\u{5c}'+$1.a2);
|
|
11483
|
+
return BashCompletion_case__casex20blockx20inx20unhashify_7794($1.a2, $11, Data_String_strM($1.a2));
|
|
11484
|
+
}
|
|
11485
|
+
default: return $0;
|
|
11486
|
+
}
|
|
11487
|
+
}
|
|
11488
|
+
}
|
|
11489
|
+
}
|
|
11490
|
+
|
|
11491
|
+
/* BashCompletion.4506:8427:slugsOrLoginsOrLabels */
|
|
11492
|
+
function BashCompletion_n__4506_8427_slugsOrLoginsOrLabels($0, $1, $2) {
|
|
11439
11493
|
switch(Data_String_isPrefixOf('+', $1)) {
|
|
11440
11494
|
case 1: return csegen_116()($b => ('+'+$b))($2.a11);
|
|
11441
11495
|
case 0: {
|
|
11442
11496
|
switch(BashCompletion_isHashPrefix($1)) {
|
|
11443
|
-
case 1: return
|
|
11497
|
+
case 1: return csegen_791()($2.a10);
|
|
11444
11498
|
case 0: return $2.a9;
|
|
11445
11499
|
}
|
|
11446
11500
|
}
|
|
@@ -11452,6 +11506,11 @@ function BashCompletion_unslugify($0) {
|
|
|
11452
11506
|
return Prelude_Types_fastPack(Data_List_replaceOn(csegen_132(), '\u{25cc}', ' ', Prelude_Types_fastUnpack($0)));
|
|
11453
11507
|
}
|
|
11454
11508
|
|
|
11509
|
+
/* BashCompletion.unhashify : String -> String */
|
|
11510
|
+
function BashCompletion_unhashify($0) {
|
|
11511
|
+
return BashCompletion_case__unhashify_7774($0, Data_String_strM($0));
|
|
11512
|
+
}
|
|
11513
|
+
|
|
11455
11514
|
/* BashCompletion.slugify : String -> String */
|
|
11456
11515
|
function BashCompletion_slugify($0) {
|
|
11457
11516
|
return Prelude_Types_fastPack(Data_List_replaceOn(csegen_132(), ' ', '\u{25cc}', Prelude_Types_fastUnpack($0)));
|
|
@@ -11488,8 +11547,8 @@ function BashCompletion_opts($0, $1, $2, $3) {
|
|
|
11488
11547
|
}
|
|
11489
11548
|
case 'label': {
|
|
11490
11549
|
switch($2) {
|
|
11491
|
-
case '--': return
|
|
11492
|
-
default: return Prelude_Types_List_filterAppend({h: 0}, $24 => Data_String_isPrefixOf($2, $24),
|
|
11550
|
+
case '--': return csegen_793()($0.a10);
|
|
11551
|
+
default: return Prelude_Types_List_filterAppend({h: 0}, $24 => Data_String_isPrefixOf($2, $24), csegen_793()($0.a10));
|
|
11493
11552
|
}
|
|
11494
11553
|
}
|
|
11495
11554
|
case 'list': {
|
|
@@ -11530,7 +11589,7 @@ function BashCompletion_opts($0, $1, $2, $3) {
|
|
|
11530
11589
|
case 'graph': return {a1: '--completed', a2: $0.a9};
|
|
11531
11590
|
case '--completed': return $0.a9;
|
|
11532
11591
|
default: {
|
|
11533
|
-
switch(Data_Maybe_isJust(Data_List_find($51 => Prelude_EqOrd_x3dx3d_Eq_String($51, $3),
|
|
11592
|
+
switch(Data_Maybe_isJust(Data_List_find($51 => Prelude_EqOrd_x3dx3d_Eq_String($51, $3), csegen_794()))) {
|
|
11534
11593
|
case 1: return Prelude_Types_List_filterAppend({h: 0}, $5a => Data_String_isPrefixOf($2, $5a), $0.a9);
|
|
11535
11594
|
case 0: return {h: 0};
|
|
11536
11595
|
}
|
|
@@ -11538,7 +11597,7 @@ function BashCompletion_opts($0, $1, $2, $3) {
|
|
|
11538
11597
|
}
|
|
11539
11598
|
}
|
|
11540
11599
|
default: {
|
|
11541
|
-
switch(Data_Maybe_isJust(Data_List_find($65 => Prelude_EqOrd_x3dx3d_Eq_String($65, $3),
|
|
11600
|
+
switch(Data_Maybe_isJust(Data_List_find($65 => Prelude_EqOrd_x3dx3d_Eq_String($65, $3), csegen_794()))) {
|
|
11542
11601
|
case 1: return Prelude_Types_List_filterAppend({h: 0}, $6e => Data_String_isPrefixOf($2, $6e), $0.a9);
|
|
11543
11602
|
case 0: return {h: 0};
|
|
11544
11603
|
}
|
|
@@ -11547,7 +11606,7 @@ function BashCompletion_opts($0, $1, $2, $3) {
|
|
|
11547
11606
|
}
|
|
11548
11607
|
case 'pr': {
|
|
11549
11608
|
switch(BashCompletion_isHashPrefix($2)) {
|
|
11550
|
-
case 1: return
|
|
11609
|
+
case 1: return csegen_791()($0.a10);
|
|
11551
11610
|
case 0: return {h: 0};
|
|
11552
11611
|
}
|
|
11553
11612
|
}
|
|
@@ -11562,7 +11621,7 @@ function BashCompletion_opts($0, $1, $2, $3) {
|
|
|
11562
11621
|
default: {
|
|
11563
11622
|
switch(Data_String_isPrefixOf($2, '--dry')) {
|
|
11564
11623
|
case 1: return {a1: '--dry', a2: {h: 0}};
|
|
11565
|
-
case 0: return
|
|
11624
|
+
case 0: return BashCompletion_n__4506_8427_slugsOrLoginsOrLabels($3, $2, $0);
|
|
11566
11625
|
}
|
|
11567
11626
|
}
|
|
11568
11627
|
}
|
|
@@ -11579,6 +11638,11 @@ function BashCompletion_isHashPrefix($0) {
|
|
|
11579
11638
|
}
|
|
11580
11639
|
}
|
|
11581
11640
|
|
|
11641
|
+
/* BashCompletion.hashify : String -> String */
|
|
11642
|
+
function BashCompletion_hashify($0) {
|
|
11643
|
+
return ('#'+$0);
|
|
11644
|
+
}
|
|
11645
|
+
|
|
11582
11646
|
/* BashCompletion.cmdOpts : String -> String -> String -> Maybe (List String) */
|
|
11583
11647
|
function BashCompletion_cmdOpts($0, $1, $2) {
|
|
11584
11648
|
switch($1) {
|
|
@@ -11660,8 +11724,8 @@ function BashCompletion_cmdOpts($0, $1, $2) {
|
|
|
11660
11724
|
}
|
|
11661
11725
|
case 'contribute': {
|
|
11662
11726
|
switch($1) {
|
|
11663
|
-
case '-': return
|
|
11664
|
-
case '--': return
|
|
11727
|
+
case '-': return csegen_796();
|
|
11728
|
+
case '--': return csegen_796();
|
|
11665
11729
|
default: {
|
|
11666
11730
|
switch(Data_String_isPrefixOf($1, '--checkout')) {
|
|
11667
11731
|
case 1: return {a1: {a1: '--checkout', a2: {h: 0}}};
|
|
@@ -11673,7 +11737,7 @@ function BashCompletion_cmdOpts($0, $1, $2) {
|
|
|
11673
11737
|
case 'graph': {
|
|
11674
11738
|
switch($1) {
|
|
11675
11739
|
case '--': return {h: 0};
|
|
11676
|
-
case '-': return
|
|
11740
|
+
case '-': return csegen_798();
|
|
11677
11741
|
default: {
|
|
11678
11742
|
switch(Data_String_isPrefixOf($1, '--completed')) {
|
|
11679
11743
|
case 1: return {a1: {a1: '--completed', a2: {h: 0}}};
|
|
@@ -11764,8 +11828,8 @@ function BashCompletion_cmdOpts($0, $1, $2) {
|
|
|
11764
11828
|
}
|
|
11765
11829
|
case 'contribute': {
|
|
11766
11830
|
switch($1) {
|
|
11767
|
-
case '-': return
|
|
11768
|
-
case '--': return
|
|
11831
|
+
case '-': return csegen_796();
|
|
11832
|
+
case '--': return csegen_796();
|
|
11769
11833
|
default: {
|
|
11770
11834
|
switch(Data_String_isPrefixOf($1, '--checkout')) {
|
|
11771
11835
|
case 1: return {a1: {a1: '--checkout', a2: {h: 0}}};
|
|
@@ -11777,7 +11841,7 @@ function BashCompletion_cmdOpts($0, $1, $2) {
|
|
|
11777
11841
|
case 'graph': {
|
|
11778
11842
|
switch($1) {
|
|
11779
11843
|
case '--': return {h: 0};
|
|
11780
|
-
case '-': return
|
|
11844
|
+
case '-': return csegen_798();
|
|
11781
11845
|
default: {
|
|
11782
11846
|
switch(Data_String_isPrefixOf($1, '--completed')) {
|
|
11783
11847
|
case 1: return {a1: {a1: '--completed', a2: {h: 0}}};
|
|
@@ -11806,7 +11870,7 @@ function AppVersion_printVersion($0) {
|
|
|
11806
11870
|
|
|
11807
11871
|
/* AppVersion.appVersion : String */
|
|
11808
11872
|
const AppVersion_appVersion = __lazy(function () {
|
|
11809
|
-
return '2.4.
|
|
11873
|
+
return '2.4.1';
|
|
11810
11874
|
});
|
|
11811
11875
|
|
|
11812
11876
|
|