@mattpolzin/harmony 0.2.0 → 0.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. harmony-npm/harmony +1008 -461
  2. harmony-npm/package.json +12 -1
harmony-npm/harmony CHANGED
@@ -206,6 +206,41 @@ const _strReverse = x => x.split('').reverse().join('')
206
206
  const _substr = (o,l,x) => x.slice(o, o + l)
207
207
 
208
208
 
209
+ const { exec: idris__concurrency_exec } = require('child_process')
210
+
211
+ // Create a "Future" by forking to another process executing harmony with
212
+ // the given argString (space separated CLI arguments to harmony).
213
+ //
214
+ // The result is a Javascript Promise with the String value of stdout from the forked
215
+ // process. This type of promise is opaquely wrapped in the Idris "Future" type.
216
+ const concurrency_future = argString => {
217
+ return new Promise(
218
+ (onSuccess, onFailure) => {
219
+ idris__concurrency_exec(`harmony ${argString}`,(error, stdout, stderr) => {
220
+ if (error) { onFailure(stderr) }
221
+ else { onSuccess(stdout) }
222
+ })
223
+ }
224
+ )
225
+ }
226
+
227
+ const idris__concurrency_stringyArray = v =>
228
+ (Array.isArray(v) ? JSON.stringify(v.map(JSON.parse)) : v)
229
+
230
+ // Await the completion of the given "Future" (Javascript Promise).
231
+ //
232
+ // The assumption is that the result of the promise is JSON. If the promise
233
+ // was a singular Future, it is passed through, but if the result is the
234
+ // the Promise.all of multiple futures, each result is parsed and then the
235
+ // entire array of results is stringified.
236
+ const concurrency_await_stringify = (promise, onSuccess, onFailure) =>
237
+ promise.then(
238
+ res => onSuccess(idris__concurrency_stringyArray(res))(),
239
+ err => onFailure(err)()
240
+ )
241
+
242
+
243
+
209
244
  const SimpleGit = require('simple-git')
210
245
 
211
246
  const git_git = () =>
@@ -352,7 +387,7 @@ const okit_list_reviewers = (octokit, owner, repo, state, per_page, onSuccess, o
352
387
  idris__okit_stringify_error(onFailure)
353
388
  )
354
389
 
355
- // list PR reviewers
390
+ // list PRs
356
391
  // Executes callback with [{ "pull_number": Int, "author": String, "state": String, "reviewers": [String] }]
357
392
  const okit_list_pull_requests = (octokit, owner, repo, state, per_page, onSuccess, onFailure) =>
358
393
  idris__okit_unpromisify(
@@ -372,6 +407,24 @@ const okit_add_reviewers = (octokit, owner, repo, pull_number, reviewers, team_r
372
407
  idris__okit_stringify_error(onFailure)
373
408
  )
374
409
 
410
+ // list PR reviews
411
+ const digReviews = reviewsJson =>
412
+ reviewsJson.map(review => {
413
+ return {
414
+ author: review.user.login,
415
+ state: review.state,
416
+ submitted_at: review.submitted_at
417
+ }
418
+ })
419
+
420
+ // Executes callback with [{author: String, state: String, submitted_at: String}]
421
+ const okit_list_pr_reviews = (octokit, owner, repo, pull_number, onSuccess, onFailure) =>
422
+ idris__okit_unpromisify(
423
+ octokit.rest.pulls.listReviews({ owner, repo, pull_number: Number(pull_number) }),
424
+ r => onSuccess(JSON.stringify(digReviews(r.data))),
425
+ idris__okit_stringify_error(onFailure)
426
+ )
427
+
375
428
  // list team members
376
429
  const digUserLogins = usersJson =>
377
430
  usersJson.map(u => u.login)
@@ -512,6 +565,7 @@ const System_Random_Node_prim__rnd = (() => Math.random());
512
565
  const FFI_GitHub_prim__octokit = okit_octokit;
513
566
  const FFI_GitHub_prim__listTeams = okit_list_teams;
514
567
  const FFI_GitHub_prim__listTeamMembers = okit_list_team_members;
568
+ const FFI_GitHub_prim__listPullReviews = okit_list_pr_reviews;
515
569
  const FFI_GitHub_prim__listPullRequests = okit_list_pull_requests;
516
570
  const FFI_GitHub_prim__listPRsForBranch = okit_list_prs;
517
571
  const FFI_GitHub_prim__listOrgMembers = okit_list_org_members;
@@ -526,6 +580,12 @@ const FFI_Git_prim__remoteTrackingBranch = git_remote_tracking_branch;
526
580
  const FFI_Git_prim__pushNewBranch = git_push_new_branch;
527
581
  const FFI_Git_prim__git = git_git;
528
582
  const FFI_Git_prim__currentBranch = git_current_branch;
583
+ const FFI_Concurrency_prim__singleton = ((p)=>Promise.all([p]));
584
+ const FFI_Concurrency_prim__neutral = (()=>Promise.all([]));
585
+ const FFI_Concurrency_prim__future = concurrency_future;
586
+ const FFI_Concurrency_prim__flatten = ((p)=>{return new Promise((onSuccess, onFailure) => p.then(r => onSuccess(r.flat()), onFailure))});
587
+ const FFI_Concurrency_prim__both = ((p1,p2)=>Promise.all([p1,p2]));
588
+ const FFI_Concurrency_prim__awaitStringify = concurrency_await_stringify;
529
589
  const System_File_Virtual_prim__stdout = (x=>({fd:1, buffer: Buffer.alloc(0), name:'<stdout>', eof: false}));
530
590
  const System_File_Virtual_prim__stderr = (x=>({fd:2, buffer: Buffer.alloc(0), name:'<stderr>', eof: false}));
531
591
  const System_File_ReadWrite_prim__writeLine = ((filePtr, line) => require('fs').writeSync(filePtr.fd, line, undefined, 'utf-8'));
@@ -721,7 +781,7 @@ function Data_List_lookupBy($0, $1, $2) {
721
781
  return __tailRec(x24tcOpt_13, {h: 1, a1: $0, a2: $1, a3: $2});
722
782
  }
723
783
 
724
- function x24tcOpt_26($0) {
784
+ function x24tcOpt_27($0) {
725
785
  switch($0.a2.h) {
726
786
  case 0: return {h: 0, a1: {h: 0}};
727
787
  case undefined: {
@@ -735,10 +795,37 @@ function x24tcOpt_26($0) {
735
795
  }
736
796
 
737
797
  function Data_List_mapMaybe($0, $1) {
738
- return __tailRec(x24tcOpt_26, {h: 1, a1: $0, a2: $1});
798
+ return __tailRec(x24tcOpt_27, {h: 1, a1: $0, a2: $1});
739
799
  }
740
800
 
741
801
  function x24tcOpt_10($0) {
802
+ switch($0.a1.h) {
803
+ case 0: return {h: 0, a1: {a1: $0.a2}};
804
+ case undefined: {
805
+ let $5;
806
+ switch(Prelude_EqOrd_x3ex3d_Ord_Char($0.a1.a1, '0')) {
807
+ case 1: {
808
+ $5 = Prelude_EqOrd_x3cx3d_Ord_Char($0.a1.a1, '9');
809
+ break;
810
+ }
811
+ case 0: {
812
+ $5 = 0;
813
+ break;
814
+ }
815
+ }
816
+ switch($5) {
817
+ case 1: return {h: 1, a1: $0.a1.a2, a2: (($0.a2*10n)+Prelude_Cast_cast_Cast_Int_Integer(_sub32s(Prelude_Types_ord($0.a1.a1), Prelude_Types_ord('0'))))};
818
+ case 0: return {h: 0, a1: {h: 0}};
819
+ }
820
+ }
821
+ }
822
+ }
823
+
824
+ function Data_String_parseNumWithoutSign($0, $1) {
825
+ return __tailRec(x24tcOpt_10, {h: 1, a1: $0, a2: $1});
826
+ }
827
+
828
+ function x24tcOpt_26($0) {
742
829
  switch($0.a2.h) {
743
830
  case 0: return {h: 0, a1: $0.a1};
744
831
  case undefined: return {h: 1, a1: {a1: $0.a2.a1, a2: $0.a1}, a2: $0.a2.a2};
@@ -746,7 +833,7 @@ function x24tcOpt_10($0) {
746
833
  }
747
834
 
748
835
  function Prelude_Types_List_reverseOnto($0, $1) {
749
- return __tailRec(x24tcOpt_10, {h: 1, a1: $0, a2: $1});
836
+ return __tailRec(x24tcOpt_26, {h: 1, a1: $0, a2: $1});
750
837
  }
751
838
 
752
839
  function x24tcOpt_9($0) {
@@ -836,7 +923,7 @@ function Prelude_Types_case__compare_3913($0, $1, $2, $3, $4, $5) {
836
923
  return __tailRec(x24tcOpt_6, {h: 2, a1: $0, a2: $1, a3: $2, a4: $3, a5: $4, a6: $5});
837
924
  }
838
925
 
839
- function x24tcOpt_27($0) {
926
+ function x24tcOpt_28($0) {
840
927
  switch($0.a3.h) {
841
928
  case 0: return {h: 0, a1: $0.a2};
842
929
  case undefined: return {h: 1, a1: $0.a1, a2: $0.a1($0.a2)($0.a3.a1), a3: $0.a3.a2};
@@ -844,7 +931,7 @@ function x24tcOpt_27($0) {
844
931
  }
845
932
 
846
933
  function Prelude_Types_foldl_Foldable_List($0, $1, $2) {
847
- return __tailRec(x24tcOpt_27, {h: 1, a1: $0, a2: $1, a3: $2});
934
+ return __tailRec(x24tcOpt_28, {h: 1, a1: $0, a2: $1, a3: $2});
848
935
  }
849
936
 
850
937
  function x24tcOpt_15($0) {
@@ -1062,41 +1149,82 @@ function x24tcOpt_1($0) {
1062
1149
  case 0: {
1063
1150
  switch($0.a6.h) {
1064
1151
  case 0: return {h: 0, a1: {h: 0}};
1065
- default: return {h: 0, a1: $0.a6};
1152
+ default: {
1153
+ switch($0.a7.h) {
1154
+ case 0: return {h: 0, a1: $0.a6};
1155
+ case 1: return {h: 0, a1: Prelude_Interfaces_x3cx24x3e(csegen_76(), $c => ({a1: $c.a1, a2: Prelude_Types_fromInteger_Num_Nat(0n)}), $0.a6)};
1156
+ default: {
1157
+ switch($0.a6.h) {
1158
+ case 0: {
1159
+ switch($0.a8) {
1160
+ case 1: return {h: 0, a1: {h: 0}};
1161
+ case 0: return {h: 0, a1: $0.a5};
1162
+ default: {
1163
+ const $19 = {a1: $0.a5.a1.a1, a2: $0.a5.a1.a2};
1164
+ const $1c = Util_deleteByx27($1f => $20 => Prelude_Basics_on($23 => $24 => $0.a1.a1.a1($23)($24), $2c => Builtin_fst($2c), $1f, $20), $19, $0.a6);
1165
+ switch($1c.a1.h) {
1166
+ case 0: {
1167
+ switch($0.a8) {
1168
+ case 0: return {h: 0, a1: {a1: {a1: $0.a5.a1.a1, a2: $0.a5.a1.a2}, a2: Reviewer_n__3921_909_zipReviews($0.a1, $0.a2, $0.a3, $0.a4, $0.a5.a2, $1c.a2, $0.a7, $0.a8)}};
1169
+ 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};
1170
+ }
1171
+ }
1172
+ case undefined: return {h: 0, a1: {a1: {a1: $0.a5.a1.a1, a2: Reviewer_n__3936_1018_calc($0.a1, $0.a2, $0.a3, $0.a4, $0.a5.a1.a1, $0.a5.a1.a2, $19, $0.a5.a2, $0.a8, $0.a7, $0.a6, $0.a5.a1.a2, $1c.a1.a1.a2)}, a2: Reviewer_n__3921_909_zipReviews($0.a1, $0.a2, $0.a3, $0.a4, $0.a5.a2, $1c.a2, $0.a7, $0.a8)}};
1173
+ }
1174
+ }
1175
+ }
1176
+ }
1177
+ default: {
1178
+ const $6a = {a1: $0.a5.a1.a1, a2: $0.a5.a1.a2};
1179
+ const $6d = Util_deleteByx27($70 => $71 => Prelude_Basics_on($74 => $75 => $0.a1.a1.a1($74)($75), $7d => Builtin_fst($7d), $70, $71), $6a, $0.a6);
1180
+ switch($6d.a1.h) {
1181
+ case 0: {
1182
+ switch($0.a8) {
1183
+ case 0: return {h: 0, a1: {a1: {a1: $0.a5.a1.a1, a2: $0.a5.a1.a2}, a2: Reviewer_n__3921_909_zipReviews($0.a1, $0.a2, $0.a3, $0.a4, $0.a5.a2, $6d.a2, $0.a7, $0.a8)}};
1184
+ case 1: return {h: 1, a1: $0.a1, a2: $0.a2, a3: $0.a3, a4: $0.a4, a5: $0.a5.a2, a6: $6d.a2, a7: $0.a7, a8: $0.a8};
1185
+ }
1186
+ }
1187
+ case undefined: return {h: 0, a1: {a1: {a1: $0.a5.a1.a1, a2: Reviewer_n__3936_1018_calc($0.a1, $0.a2, $0.a3, $0.a4, $0.a5.a1.a1, $0.a5.a1.a2, $6a, $0.a5.a2, $0.a8, $0.a7, $0.a6, $0.a5.a1.a2, $6d.a1.a1.a2)}, a2: Reviewer_n__3921_909_zipReviews($0.a1, $0.a2, $0.a3, $0.a4, $0.a5.a2, $6d.a2, $0.a7, $0.a8)}};
1188
+ }
1189
+ }
1190
+ }
1191
+ }
1192
+ }
1193
+ }
1066
1194
  }
1067
1195
  }
1068
1196
  default: {
1069
1197
  switch($0.a6.h) {
1070
1198
  case 0: {
1071
- switch($0.a7) {
1199
+ switch($0.a8) {
1072
1200
  case 1: return {h: 0, a1: {h: 0}};
1073
1201
  case 0: return {h: 0, a1: $0.a5};
1074
1202
  default: {
1075
- const $c = {a1: $0.a5.a1.a1, a2: $0.a5.a1.a2};
1076
- const $f = Util_deleteByx27($12 => $13 => Prelude_Basics_on($16 => $17 => $0.a1.a1.a1($16)($17), $1f => Builtin_fst($1f), $12, $13), $c, $0.a6);
1077
- switch($f.a1.h) {
1203
+ const $bf = {a1: $0.a5.a1.a1, a2: $0.a5.a1.a2};
1204
+ const $c2 = Util_deleteByx27($c5 => $c6 => Prelude_Basics_on($c9 => $ca => $0.a1.a1.a1($c9)($ca), $d2 => Builtin_fst($d2), $c5, $c6), $bf, $0.a6);
1205
+ switch($c2.a1.h) {
1078
1206
  case 0: {
1079
- switch($0.a7) {
1080
- case 0: return {h: 0, a1: {a1: {a1: $0.a5.a1.a1, a2: $0.a5.a1.a2}, a2: Reviewer_n__3921_906_zipReviews($0.a1, $0.a2, $0.a3, $0.a4, $0.a5.a2, $f.a2, $0.a7)}};
1081
- case 1: return {h: 1, a1: $0.a1, a2: $0.a2, a3: $0.a3, a4: $0.a4, a5: $0.a5.a2, a6: $f.a2, a7: $0.a7};
1207
+ switch($0.a8) {
1208
+ case 0: return {h: 0, a1: {a1: {a1: $0.a5.a1.a1, a2: $0.a5.a1.a2}, a2: Reviewer_n__3921_909_zipReviews($0.a1, $0.a2, $0.a3, $0.a4, $0.a5.a2, $c2.a2, $0.a7, $0.a8)}};
1209
+ case 1: return {h: 1, a1: $0.a1, a2: $0.a2, a3: $0.a3, a4: $0.a4, a5: $0.a5.a2, a6: $c2.a2, a7: $0.a7, a8: $0.a8};
1082
1210
  }
1083
1211
  }
1084
- case undefined: return {h: 0, a1: {a1: {a1: $0.a5.a1.a1, a2: Prelude_Types_x2b_Num_Nat($0.a5.a1.a2, $f.a1.a1.a2)}, a2: Reviewer_n__3921_906_zipReviews($0.a1, $0.a2, $0.a3, $0.a4, $0.a5.a2, $f.a2, $0.a7)}};
1212
+ case undefined: return {h: 0, a1: {a1: {a1: $0.a5.a1.a1, a2: Reviewer_n__3936_1018_calc($0.a1, $0.a2, $0.a3, $0.a4, $0.a5.a1.a1, $0.a5.a1.a2, $bf, $0.a5.a2, $0.a8, $0.a7, $0.a6, $0.a5.a1.a2, $c2.a1.a1.a2)}, a2: Reviewer_n__3921_909_zipReviews($0.a1, $0.a2, $0.a3, $0.a4, $0.a5.a2, $c2.a2, $0.a7, $0.a8)}};
1085
1213
  }
1086
1214
  }
1087
1215
  }
1088
1216
  }
1089
1217
  default: {
1090
- const $4f = {a1: $0.a5.a1.a1, a2: $0.a5.a1.a2};
1091
- const $52 = Util_deleteByx27($55 => $56 => Prelude_Basics_on($59 => $5a => $0.a1.a1.a1($59)($5a), $62 => Builtin_fst($62), $55, $56), $4f, $0.a6);
1092
- switch($52.a1.h) {
1218
+ const $110 = {a1: $0.a5.a1.a1, a2: $0.a5.a1.a2};
1219
+ const $113 = Util_deleteByx27($116 => $117 => Prelude_Basics_on($11a => $11b => $0.a1.a1.a1($11a)($11b), $123 => Builtin_fst($123), $116, $117), $110, $0.a6);
1220
+ switch($113.a1.h) {
1093
1221
  case 0: {
1094
- switch($0.a7) {
1095
- case 0: return {h: 0, a1: {a1: {a1: $0.a5.a1.a1, a2: $0.a5.a1.a2}, a2: Reviewer_n__3921_906_zipReviews($0.a1, $0.a2, $0.a3, $0.a4, $0.a5.a2, $52.a2, $0.a7)}};
1096
- case 1: return {h: 1, a1: $0.a1, a2: $0.a2, a3: $0.a3, a4: $0.a4, a5: $0.a5.a2, a6: $52.a2, a7: $0.a7};
1222
+ switch($0.a8) {
1223
+ case 0: return {h: 0, a1: {a1: {a1: $0.a5.a1.a1, a2: $0.a5.a1.a2}, a2: Reviewer_n__3921_909_zipReviews($0.a1, $0.a2, $0.a3, $0.a4, $0.a5.a2, $113.a2, $0.a7, $0.a8)}};
1224
+ case 1: return {h: 1, a1: $0.a1, a2: $0.a2, a3: $0.a3, a4: $0.a4, a5: $0.a5.a2, a6: $113.a2, a7: $0.a7, a8: $0.a8};
1097
1225
  }
1098
1226
  }
1099
- case undefined: return {h: 0, a1: {a1: {a1: $0.a5.a1.a1, a2: Prelude_Types_x2b_Num_Nat($0.a5.a1.a2, $52.a1.a1.a2)}, a2: Reviewer_n__3921_906_zipReviews($0.a1, $0.a2, $0.a3, $0.a4, $0.a5.a2, $52.a2, $0.a7)}};
1227
+ case undefined: return {h: 0, a1: {a1: {a1: $0.a5.a1.a1, a2: Reviewer_n__3936_1018_calc($0.a1, $0.a2, $0.a3, $0.a4, $0.a5.a1.a1, $0.a5.a1.a2, $110, $0.a5.a2, $0.a8, $0.a7, $0.a6, $0.a5.a1.a2, $113.a1.a1.a2)}, a2: Reviewer_n__3921_909_zipReviews($0.a1, $0.a2, $0.a3, $0.a4, $0.a5.a2, $113.a2, $0.a7, $0.a8)}};
1100
1228
  }
1101
1229
  }
1102
1230
  }
@@ -1104,8 +1232,8 @@ function x24tcOpt_1($0) {
1104
1232
  }
1105
1233
  }
1106
1234
 
1107
- function Reviewer_n__3921_906_zipReviews($0, $1, $2, $3, $4, $5, $6) {
1108
- return __tailRec(x24tcOpt_1, {h: 1, a1: $0, a2: $1, a3: $2, a4: $3, a5: $4, a6: $5, a7: $6});
1235
+ function Reviewer_n__3921_909_zipReviews($0, $1, $2, $3, $4, $5, $6, $7) {
1236
+ return __tailRec(x24tcOpt_1, {h: 1, a1: $0, a2: $1, a3: $2, a4: $3, a5: $4, a6: $5, a7: $6, a8: $7});
1109
1237
  }
1110
1238
 
1111
1239
  function x24tcOpt_5($0) {
@@ -1248,7 +1376,31 @@ const __mainExpression_0 = __lazy(function () {
1248
1376
  return PrimIO_unsafePerformIO($2 => Main_main($2));
1249
1377
  });
1250
1378
 
1251
- const csegen_13 = __lazy(function () {
1379
+ const csegen_2 = __lazy(function () {
1380
+ return {a1: $1 => $2 => ($1+$2), a2: $6 => $7 => ($6*$7), a3: $b => $b};
1381
+ });
1382
+
1383
+ const csegen_5 = __lazy(function () {
1384
+ return b => a => func => $0 => $1 => $2 => Data_Promise_map_Functor_Promise(func, $0, $1, $2);
1385
+ });
1386
+
1387
+ const csegen_11 = __lazy(function () {
1388
+ return {a1: csegen_5(), a2: a => $3 => $4 => $5 => Data_Promise_pure_Applicative_Promise($3, $4, $5), a3: b => a => $b => $c => $d => $e => Data_Promise_x3cx2ax3e_Applicative_Promise($b, $c, $d, $e)};
1389
+ });
1390
+
1391
+ const csegen_17 = __lazy(function () {
1392
+ return {a1: csegen_11(), a2: b => a => $3 => $4 => $5 => $6 => Data_Promise_x3ex3ex3d_Monad_Promise($3, $4, $5, $6), a3: a => $d => $e => $f => Data_Promise_join_Monad_Promise($d, $e, $f)};
1393
+ });
1394
+
1395
+ const csegen_20 = __lazy(function () {
1396
+ return {a1: csegen_17(), a2: a => $3 => $4 => $5 => $6 => Data_Promise_liftIO_HasIO_Promise($3, $4, $5, $6)};
1397
+ });
1398
+
1399
+ const csegen_21 = __lazy(function () {
1400
+ return Main_exitError(csegen_20(), 'contribute\'s argument must be -<num> where <num> is an integer.');
1401
+ });
1402
+
1403
+ const csegen_36 = __lazy(function () {
1252
1404
  const $a = b => a => $b => $c => $d => {
1253
1405
  const $e = $b($d);
1254
1406
  const $11 = $c($d);
@@ -1257,196 +1409,196 @@ const csegen_13 = __lazy(function () {
1257
1409
  return {a1: b => a => func => $1 => $2 => Prelude_IO_map_Functor_IO(func, $1, $2), a2: a => $8 => $9 => $8, a3: $a};
1258
1410
  });
1259
1411
 
1260
- const csegen_16 = __lazy(function () {
1412
+ const csegen_39 = __lazy(function () {
1261
1413
  return b => a => $0 => $1 => $2 => {
1262
1414
  const $3 = $0($2);
1263
1415
  return $1($3)($2);
1264
1416
  };
1265
1417
  });
1266
1418
 
1267
- const csegen_20 = __lazy(function () {
1419
+ const csegen_43 = __lazy(function () {
1268
1420
  const $5 = a => $6 => $7 => {
1269
1421
  const $8 = $6($7);
1270
1422
  return $8($7);
1271
1423
  };
1272
- const $0 = {a1: csegen_13(), a2: csegen_16(), a3: $5};
1424
+ const $0 = {a1: csegen_36(), a2: csegen_39(), a3: $5};
1273
1425
  return {a1: $0, a2: a => $e => $e};
1274
1426
  });
1275
1427
 
1276
- const csegen_25 = __lazy(function () {
1428
+ const csegen_48 = __lazy(function () {
1277
1429
  return $0 => $1 => $2 => $3 => $4 => Prelude_IO_map_Functor_IO($2, $3, $4);
1278
1430
  });
1279
1431
 
1280
- const csegen_31 = __lazy(function () {
1432
+ const csegen_54 = __lazy(function () {
1281
1433
  const $4 = a => $5 => $6 => {
1282
1434
  const $7 = $5($6);
1283
1435
  return $7($6);
1284
1436
  };
1285
- return {a1: csegen_13(), a2: csegen_16(), a3: $4};
1437
+ return {a1: csegen_36(), a2: csegen_39(), a3: $4};
1286
1438
  });
1287
1439
 
1288
- const csegen_34 = __lazy(function () {
1440
+ const csegen_57 = __lazy(function () {
1289
1441
  return {a1: $1 => $2 => Prelude_EqOrd_x3dx3d_Eq_String($1, $2), a2: $7 => $8 => Prelude_EqOrd_x2fx3d_Eq_String($7, $8)};
1290
1442
  });
1291
1443
 
1292
- const csegen_41 = __lazy(function () {
1444
+ const csegen_64 = __lazy(function () {
1293
1445
  return $0 => $1 => $2 => $3 => $4 => $5 => Data_Promise_map_Functor_Promise($2, $3, $4, $5);
1294
1446
  });
1295
1447
 
1296
- const csegen_49 = __lazy(function () {
1297
- return {a1: csegen_34(), a2: $3 => $4 => Prelude_EqOrd_compare_Ord_String($3, $4), a3: $9 => $a => Prelude_EqOrd_x3c_Ord_String($9, $a), a4: $f => $10 => Prelude_EqOrd_x3e_Ord_String($f, $10), a5: $15 => $16 => Prelude_EqOrd_x3cx3d_Ord_String($15, $16), a6: $1b => $1c => Prelude_EqOrd_x3ex3d_Ord_String($1b, $1c), a7: $21 => $22 => Prelude_EqOrd_max_Ord_String($21, $22), a8: $27 => $28 => Prelude_EqOrd_min_Ord_String($27, $28)};
1448
+ const csegen_72 = __lazy(function () {
1449
+ return {a1: csegen_57(), a2: $3 => $4 => Prelude_EqOrd_compare_Ord_String($3, $4), a3: $9 => $a => Prelude_EqOrd_x3c_Ord_String($9, $a), a4: $f => $10 => Prelude_EqOrd_x3e_Ord_String($f, $10), a5: $15 => $16 => Prelude_EqOrd_x3cx3d_Ord_String($15, $16), a6: $1b => $1c => Prelude_EqOrd_x3ex3d_Ord_String($1b, $1c), a7: $21 => $22 => Prelude_EqOrd_max_Ord_String($21, $22), a8: $27 => $28 => Prelude_EqOrd_min_Ord_String($27, $28)};
1298
1450
  });
1299
1451
 
1300
- const csegen_53 = __lazy(function () {
1301
- return b => a => func => $0 => $1 => $2 => Data_Promise_map_Functor_Promise(func, $0, $1, $2);
1452
+ const csegen_76 = __lazy(function () {
1453
+ return $0 => $1 => $2 => $3 => Prelude_Types_map_Functor_List($2, $3);
1302
1454
  });
1303
1455
 
1304
- const csegen_59 = __lazy(function () {
1305
- return {a1: csegen_53(), a2: a => $3 => $4 => $5 => Data_Promise_pure_Applicative_Promise($3, $4, $5), a3: b => a => $b => $c => $d => $e => Data_Promise_x3cx2ax3e_Applicative_Promise($b, $c, $d, $e)};
1456
+ const csegen_79 = __lazy(function () {
1457
+ return {a1: x => Prelude_Show_show_Show_String(x), a2: d => x => Prelude_Show_showPrec_Show_String(d, x)};
1306
1458
  });
1307
1459
 
1308
- const csegen_62 = __lazy(function () {
1309
- return $0 => $1 => $2 => $3 => Prelude_Types_map_Functor_List($2, $3);
1460
+ const csegen_80 = __lazy(function () {
1461
+ return $0 => $1 => Data_Promise_pure_Applicative_Promise(0, $0, $1);
1310
1462
  });
1311
1463
 
1312
- const csegen_65 = __lazy(function () {
1313
- return {a1: x => Prelude_Show_show_Show_String(x), a2: d => x => Prelude_Show_showPrec_Show_String(d, x)};
1464
+ const csegen_85 = __lazy(function () {
1465
+ return Data_Fin_fromInteger(100n, Prelude_Types_fromInteger_Num_Nat(101n));
1314
1466
  });
1315
1467
 
1316
- const csegen_71 = __lazy(function () {
1317
- return {a1: csegen_59(), a2: b => a => $3 => $4 => $5 => $6 => Data_Promise_x3ex3ex3d_Monad_Promise($3, $4, $5, $6), a3: a => $d => $e => $f => Data_Promise_join_Monad_Promise($d, $e, $f)};
1468
+ const csegen_90 = __lazy(function () {
1469
+ return $0 => $0.a1;
1318
1470
  });
1319
1471
 
1320
- const csegen_74 = __lazy(function () {
1321
- return {a1: csegen_71(), a2: a => $3 => $4 => $5 => $6 => Data_Promise_liftIO_HasIO_Promise($3, $4, $5, $6)};
1472
+ const csegen_91 = __lazy(function () {
1473
+ return $0 => $1 => Data_Date_compare_Ord_Date($0, $1);
1322
1474
  });
1323
1475
 
1324
- const csegen_75 = __lazy(function () {
1325
- return $0 => $1 => Data_Promise_pure_Applicative_Promise(0, $0, $1);
1476
+ const csegen_106 = __lazy(function () {
1477
+ return $0 => $0.a2;
1326
1478
  });
1327
1479
 
1328
- const csegen_80 = __lazy(function () {
1329
- return Data_Fin_fromInteger(100n, Prelude_Types_fromInteger_Num_Nat(101n));
1480
+ const csegen_109 = __lazy(function () {
1481
+ return $0 => $0.a1;
1330
1482
  });
1331
1483
 
1332
- const csegen_114 = __lazy(function () {
1484
+ const csegen_126 = __lazy(function () {
1333
1485
  return {a1: acc => elem => func => init => input => Prelude_Types_foldr_Foldable_List(func, init, input), a2: elem => acc => func => init => input => Prelude_Types_foldl_Foldable_List(func, init, input), a3: elem => $b => Prelude_Types_null_Foldable_List($b), a4: elem => acc => m => $f => funcM => init => input => Prelude_Types_foldlM_Foldable_List($f, funcM, init, input), a5: elem => $16 => Prelude_Types_toList_Foldable_List($16), a6: a => m => $1a => f => $1b => Prelude_Types_foldMap_Foldable_List($1a, f, $1b)};
1334
1486
  });
1335
1487
 
1336
- const csegen_115 = __lazy(function () {
1488
+ const csegen_129 = __lazy(function () {
1337
1489
  return $0 => $1 => Prelude_Types_max_Ord_Nat($0, $1);
1338
1490
  });
1339
1491
 
1340
- const csegen_118 = __lazy(function () {
1492
+ const csegen_133 = __lazy(function () {
1341
1493
  return $0 => $1 => $2 => $3 => Prelude_Types_map_Functor_Maybe($2, $3);
1342
1494
  });
1343
1495
 
1344
- const csegen_119 = __lazy(function () {
1496
+ const csegen_134 = __lazy(function () {
1345
1497
  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}}}));
1346
1498
  });
1347
1499
 
1348
- const csegen_136 = __lazy(function () {
1500
+ const csegen_159 = __lazy(function () {
1349
1501
  return {a1: {a1: b => a => func => $2 => Control_Monad_ST_map_Functor_x28STx20x24sx29(func, $2), a2: a => $7 => $8 => Control_Monad_ST_pure_Applicative_x28STx20x24sx29($7, $8), a3: b => a => $d => $e => $f => Control_Monad_ST_x3cx2ax3e_Applicative_x28STx20x24sx29($d, $e, $f)}, a2: b => a => $15 => $16 => $17 => Control_Monad_ST_x3ex3ex3d_Monad_x28STx20x24sx29($15, $16, $17), a3: a => $1d => $1e => Control_Monad_ST_join_Monad_x28STx20x24sx29($1d, $1e)};
1350
1502
  });
1351
1503
 
1352
- const csegen_137 = __lazy(function () {
1504
+ const csegen_160 = __lazy(function () {
1353
1505
  return $0 => Control_Monad_ST_pure_Applicative_x28STx20x24sx29({h: 0}, $0);
1354
1506
  });
1355
1507
 
1356
- const csegen_150 = __lazy(function () {
1508
+ const csegen_173 = __lazy(function () {
1357
1509
  return $0 => $1 => Text_PrettyPrint_Prettyprinter_Doc_x3cx2bx3e_Semigroup_x28Docx20x24annx29($0, $1);
1358
1510
  });
1359
1511
 
1360
- const csegen_154 = __lazy(function () {
1512
+ const csegen_177 = __lazy(function () {
1361
1513
  return {a1: $1 => $2 => Prelude_EqOrd_x3dx3d_Eq_Char($1, $2), a2: $7 => $8 => Prelude_EqOrd_x2fx3d_Eq_Char($7, $8)};
1362
1514
  });
1363
1515
 
1364
- const csegen_170 = __lazy(function () {
1516
+ const csegen_193 = __lazy(function () {
1365
1517
  return $0 => $1 => ({a1: $0, a2: $1});
1366
1518
  });
1367
1519
 
1368
- const csegen_223 = __lazy(function () {
1369
- return {a1: csegen_114(), a2: {a1: $4 => $5 => Prelude_Types_x3cx2bx3e_Semigroup_String($4, $5), a2: Prelude_Types_neutral_Monoid_String()}};
1520
+ const csegen_246 = __lazy(function () {
1521
+ return {a1: csegen_126(), a2: {a1: $4 => $5 => Prelude_Types_x3cx2bx3e_Semigroup_String($4, $5), a2: Prelude_Types_neutral_Monoid_String()}};
1370
1522
  });
1371
1523
 
1372
- const csegen_233 = __lazy(function () {
1524
+ const csegen_256 = __lazy(function () {
1373
1525
  return b => a => $0 => $1 => Prelude_Types_x3ex3ex3d_Monad_x28Eitherx20x24ex29($0, $1);
1374
1526
  });
1375
1527
 
1376
- const csegen_234 = __lazy(function () {
1528
+ const csegen_257 = __lazy(function () {
1377
1529
  return a => $0 => Prelude_Types_join_Monad_x28Eitherx20x24ex29($0);
1378
1530
  });
1379
1531
 
1380
- const csegen_235 = __lazy(function () {
1532
+ const csegen_258 = __lazy(function () {
1381
1533
  return $0 => Data_Either_maybeToEither(() => 'Failed to parse JSON', Language_JSON_parse($0));
1382
1534
  });
1383
1535
 
1384
- const csegen_238 = __lazy(function () {
1536
+ const csegen_261 = __lazy(function () {
1385
1537
  return b => a => func => $0 => Text_Bounded_map_Functor_WithBounds(func, $0);
1386
1538
  });
1387
1539
 
1388
- const csegen_249 = __lazy(function () {
1540
+ const csegen_272 = __lazy(function () {
1389
1541
  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)};
1390
1542
  });
1391
1543
 
1392
- const csegen_263 = __lazy(function () {
1544
+ const csegen_286 = __lazy(function () {
1393
1545
  return {a1: {a1: $2 => $3 => Language_JSON_Tokens_x3dx3d_Eq_JSONTokenKind($2, $3), a2: $8 => $9 => Language_JSON_Tokens_x2fx3d_Eq_JSONTokenKind($8, $9)}, a2: {a1: $f => Language_JSON_Tokens_TokType_TokenKind_JSONTokenKind($f), a2: kind => $13 => Language_JSON_Tokens_tokValue_TokenKind_JSONTokenKind(kind, $13)}};
1394
1546
  });
1395
1547
 
1396
- const csegen_303 = __lazy(function () {
1548
+ const csegen_326 = __lazy(function () {
1397
1549
  return {a1: {a1: $2 => $3 => Language_JSON_String_Tokens_x3dx3d_Eq_JSONStringTokenKind($2, $3), a2: $8 => $9 => Language_JSON_String_Tokens_x2fx3d_Eq_JSONStringTokenKind($8, $9)}, a2: {a1: $f => Language_JSON_String_Tokens_TokType_TokenKind_JSONStringTokenKind($f), a2: kind => $13 => Language_JSON_String_Tokens_tokValue_TokenKind_JSONStringTokenKind(kind, $13)}};
1398
1550
  });
1399
1551
 
1400
- const csegen_319 = __lazy(function () {
1552
+ const csegen_342 = __lazy(function () {
1401
1553
  return $0 => $1 => $2 => $3 => Text_Bounded_map_Functor_WithBounds($2, $3);
1402
1554
  });
1403
1555
 
1404
- const csegen_322 = __lazy(function () {
1556
+ const csegen_345 = __lazy(function () {
1405
1557
  return {a1: {a1: 'End of input', a2: {h: 0}}, a2: {h: 0}};
1406
1558
  });
1407
1559
 
1408
- const csegen_366 = __lazy(function () {
1409
- return Prelude_IO_getLine(csegen_74());
1560
+ const csegen_389 = __lazy(function () {
1561
+ return Prelude_IO_getLine(csegen_20());
1410
1562
  });
1411
1563
 
1412
- const csegen_387 = __lazy(function () {
1413
- return $0 => $1 => Data_Promise_either(csegen_65(), Data_PullRequest_parsePullRequestsString($0), $1);
1564
+ const csegen_413 = __lazy(function () {
1565
+ return $0 => $1 => Data_Promise_either(csegen_79(), Data_PullRequest_parsePullRequestsString($0), $1);
1414
1566
  });
1415
1567
 
1416
- const csegen_388 = __lazy(function () {
1417
- return $0 => $1 => Data_Promise_either(csegen_65(), Data_User_parseUserString($0), $1);
1568
+ const csegen_414 = __lazy(function () {
1569
+ return $0 => $1 => Data_Promise_either(csegen_79(), Data_User_parseUserString($0), $1);
1418
1570
  });
1419
1571
 
1420
- const csegen_432 = __lazy(function () {
1572
+ const csegen_460 = __lazy(function () {
1421
1573
  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)};
1422
1574
  });
1423
1575
 
1424
- const csegen_436 = __lazy(function () {
1576
+ const csegen_464 = __lazy(function () {
1425
1577
  return b => a => f => $0 => $1 => $2 => Prelude_Types_traverse_Traversable_x28Eitherx20x24ex29($0, $1, $2);
1426
1578
  });
1427
1579
 
1428
- const csegen_458 = __lazy(function () {
1580
+ const csegen_486 = __lazy(function () {
1429
1581
  return {a1: $1 => $2 => _add32s($1, $2), a2: $6 => $7 => _mul32s($6, $7), a3: $b => Number(_truncBigInt32($b))};
1430
1582
  });
1431
1583
 
1432
- const csegen_472 = __lazy(function () {
1584
+ const csegen_501 = __lazy(function () {
1433
1585
  return $0 => $0.a2;
1434
1586
  });
1435
1587
 
1436
- const csegen_486 = __lazy(function () {
1588
+ const csegen_515 = __lazy(function () {
1437
1589
  return {a1: {a1: b => a => func => $2 => Prelude_Types_map_Functor_Maybe(func, $2), a2: a => $7 => Prelude_Types_pure_Applicative_Maybe($7), a3: b => a => $b => $c => Prelude_Types_x3cx2ax3e_Applicative_Maybe($b, $c)}, a2: b => a => $11 => $12 => Prelude_Types_x3ex3ex3d_Monad_Maybe($11, $12), a3: a => $17 => Prelude_Types_join_Monad_Maybe($17)};
1438
1590
  });
1439
1591
 
1440
- const csegen_489 = __lazy(function () {
1592
+ const csegen_518 = __lazy(function () {
1441
1593
  return $0 => $0.a1;
1442
1594
  });
1443
1595
 
1444
- const csegen_493 = __lazy(function () {
1445
- return Prelude_Interfaces_x3cx24x3e(csegen_41(), $4 => Prelude_Cast_cast_Cast_Integer_Bits32($4), System_time(csegen_74()));
1596
+ const csegen_521 = __lazy(function () {
1597
+ return Prelude_Interfaces_x3cx24x3e(csegen_64(), $4 => Prelude_Cast_cast_Cast_Integer_Bits32($4), System_time(csegen_20()));
1446
1598
  });
1447
1599
 
1448
- const csegen_497 = __lazy(function () {
1449
- return {a1: csegen_74(), a2: {a1: x => Data_Config_show_Show_Config(x), a2: d => x => Data_Config_showPrec_Show_Config(d, x)}};
1600
+ const csegen_525 = __lazy(function () {
1601
+ return {a1: csegen_20(), a2: {a1: x => Data_Config_show_Show_Config(x), a2: d => x => Data_Config_showPrec_Show_Config(d, x)}};
1450
1602
  });
1451
1603
 
1452
1604
  function prim__add_Integer($0, $1) {
@@ -1461,7 +1613,25 @@ function prim__mul_Integer($0, $1) {
1461
1613
  return ($0*$1);
1462
1614
  }
1463
1615
 
1464
- function Main_n__4782_1794_putNameLn($0, $1, $2, $3) {
1616
+ function Main_case__handleConfiguredArgs_2491($0, $1, $2, $3, $4) {
1617
+ switch($4.h) {
1618
+ case undefined: {
1619
+ switch($4.a1) {
1620
+ case '-': {
1621
+ const $7 = Prelude_Types_map_Functor_Maybe($a => Prelude_Cast_cast_Cast_Integer_Nat($a), Data_String_parsePositive(csegen_2(), Prelude_Types_fastPack($4.a2)));
1622
+ switch($7.h) {
1623
+ case undefined: return $14 => $15 => Main_contribute($0, $2, $7.a1, $14, $15);
1624
+ case 0: return csegen_21();
1625
+ }
1626
+ }
1627
+ default: return csegen_21();
1628
+ }
1629
+ }
1630
+ default: return csegen_21();
1631
+ }
1632
+ }
1633
+
1634
+ function Main_n__4887_2015_putNameLn($0, $1, $2, $3) {
1465
1635
  let $1c;
1466
1636
  switch(Data_String_isSuffixOf('\n', '-')) {
1467
1637
  case 1: {
@@ -1481,12 +1651,19 @@ function Main_n__4782_1794_putNameLn($0, $1, $2, $3) {
1481
1651
  return Text_PrettyPrint_Prettyprinter_Doc_hsep($5);
1482
1652
  }
1483
1653
 
1484
- function Main_n__4674_1703_partitionedArgs($0, $1, $2, $3, $4) {
1654
+ function Main_n__5057_2192_printResult($0, $1, $2, $3) {
1655
+ switch($3.h) {
1656
+ case 0: return $5 => $6 => Data_Promise_reject('No open PRs to review!', $5, $6);
1657
+ case undefined: return Prelude_IO_putStrLn(csegen_20(), $3.a1);
1658
+ }
1659
+ }
1660
+
1661
+ function Main_n__4779_1924_partitionedArgs($0, $1, $2, $3, $4) {
1485
1662
  const $5 = Data_List_partition($8 => Data_String_isPrefixOf('+', $8), $4);
1486
1663
  return {a1: Prelude_Types_map_Functor_List($11 => Data_String_Extra_drop(1n, $11), $5.a1), a2: $5.a2};
1487
1664
  }
1488
1665
 
1489
- function Main_n__4866_1886_maybeDecorated($0, $1, $2, $3) {
1666
+ function Main_n__4971_2107_maybeDecorated($0, $1, $2, $3) {
1490
1667
  switch(Data_Config_rf__colors($2)) {
1491
1668
  case 1: return $3;
1492
1669
  case 0: return Text_PrettyPrint_Prettyprinter_Doc_unAnnotate($3);
@@ -1494,136 +1671,179 @@ function Main_n__4866_1886_maybeDecorated($0, $1, $2, $3) {
1494
1671
  }
1495
1672
 
1496
1673
  function Main_resolvex27x27($0) {
1497
- return Data_Promise_resolvex27($3 => $4 => $3, $6 => Main_exitError(csegen_20(), $6), $0);
1674
+ return Data_Promise_resolvex27($3 => $4 => $3, $6 => Main_exitError(csegen_43(), $6), $0);
1498
1675
  }
1499
1676
 
1500
1677
  function Main_main($0) {
1501
- const $1 = System_File_Meta_isTTY(csegen_20(), System_File_Virtual_stdout())($0);
1502
- const $9 = Prelude_Interfaces_x3cx24x3e(csegen_25(), $f => Data_List_drop(2n, $f), System_getArgs(csegen_20()))($0);
1678
+ const $1 = System_File_Meta_isTTY(csegen_43(), System_File_Virtual_stdout())($0);
1679
+ const $9 = Prelude_Interfaces_x3cx24x3e(csegen_48(), $f => Data_List_drop(2n, $f), System_getArgs(csegen_43()))($0);
1503
1680
  let $20;
1504
- switch(Prelude_Types_x3dx3d_Eq_x28Listx20x24ax29(csegen_34(), $9, {a1: 'help', a2: {h: 0}})) {
1681
+ switch(Prelude_Types_x3dx3d_Eq_x28Listx20x24ax29(csegen_57(), $9, {a1: 'help', a2: {h: 0}})) {
1505
1682
  case 1: {
1506
1683
  $20 = 1;
1507
1684
  break;
1508
1685
  }
1509
1686
  case 0: {
1510
- $20 = Prelude_Types_x3dx3d_Eq_x28Listx20x24ax29(csegen_34(), $9, {a1: '--help', a2: {h: 0}});
1687
+ $20 = Prelude_Types_x3dx3d_Eq_x28Listx20x24ax29(csegen_57(), $9, {a1: '--help', a2: {h: 0}});
1511
1688
  break;
1512
1689
  }
1513
1690
  }
1514
- const $1c = Prelude_Interfaces_when(csegen_13(), $20, () => Prelude_Interfaces_x3ex3e(csegen_31(), Prelude_IO_putStrLn(csegen_20(), Help_help($1)), () => System_exitSuccess(csegen_20())));
1515
- const $18 = Prelude_Interfaces_x3ex3e(csegen_31(), $1c, () => $40 => {
1516
- const $41 = System_getEnv(csegen_20(), 'GITHUB_PAT')($40);
1691
+ const $1c = Prelude_Interfaces_when(csegen_36(), $20, () => Prelude_Interfaces_x3ex3e(csegen_54(), Prelude_IO_putStrLn(csegen_43(), Help_help($1)), () => System_exitSuccess(csegen_43())));
1692
+ const $18 = Prelude_Interfaces_x3ex3e(csegen_54(), $1c, () => $40 => {
1693
+ const $41 = System_getEnv(csegen_43(), 'GITHUB_PAT')($40);
1517
1694
  switch($41.h) {
1518
1695
  case undefined: {
1519
1696
  const $49 = FFI_GitHub_octokit($41.a1)($40);
1520
- const $4e = FFI_Git_git(csegen_20())($40);
1697
+ const $4e = FFI_Git_git(csegen_43())($40);
1521
1698
  return Main_handleArgs($4e, $49, $1, $9)($40);
1522
1699
  }
1523
- case 0: return Main_exitError(csegen_20(), 'GITHUB_PAT environment variable must be set to a personal access token.')($40);
1700
+ case 0: return Main_exitError(csegen_43(), 'GITHUB_PAT environment variable must be set to a personal access token.')($40);
1524
1701
  }
1525
1702
  });
1526
1703
  return $18($0);
1527
1704
  }
1528
1705
 
1529
1706
  function Main_listTeam($0, $1, $2, $3, $4) {
1530
- return Data_Promise_x3ex3ex3d_Monad_Promise(Prelude_Interfaces_x3cx24x3e(csegen_41(), $b => Data_List_sort(csegen_49(), $b), FFI_GitHub_listTeamMembers($1, $0.a2, $2)), teamMemberLogins => $17 => $18 => Data_Promise_x3ex3ex3d_Monad_Promise(Prelude_Types_traverse_Traversable_List(csegen_59(), FFI_GitHub_getUser($1), teamMemberLogins), teamMembers => $23 => $24 => $25 => Data_Promise_liftIO_HasIO_Promise(Text_PrettyPrint_Prettyprinter_Render_Terminal_putDoc(Text_PrettyPrint_Prettyprinter_Doc_vsep(Prelude_Interfaces_x3cx24x3e(csegen_62(), $30 => Main_n__4782_1794_putNameLn($1, $2, $0, $30), teamMembers))), $23, $24, $25), $17, $18), $3, $4);
1707
+ return Data_Promise_x3ex3ex3d_Monad_Promise(Prelude_Interfaces_x3cx24x3e(csegen_64(), $b => Data_List_sort(csegen_72(), $b), FFI_GitHub_listTeamMembers($1, $0.a2, $2)), teamMemberLogins => $17 => $18 => Data_Promise_x3ex3ex3d_Monad_Promise(Prelude_Types_traverse_Traversable_List(csegen_11(), FFI_GitHub_getUser($1), teamMemberLogins), teamMembers => $23 => $24 => $25 => Data_Promise_liftIO_HasIO_Promise(Text_PrettyPrint_Prettyprinter_Render_Terminal_putDoc(Text_PrettyPrint_Prettyprinter_Doc_vsep(Prelude_Interfaces_x3cx24x3e(csegen_76(), $30 => Main_n__4887_2015_putNameLn($1, $2, $0, $30), teamMembers))), $23, $24, $25), $17, $18), $3, $4);
1531
1708
  }
1532
1709
 
1533
1710
  function Main_handleConfiguredArgs($0, $1, $2, $3) {
1534
1711
  switch($3.h) {
1535
- case 0: return $5 => $6 => Data_Promise_reject('You must specify a subcommand as the first argument to harmony.', $5, $6);
1712
+ case 0: return Prelude_IO_putStrLn(csegen_20(), Help_help(Data_Config_rf__colors($0)));
1536
1713
  case undefined: {
1537
1714
  switch($3.a1) {
1715
+ case 'reviews': {
1716
+ switch($3.a2.h) {
1717
+ case undefined: {
1718
+ switch($3.a2.a1) {
1719
+ case '--json': {
1720
+ switch($3.a2.a2.h) {
1721
+ case undefined: {
1722
+ return $11 => {
1723
+ switch($3.a2.a2.a2.h) {
1724
+ case 0: {
1725
+ return $13 => {
1726
+ const $14 = Data_String_parsePositive(csegen_2(), $3.a2.a2.a1);
1727
+ switch($14.h) {
1728
+ case undefined: return Data_Promise_x3ex3ex3d_Monad_Promise($1b => $1c => FFI_GitHub_listPullReviewsJsonStr($2, $0.a2, $0.a3, $14.a1, $1b, $1c), reviewsJsonStr => Prelude_IO_putStr(csegen_20(), reviewsJsonStr), $11, $13);
1729
+ case 0: return Data_Promise_pure_Applicative_Promise(0, $11, $13);
1730
+ }
1731
+ };
1732
+ }
1733
+ default: return $31 => Data_Promise_reject(Prelude_Types_String_x2bx2b('Unexpected command line arguments: ', Prelude_Types_String_x2bx2b(Prelude_Show_show_Show_x28Listx20x24ax29(csegen_79(), $3), '.')), $11, $31);
1734
+ }
1735
+ };
1736
+ }
1737
+ default: return $40 => $41 => Data_Promise_reject(Prelude_Types_String_x2bx2b('Unexpected command line arguments: ', Prelude_Types_String_x2bx2b(Prelude_Show_show_Show_x28Listx20x24ax29(csegen_79(), $3), '.')), $40, $41);
1738
+ }
1739
+ }
1740
+ default: return $50 => $51 => Data_Promise_reject(Prelude_Types_String_x2bx2b('Unexpected command line arguments: ', Prelude_Types_String_x2bx2b(Prelude_Show_show_Show_x28Listx20x24ax29(csegen_79(), $3), '.')), $50, $51);
1741
+ }
1742
+ }
1743
+ default: return $60 => $61 => Data_Promise_reject(Prelude_Types_String_x2bx2b('Unexpected command line arguments: ', Prelude_Types_String_x2bx2b(Prelude_Show_show_Show_x28Listx20x24ax29(csegen_79(), $3), '.')), $60, $61);
1744
+ }
1745
+ }
1538
1746
  case 'sync': {
1539
- return $c => $d => {
1747
+ return $70 => $71 => {
1540
1748
  switch($3.a2.h) {
1541
- case 0: return Data_Promise_map_Functor_Promise($11 => 0, $13 => $14 => Config_syncConfig($0, $2, 1, $13, $14), $c, $d);
1542
- default: return Data_Promise_reject(Prelude_Types_String_x2bx2b('Unexpected command line arguments: ', Prelude_Types_String_x2bx2b(Prelude_Show_show_Show_x28Listx20x24ax29(csegen_65(), $3), '.')), $c, $d);
1749
+ case 0: return Data_Promise_map_Functor_Promise($75 => 0, $77 => $78 => Config_syncConfig($0, $2, 1, $77, $78), $70, $71);
1750
+ default: return Data_Promise_reject(Prelude_Types_String_x2bx2b('Unexpected command line arguments: ', Prelude_Types_String_x2bx2b(Prelude_Show_show_Show_x28Listx20x24ax29(csegen_79(), $3), '.')), $70, $71);
1543
1751
  }
1544
1752
  };
1545
1753
  }
1546
1754
  case 'pr': {
1547
- return $2b => $2c => {
1755
+ return $8f => $90 => {
1548
1756
  switch($3.a2.h) {
1549
1757
  case 0: {
1550
- const $47 = $48 => {
1551
- switch($48.h) {
1758
+ const $ab = $ac => {
1759
+ switch($ac.h) {
1552
1760
  case undefined: {
1553
- switch($48.a1) {
1554
- case 0: return Prelude_IO_putStrLn(csegen_74(), Data_PullRequest_rf__webURI($0, $48.a2));
1555
- default: return csegen_75();
1761
+ switch($ac.a1) {
1762
+ case 0: return Prelude_IO_putStrLn(csegen_20(), Data_PullRequest_rf__webURI($0, $ac.a2));
1763
+ default: return csegen_80();
1556
1764
  }
1557
1765
  }
1558
- default: return csegen_75();
1766
+ default: return csegen_80();
1559
1767
  }
1560
1768
  };
1561
- return Data_Promise_x3ex3ex3d_Monad_Promise($30 => $31 => Data_Promise_x3ex3ex3d_Monad_Promise($34 => $35 => FFI_Git_currentBranch($1, $34, $35), $3b => $3c => $3d => PullRequest_identifyOrCreatePR($0, $1, $2, $3b, $3c, $3d), $30, $31), $47, $2b, $2c);
1769
+ return Data_Promise_x3ex3ex3d_Monad_Promise($94 => $95 => Data_Promise_x3ex3ex3d_Monad_Promise($98 => $99 => FFI_Git_currentBranch($1, $98, $99), $9f => $a0 => $a1 => PullRequest_identifyOrCreatePR($0, $1, $2, $9f, $a0, $a1), $94, $95), $ab, $8f, $90);
1562
1770
  }
1563
- default: return Data_Promise_reject(Prelude_Types_String_x2bx2b('Unexpected command line arguments: ', Prelude_Types_String_x2bx2b(Prelude_Show_show_Show_x28Listx20x24ax29(csegen_65(), $3), '.')), $2b, $2c);
1771
+ default: return Data_Promise_reject(Prelude_Types_String_x2bx2b('Unexpected command line arguments: ', Prelude_Types_String_x2bx2b(Prelude_Show_show_Show_x28Listx20x24ax29(csegen_79(), $3), '.')), $8f, $90);
1564
1772
  }
1565
1773
  };
1566
1774
  }
1567
1775
  case 'reflect': {
1568
- return $64 => $65 => {
1776
+ return $c8 => $c9 => {
1569
1777
  switch($3.a2.h) {
1570
- case 0: return User_Reflect_reflectOnSelf($0, $2, $64, $65);
1571
- default: return Data_Promise_reject(Prelude_Types_String_x2bx2b('Unexpected command line arguments: ', Prelude_Types_String_x2bx2b(Prelude_Show_show_Show_x28Listx20x24ax29(csegen_65(), $3), '.')), $64, $65);
1778
+ case 0: return User_Reflect_reflectOnSelf($0, $2, $c8, $c9);
1779
+ default: return Data_Promise_reject(Prelude_Types_String_x2bx2b('Unexpected command line arguments: ', Prelude_Types_String_x2bx2b(Prelude_Show_show_Show_x28Listx20x24ax29(csegen_79(), $3), '.')), $c8, $c9);
1572
1780
  }
1573
1781
  };
1574
1782
  }
1783
+ case 'contribute': {
1784
+ switch($3.a2.h) {
1785
+ case 0: return $df => $e0 => Main_contribute($0, $2, 0n, $df, $e0);
1786
+ case undefined: {
1787
+ switch($3.a2.a2.h) {
1788
+ case 0: return Main_case__handleConfiguredArgs_2491($0, $1, $2, $3.a2.a1, Prelude_Types_fastUnpack($3.a2.a1));
1789
+ default: return $f0 => $f1 => Data_Promise_reject(Prelude_Types_String_x2bx2b('Unexpected command line arguments: ', Prelude_Types_String_x2bx2b(Prelude_Show_show_Show_x28Listx20x24ax29(csegen_79(), $3), '.')), $f0, $f1);
1790
+ }
1791
+ }
1792
+ default: return $100 => $101 => Data_Promise_reject(Prelude_Types_String_x2bx2b('Unexpected command line arguments: ', Prelude_Types_String_x2bx2b(Prelude_Show_show_Show_x28Listx20x24ax29(csegen_79(), $3), '.')), $100, $101);
1793
+ }
1794
+ }
1575
1795
  case 'list': {
1576
1796
  switch($3.a2.h) {
1577
- case 0: return $7b => $7c => Data_Promise_reject('The list command expects the name of a GitHub Team as an argument.', $7b, $7c);
1797
+ case 0: return $111 => $112 => Data_Promise_reject('The list command expects the name of a GitHub Team as an argument.', $111, $112);
1578
1798
  case undefined: {
1579
- return $81 => {
1799
+ return $117 => {
1580
1800
  switch($3.a2.a2.h) {
1581
- case 0: return $83 => Main_listTeam($0, $2, $3.a2.a1, $81, $83);
1582
- default: return $8a => Data_Promise_reject(Prelude_Types_String_x2bx2b('Unexpected command line arguments: ', Prelude_Types_String_x2bx2b(Prelude_Show_show_Show_x28Listx20x24ax29(csegen_65(), $3), '.')), $81, $8a);
1801
+ case 0: return $119 => Main_listTeam($0, $2, $3.a2.a1, $117, $119);
1802
+ default: return $120 => Data_Promise_reject(Prelude_Types_String_x2bx2b('Unexpected command line arguments: ', Prelude_Types_String_x2bx2b(Prelude_Show_show_Show_x28Listx20x24ax29(csegen_79(), $3), '.')), $117, $120);
1583
1803
  }
1584
1804
  };
1585
1805
  }
1586
- default: return $99 => $9a => Data_Promise_reject(Prelude_Types_String_x2bx2b('Unexpected command line arguments: ', Prelude_Types_String_x2bx2b(Prelude_Show_show_Show_x28Listx20x24ax29(csegen_65(), $3), '.')), $99, $9a);
1806
+ default: return $12f => $130 => Data_Promise_reject(Prelude_Types_String_x2bx2b('Unexpected command line arguments: ', Prelude_Types_String_x2bx2b(Prelude_Show_show_Show_x28Listx20x24ax29(csegen_79(), $3), '.')), $12f, $130);
1587
1807
  }
1588
1808
  }
1589
1809
  case 'graph': {
1590
1810
  switch($3.a2.h) {
1591
- case 0: return $aa => $ab => Data_Promise_reject('The graph command expects the name of a GitHub Team as an argument.', $aa, $ab);
1811
+ case 0: return $140 => $141 => Data_Promise_reject('The graph command expects the name of a GitHub Team as an argument.', $140, $141);
1592
1812
  case undefined: {
1593
- return $b0 => {
1813
+ return $146 => {
1594
1814
  switch($3.a2.a2.h) {
1595
- case 0: return $b2 => Main_graphTeam($0, $2, $3.a2.a1, $b0, $b2);
1596
- default: return $b9 => Data_Promise_reject(Prelude_Types_String_x2bx2b('Unexpected command line arguments: ', Prelude_Types_String_x2bx2b(Prelude_Show_show_Show_x28Listx20x24ax29(csegen_65(), $3), '.')), $b0, $b9);
1815
+ case 0: return $148 => Main_graphTeam($0, $2, $3.a2.a1, $146, $148);
1816
+ default: return $14f => Data_Promise_reject(Prelude_Types_String_x2bx2b('Unexpected command line arguments: ', Prelude_Types_String_x2bx2b(Prelude_Show_show_Show_x28Listx20x24ax29(csegen_79(), $3), '.')), $146, $14f);
1597
1817
  }
1598
1818
  };
1599
1819
  }
1600
- default: return $c8 => $c9 => Data_Promise_reject(Prelude_Types_String_x2bx2b('Unexpected command line arguments: ', Prelude_Types_String_x2bx2b(Prelude_Show_show_Show_x28Listx20x24ax29(csegen_65(), $3), '.')), $c8, $c9);
1820
+ default: return $15e => $15f => Data_Promise_reject(Prelude_Types_String_x2bx2b('Unexpected command line arguments: ', Prelude_Types_String_x2bx2b(Prelude_Show_show_Show_x28Listx20x24ax29(csegen_79(), $3), '.')), $15e, $15f);
1601
1821
  }
1602
1822
  }
1603
1823
  case 'assign': {
1604
1824
  switch($3.a2.h) {
1605
- case 0: return $d9 => $da => Data_Promise_reject('The assign commaand expects one or more names of GitHub Teams or Users as arguments.', $d9, $da);
1825
+ case 0: return $16f => $170 => Data_Promise_reject('The assign commaand expects one or more names of GitHub Teams or Users as arguments.', $16f, $170);
1606
1826
  case undefined: {
1607
1827
  switch($3.a2.a1) {
1608
1828
  case '--dry': {
1609
- return $e0 => {
1829
+ return $176 => {
1610
1830
  switch($3.a2.a2.h) {
1611
- case 0: return $e2 => Data_Promise_reject('The assign commaand expects one or more names of GitHub Teams or Users as arguments.', $e0, $e2);
1612
- case undefined: return $e7 => Main_assign($0, $1, $2, {a1: $3.a2.a2.a1, a2: $3.a2.a2.a2}, 1, $e0, $e7);
1613
- default: return $f2 => Main_assign($0, $1, $2, {a1: $3.a2.a1, a2: $3.a2.a2}, 0, $e0, $f2);
1831
+ case 0: return $178 => Data_Promise_reject('The assign commaand expects one or more names of GitHub Teams or Users as arguments.', $176, $178);
1832
+ case undefined: return $17d => Main_assign($0, $1, $2, {a1: $3.a2.a2.a1, a2: $3.a2.a2.a2}, 1, $176, $17d);
1833
+ default: return $188 => Main_assign($0, $1, $2, {a1: $3.a2.a1, a2: $3.a2.a2}, 0, $176, $188);
1614
1834
  }
1615
1835
  };
1616
1836
  }
1617
- default: return $fd => $fe => Main_assign($0, $1, $2, {a1: $3.a2.a1, a2: $3.a2.a2}, 0, $fd, $fe);
1837
+ default: return $193 => $194 => Main_assign($0, $1, $2, {a1: $3.a2.a1, a2: $3.a2.a2}, 0, $193, $194);
1618
1838
  }
1619
1839
  }
1620
- default: return $109 => $10a => Data_Promise_reject(Prelude_Types_String_x2bx2b('Unexpected command line arguments: ', Prelude_Types_String_x2bx2b(Prelude_Show_show_Show_x28Listx20x24ax29(csegen_65(), $3), '.')), $109, $10a);
1840
+ default: return $19f => $1a0 => Data_Promise_reject(Prelude_Types_String_x2bx2b('Unexpected command line arguments: ', Prelude_Types_String_x2bx2b(Prelude_Show_show_Show_x28Listx20x24ax29(csegen_79(), $3), '.')), $19f, $1a0);
1621
1841
  }
1622
1842
  }
1623
- default: return $119 => $11a => Data_Promise_reject(Prelude_Types_String_x2bx2b('Unexpected command line arguments: ', Prelude_Types_String_x2bx2b(Prelude_Show_show_Show_x28Listx20x24ax29(csegen_65(), $3), '.')), $119, $11a);
1843
+ default: return $1af => $1b0 => Data_Promise_reject(Prelude_Types_String_x2bx2b('Unexpected command line arguments: ', Prelude_Types_String_x2bx2b(Prelude_Show_show_Show_x28Listx20x24ax29(csegen_79(), $3), '.')), $1af, $1b0);
1624
1844
  }
1625
1845
  }
1626
- default: return $129 => $12a => Data_Promise_reject(Prelude_Types_String_x2bx2b('Unexpected command line arguments: ', Prelude_Types_String_x2bx2b(Prelude_Show_show_Show_x28Listx20x24ax29(csegen_65(), $3), '.')), $129, $12a);
1846
+ default: return $1bf => $1c0 => Data_Promise_reject(Prelude_Types_String_x2bx2b('Unexpected command line arguments: ', Prelude_Types_String_x2bx2b(Prelude_Show_show_Show_x28Listx20x24ax29(csegen_79(), $3), '.')), $1bf, $1c0);
1627
1847
  }
1628
1848
  }
1629
1849
 
@@ -1637,31 +1857,31 @@ function Main_handleArgs($0, $1, $2, $3) {
1637
1857
  switch($3.a2.a2.h) {
1638
1858
  case undefined: {
1639
1859
  switch($3.a2.a2.a2.h) {
1640
- case 0: return Main_bashCompletion(csegen_20(), $3.a2.a1, $3.a2.a2.a1);
1641
- default: return Main_resolvex27x27($10 => $11 => Data_Promise_x3ex3ex3d_Monad_Promise(Prelude_Interfaces_x3dx3cx3c(csegen_71(), $18 => $19 => $1a => Config_syncIfOld($1, $18, $19, $1a), $21 => $22 => Config_loadOrCreateConfig($0, $1, $2, $21, $22)), _ => Main_handleConfiguredArgs(_, $0, $1, $3), $10, $11));
1860
+ case 0: return Main_bashCompletion(csegen_43(), $3.a2.a1, $3.a2.a2.a1);
1861
+ default: return Main_resolvex27x27($10 => $11 => Data_Promise_x3ex3ex3d_Monad_Promise(Prelude_Interfaces_x3dx3cx3c(csegen_17(), $18 => $19 => $1a => Config_syncIfOld($1, $18, $19, $1a), $21 => $22 => Config_loadOrCreateConfig($0, $1, $2, $21, $22)), _ => Main_handleConfiguredArgs(_, $0, $1, $3), $10, $11));
1642
1862
  }
1643
1863
  }
1644
- default: return Main_resolvex27x27($33 => $34 => Data_Promise_x3ex3ex3d_Monad_Promise(Prelude_Interfaces_x3dx3cx3c(csegen_71(), $3b => $3c => $3d => Config_syncIfOld($1, $3b, $3c, $3d), $44 => $45 => Config_loadOrCreateConfig($0, $1, $2, $44, $45)), _ => Main_handleConfiguredArgs(_, $0, $1, $3), $33, $34));
1864
+ default: return Main_resolvex27x27($33 => $34 => Data_Promise_x3ex3ex3d_Monad_Promise(Prelude_Interfaces_x3dx3cx3c(csegen_17(), $3b => $3c => $3d => Config_syncIfOld($1, $3b, $3c, $3d), $44 => $45 => Config_loadOrCreateConfig($0, $1, $2, $44, $45)), _ => Main_handleConfiguredArgs(_, $0, $1, $3), $33, $34));
1645
1865
  }
1646
1866
  }
1647
- default: return Main_resolvex27x27($56 => $57 => Data_Promise_x3ex3ex3d_Monad_Promise(Prelude_Interfaces_x3dx3cx3c(csegen_71(), $5e => $5f => $60 => Config_syncIfOld($1, $5e, $5f, $60), $67 => $68 => Config_loadOrCreateConfig($0, $1, $2, $67, $68)), _ => Main_handleConfiguredArgs(_, $0, $1, $3), $56, $57));
1867
+ default: return Main_resolvex27x27($56 => $57 => Data_Promise_x3ex3ex3d_Monad_Promise(Prelude_Interfaces_x3dx3cx3c(csegen_17(), $5e => $5f => $60 => Config_syncIfOld($1, $5e, $5f, $60), $67 => $68 => Config_loadOrCreateConfig($0, $1, $2, $67, $68)), _ => Main_handleConfiguredArgs(_, $0, $1, $3), $56, $57));
1648
1868
  }
1649
1869
  }
1650
1870
  case '--bash-completion-script': {
1651
1871
  switch($3.a2.h) {
1652
- case 0: return Prelude_IO_putStrLn(csegen_20(), BashCompletion_script());
1653
- default: return Main_resolvex27x27($7f => $80 => Data_Promise_x3ex3ex3d_Monad_Promise(Prelude_Interfaces_x3dx3cx3c(csegen_71(), $87 => $88 => $89 => Config_syncIfOld($1, $87, $88, $89), $90 => $91 => Config_loadOrCreateConfig($0, $1, $2, $90, $91)), _ => Main_handleConfiguredArgs(_, $0, $1, $3), $7f, $80));
1872
+ case 0: return Prelude_IO_putStrLn(csegen_43(), BashCompletion_script());
1873
+ default: return Main_resolvex27x27($7f => $80 => Data_Promise_x3ex3ex3d_Monad_Promise(Prelude_Interfaces_x3dx3cx3c(csegen_17(), $87 => $88 => $89 => Config_syncIfOld($1, $87, $88, $89), $90 => $91 => Config_loadOrCreateConfig($0, $1, $2, $90, $91)), _ => Main_handleConfiguredArgs(_, $0, $1, $3), $7f, $80));
1654
1874
  }
1655
1875
  }
1656
- default: return Main_resolvex27x27($a2 => $a3 => Data_Promise_x3ex3ex3d_Monad_Promise(Prelude_Interfaces_x3dx3cx3c(csegen_71(), $aa => $ab => $ac => Config_syncIfOld($1, $aa, $ab, $ac), $b3 => $b4 => Config_loadOrCreateConfig($0, $1, $2, $b3, $b4)), _ => Main_handleConfiguredArgs(_, $0, $1, $3), $a2, $a3));
1876
+ default: return Main_resolvex27x27($a2 => $a3 => Data_Promise_x3ex3ex3d_Monad_Promise(Prelude_Interfaces_x3dx3cx3c(csegen_17(), $aa => $ab => $ac => Config_syncIfOld($1, $aa, $ab, $ac), $b3 => $b4 => Config_loadOrCreateConfig($0, $1, $2, $b3, $b4)), _ => Main_handleConfiguredArgs(_, $0, $1, $3), $a2, $a3));
1657
1877
  }
1658
1878
  }
1659
- default: return Main_resolvex27x27($c5 => $c6 => Data_Promise_x3ex3ex3d_Monad_Promise(Prelude_Interfaces_x3dx3cx3c(csegen_71(), $cd => $ce => $cf => Config_syncIfOld($1, $cd, $ce, $cf), $d6 => $d7 => Config_loadOrCreateConfig($0, $1, $2, $d6, $d7)), _ => Main_handleConfiguredArgs(_, $0, $1, $3), $c5, $c6));
1879
+ default: return Main_resolvex27x27($c5 => $c6 => Data_Promise_x3ex3ex3d_Monad_Promise(Prelude_Interfaces_x3dx3cx3c(csegen_17(), $cd => $ce => $cf => Config_syncIfOld($1, $cd, $ce, $cf), $d6 => $d7 => Config_loadOrCreateConfig($0, $1, $2, $d6, $d7)), _ => Main_handleConfiguredArgs(_, $0, $1, $3), $c5, $c6));
1660
1880
  }
1661
1881
  }
1662
1882
 
1663
1883
  function Main_graphTeam($0, $1, $2, $3, $4) {
1664
- 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, csegen_80(), $11, $12), $1b => $1c => $1d => $1e => Data_Promise_liftIO_HasIO_Promise(Text_PrettyPrint_Prettyprinter_Render_Terminal_putDoc(Main_n__4866_1886_maybeDecorated($1, $2, $0, Reviewer_reviewsGraph(csegen_49(), {a1: ann => $2e => Text_PrettyPrint_Prettyprinter_Doc_pretty_Pretty_String($2e), a2: ann => $32 => $33 => Text_PrettyPrint_Prettyprinter_Doc_prettyPrec_Pretty_String($32, $33)}, $1b.a2, $1b.a1, teamMemberLogins))), $1c, $1d, $1e), $d, $e), $3, $4);
1884
+ 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, csegen_85(), $11, $12), $1b => $1c => $1d => $1e => Data_Promise_liftIO_HasIO_Promise(Text_PrettyPrint_Prettyprinter_Render_Terminal_putDoc(Main_n__4971_2107_maybeDecorated($1, $2, $0, Reviewer_reviewsGraph(csegen_72(), {a1: ann => $2e => Text_PrettyPrint_Prettyprinter_Doc_pretty_Pretty_String($2e), a2: ann => $32 => $33 => Text_PrettyPrint_Prettyprinter_Doc_prettyPrec_Pretty_String($32, $33)}, $1b.a2, $1b.a1, teamMemberLogins))), $1c, $1d, $1e), $d, $e), $3, $4);
1665
1885
  }
1666
1886
 
1667
1887
  function Main_exitError($0, $1) {
@@ -1682,6 +1902,26 @@ function Main_exitError($0, $1) {
1682
1902
  return $0.a1.a2(undefined)(undefined)(System_File_Meta_isTTY($0, System_File_Virtual_stderr()))($f);
1683
1903
  }
1684
1904
 
1905
+ function Main_contribute($0, $1, $2, $3, $4) {
1906
+ const $11 = openPrs => $12 => $13 => {
1907
+ const $1e = myLogin => {
1908
+ const $21 = $22 => {
1909
+ switch(Data_PullRequest_isAuthor(myLogin, $22)) {
1910
+ case 1: return 0;
1911
+ case 0: return 1;
1912
+ }
1913
+ };
1914
+ const $1f = Data_List_filter($21, openPrs);
1915
+ const $28 = Data_List_partition($2b => Data_PullRequest_isRequestedReviewer(myLogin, $2b), $1f);
1916
+ const $30 = Prelude_Interfaces_mapHom({a1: d => b => c => a => $34 => $35 => $36 => ({a1: $34($36.a1), a2: $35($36.a2)}), a2: b => c => a => $3f => $40 => ({a1: $3f($40.a1), a2: $40.a2}), a3: a => d => b => $47 => $48 => ({a1: $48.a1, a2: $47($48.a2)})}, $4f => Data_List_sortBy($52 => $53 => Prelude_Basics_on(csegen_91(), $58 => $58.a2, $52, $53), $4f), $28);
1917
+ const $5e = Prelude_Types_map_Functor_Maybe($61 => Data_PullRequest_rf__webURI($0, $61), Data_List_headx27(Data_List_drop($2, Prelude_Types_List_tailRecAppend($30.a1, $30.a2))));
1918
+ return Main_n__5057_2192_printResult($1, $2, $0, $5e);
1919
+ };
1920
+ return Data_Promise_x3ex3ex3d_Monad_Promise(Prelude_Interfaces_x3cx24x3e(csegen_64(), csegen_90(), FFI_GitHub_getSelf($1)), $1e, $12, $13);
1921
+ };
1922
+ return Data_Promise_x3ex3ex3d_Monad_Promise(FFI_GitHub_listPullRequests($1, $0.a2, $0.a3, {a1: 0}, csegen_85()), $11, $3, $4);
1923
+ }
1924
+
1685
1925
  function Main_bashCompletion($0, $1, $2) {
1686
1926
  const $f = $10 => {
1687
1927
  switch($10.h) {
@@ -1697,17 +1937,17 @@ function Main_bashCompletion($0, $1, $2) {
1697
1937
 
1698
1938
  function Main_assign($0, $1, $2, $3, $4, $5, $6) {
1699
1939
  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 => {
1700
- const $25 = Main_n__4674_1703_partitionedArgs($0, $1, $2, $4, $3);
1940
+ const $25 = Main_n__4779_1924_partitionedArgs($0, $1, $2, $4, $3);
1701
1941
  return PullRequest_requestReviewers($0, $2, $21.a2, $25.a2, $25.a1, $4, $22, $24);
1702
1942
  }, $5, $6);
1703
1943
  }
1704
1944
 
1705
- function User_Reflect_case__casex20blockx20inx20reflectOnSelf_1419($0, $1, $2, $3, $4, $5, $6) {
1706
- const $8 = Prelude_Interfaces_mapHom({a1: d => b => c => a => $c => $d => $e => ({a1: $c($e.a1), a2: $d($e.a2)}), a2: b => c => a => $17 => $18 => ({a1: $17($18.a1), a2: $18.a2}), a3: a => d => b => $1f => $20 => ({a1: $20.a1, a2: $1f($20.a2)})}, $27 => Data_List_headx27(Data_List_sort({a1: {a1: $2e => $2f => Data_Date_x3dx3d_Eq_Date($2e, $2f), a2: $34 => $35 => Data_Date_x2fx3d_Eq_Date($34, $35)}, a2: $3a => $3b => Data_Date_compare_Ord_Date($3a, $3b), a3: $40 => $41 => Data_Date_x3c_Ord_Date($40, $41), a4: $46 => $47 => Data_Date_x3e_Ord_Date($46, $47), a5: $4c => $4d => Data_Date_x3cx3d_Ord_Date($4c, $4d), a6: $52 => $53 => Data_Date_x3ex3d_Ord_Date($52, $53), a7: $58 => $59 => Data_Date_max_Ord_Date($58, $59), a8: $5e => $5f => Data_Date_min_Ord_Date($5e, $5f)}, Prelude_Types_map_Functor_List($66 => $66.a2, $27))), {a1: $4, a2: $6.a1});
1707
- return Prelude_IO_putStrLn(csegen_74(), Util_renderString($0, User_Reflect_print(Prelude_Types_String_length(User_Reflect_intro()), Prelude_Types_List_length($6.a1), Prelude_Types_List_length($6.a2), Prelude_Types_List_length($5), Prelude_Types_List_length($4), $8.a1, $8.a2)));
1945
+ function User_Reflect_case__casex20blockx20inx20reflectOnSelf_1618($0, $1, $2, $3, $4, $5, $6, $7, $8, $9) {
1946
+ 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_106(), $2a))), {a1: $7, a2: $9.a1});
1947
+ return Prelude_IO_putStrLn(csegen_20(), Util_renderString($0, User_Reflect_print(Prelude_Types_String_length(User_Reflect_intro()), Prelude_Types_List_length($4), Prelude_Types_List_length($9.a1), Prelude_Types_List_length($9.a2), Prelude_Types_List_length($8), Prelude_Types_List_length($7), $5, $b.a1, $b.a2)));
1708
1948
  }
1709
1949
 
1710
- function User_Reflect_n__4102_911_ital($0, $1) {
1950
+ function User_Reflect_n__4178_925_ital($0, $1) {
1711
1951
  return Text_PrettyPrint_Prettyprinter_Doc_annotate(Text_PrettyPrint_Prettyprinter_Render_Terminal_italic(), Text_PrettyPrint_Prettyprinter_Doc_pretty_Pretty_String($1));
1712
1952
  }
1713
1953
 
@@ -1715,55 +1955,68 @@ const User_Reflect_rightTitle = __lazy(function () {
1715
1955
  return 'authored';
1716
1956
  });
1717
1957
 
1958
+ const User_Reflect_reviewDetailsCount = __lazy(function () {
1959
+ return 25n;
1960
+ });
1961
+
1718
1962
  function User_replicatex27($0, $1, $2) {
1719
1963
  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)));
1720
1964
  }
1721
1965
 
1722
1966
  function User_Reflect_reflectOnSelf($0, $1, $2, $3) {
1723
- const $13 = history => $14 => $15 => {
1724
- const $21 = myLogin => {
1725
- const $22 = Prelude_Interfaces_mapHom({a1: d => b => c => a => $26 => $27 => $28 => ({a1: $26($28.a1), a2: $27($28.a2)}), a2: b => c => a => $31 => $32 => ({a1: $31($32.a1), a2: $32.a2}), a3: a => d => b => $39 => $3a => ({a1: $3a.a1, a2: $39($3a.a2)})}, $41 => Data_List_filter($44 => Prelude_EqOrd_x3dx3d_Eq_String($44.a3, myLogin), $41), history);
1726
- return User_Reflect_case__casex20blockx20inx20reflectOnSelf_1419($0, $1, history, myLogin, $22.a1, $22.a2, Prelude_Interfaces_mapHom({a1: d => b => c => a => $56 => $57 => $58 => ({a1: $56($58.a1), a2: $57($58.a2)}), a2: b => c => a => $61 => $62 => ({a1: $61($62.a1), a2: $62.a2}), a3: a => d => b => $69 => $6a => ({a1: $6a.a1, a2: $69($6a.a2)})}, $71 => Data_List_filter($74 => Prelude_Interfaces_any(csegen_114(), $79 => Prelude_EqOrd_x3dx3d_Eq_String($79, myLogin), $74.a5), $71), history));
1967
+ const $b = prs => $c => $d => {
1968
+ const $18 = myLogin => $19 => $1a => {
1969
+ const $38 = reviews => {
1970
+ const $39 = Prelude_Types_map_Functor_Maybe(csegen_109(), Data_List_headx27(Data_List_sortBy($42 => $43 => Prelude_Basics_on(csegen_91(), csegen_109(), $42, $43), reviews)));
1971
+ const $4c = PullRequest_tuple(prs);
1972
+ const $4f = Prelude_Interfaces_mapHom({a1: d => b => c => a => $53 => $54 => $55 => ({a1: $53($55.a1), a2: $54($55.a2)}), a2: b => c => a => $5e => $5f => ({a1: $5e($5f.a1), a2: $5f.a2}), a3: a => d => b => $66 => $67 => ({a1: $67.a1, a2: $66($67.a2)})}, $6e => Data_List_filter($71 => Prelude_EqOrd_x3dx3d_Eq_String($71.a3, myLogin), $6e), $4c);
1973
+ return User_Reflect_case__casex20blockx20inx20reflectOnSelf_1618($0, $1, prs, myLogin, reviews, $39, $4c, $4f.a1, $4f.a2, Prelude_Interfaces_mapHom({a1: d => b => c => a => $86 => $87 => $88 => ({a1: $86($88.a1), a2: $87($88.a2)}), a2: b => c => a => $91 => $92 => ({a1: $91($92.a1), a2: $92.a2}), a3: a => d => b => $99 => $9a => ({a1: $9a.a1, a2: $99($9a.a2)})}, $a1 => Data_List_filter($a4 => Prelude_Interfaces_any(csegen_126(), $a9 => Prelude_EqOrd_x3dx3d_Eq_String($a9, myLogin), $a4.a5), $a1), $4c));
1974
+ };
1975
+ return Data_Promise_x3ex3ex3d_Monad_Promise(PullRequest_reviewsForUser($0, $1, myLogin, Data_List_take(Data_Fin_cast_Cast_x28Finx20x24nx29_Nat(User_Reflect_reviewDetailsCount()), Prelude_Types_List_reverse(Data_List_sortBy($2c => $2d => Prelude_Basics_on(csegen_91(), csegen_106(), $2c, $2d), PullRequest_combined(prs))))), $38, $19, $1a);
1727
1976
  };
1728
- return Data_Promise_x3ex3ex3d_Monad_Promise(Prelude_Interfaces_x3cx24x3e(csegen_41(), $1c => $1c.a1, FFI_GitHub_getSelf($1)), $21, $14, $15);
1977
+ return Data_Promise_x3ex3ex3d_Monad_Promise(Prelude_Interfaces_x3cx24x3e(csegen_64(), csegen_90(), FFI_GitHub_getSelf($1)), $18, $c, $d);
1729
1978
  };
1730
- return Data_Promise_x3ex3ex3d_Monad_Promise(Prelude_Interfaces_x3cx24x3e(csegen_41(), $a => PullRequest_tuple($a), PullRequest_listPartitionedPRs($0, $1, csegen_80())), $13, $2, $3);
1979
+ return Data_Promise_x3ex3ex3d_Monad_Promise(PullRequest_listPartitionedPRs($0, $1, User_Reflect_prCount()), $b, $2, $3);
1731
1980
  }
1732
1981
 
1733
- function User_Reflect_print($0, $1, $2, $3, $4, $5, $6) {
1734
- return Text_PrettyPrint_Prettyprinter_Doc_vsep({a1: Text_PrettyPrint_Prettyprinter_Doc_emptyDoc(), a2: {a1: User_Reflect_graph($0, $1, $2, $3, $4), a2: {a1: Text_PrettyPrint_Prettyprinter_Doc_emptyDoc(), a2: {a1: User_Reflect_details($0, $1, $2, $3, $4, $5, $6), a2: {a1: Text_PrettyPrint_Prettyprinter_Doc_emptyDoc(), a2: {h: 0}}}}}});
1982
+ function User_Reflect_print($0, $1, $2, $3, $4, $5, $6, $7, $8) {
1983
+ 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}}}}}});
1735
1984
  }
1736
1985
 
1986
+ const User_Reflect_prCount = __lazy(function () {
1987
+ return csegen_85();
1988
+ });
1989
+
1737
1990
  const User_Reflect_leftTitle = __lazy(function () {
1738
1991
  return 'requested';
1739
1992
  });
1740
1993
 
1741
1994
  const User_Reflect_intro = __lazy(function () {
1742
- return 'Your current pull request summary (out of the past 100 PRs):';
1995
+ return Prelude_Types_String_x2bx2b('Your current pull request summary (out of the past ', Prelude_Types_String_x2bx2b(Data_Fin_show_Show_x28Finx20x24nx29(User_Reflect_prCount()), ' PRs):'));
1743
1996
  });
1744
1997
 
1745
1998
  function User_Reflect_header($0) {
1746
- return Text_PrettyPrint_Prettyprinter_Doc_indent(Prelude_Cast_cast_Cast_Nat_Int($0), Text_PrettyPrint_Prettyprinter_Doc_hsep({a1: User_Reflect_n__4102_911_ital($0, User_Reflect_leftTitle()), a2: {a1: Text_PrettyPrint_Prettyprinter_Doc_pretty_Pretty_String(' '), a2: {a1: User_Reflect_n__4102_911_ital($0, User_Reflect_rightTitle()), a2: {h: 0}}}}));
1999
+ return Text_PrettyPrint_Prettyprinter_Doc_indent(Prelude_Cast_cast_Cast_Nat_Int($0), Text_PrettyPrint_Prettyprinter_Doc_hsep({a1: User_Reflect_n__4178_925_ital($0, User_Reflect_leftTitle()), a2: {a1: Text_PrettyPrint_Prettyprinter_Doc_pretty_Pretty_String(' '), a2: {a1: User_Reflect_n__4178_925_ital($0, User_Reflect_rightTitle()), a2: {h: 0}}}}));
1747
2000
  }
1748
2001
 
1749
- function User_Reflect_graph($0, $1, $2, $3, $4) {
1750
- const $5 = Prelude_Types_x2b_Num_Nat($1, $2);
1751
- const $9 = Prelude_Types_x2b_Num_Nat($4, $3);
1752
- const $d = Prelude_Types_foldr_Foldable_List(csegen_115(), Prelude_Types_String_length(User_Reflect_leftTitle()), {a1: $5, a2: {a1: $9, a2: {h: 0}}});
1753
- const $1a = Prelude_Types_foldr_Foldable_List(csegen_115(), Prelude_Types_String_length(User_Reflect_rightTitle()), {a1: $5, a2: {a1: $9, a2: {h: 0}}});
1754
- const $27 = Prelude_Types_x2b_Num_Nat(Prelude_Types_x2b_Num_Nat($d, $1a), 3n);
1755
- const $2e = (Prelude_Num_x2f_Fractional_Double(Prelude_Cast_cast_Cast_Nat_Double($0), 2.0)-Prelude_Num_x2f_Fractional_Double(Prelude_Cast_cast_Cast_Nat_Double($27), 2.0));
1756
- const $3b = Prelude_Types_x2b_Num_Nat(Prelude_Cast_cast_Cast_Double_Nat($2e), Prelude_Types_prim__integerToNat(($d-Prelude_Types_String_length(User_Reflect_leftTitle()))));
1757
- const $48 = Prelude_Types_x2b_Num_Nat(Prelude_Cast_cast_Cast_Double_Nat($2e), Prelude_Types_prim__integerToNat(($d-$5)));
1758
- return Text_PrettyPrint_Prettyprinter_Doc_vsep({a1: User_Reflect_header($3b), a2: {a1: User_Reflect_chart($0, $1, $2, $3, $4, $48), a2: {h: 0}}});
2002
+ function User_Reflect_graph($0, $1, $2, $3, $4, $5) {
2003
+ const $6 = Prelude_Types_x2b_Num_Nat($2, $3);
2004
+ const $a = Prelude_Types_x2b_Num_Nat($5, $4);
2005
+ const $e = Prelude_Types_foldr_Foldable_List(csegen_129(), Prelude_Types_String_length(User_Reflect_leftTitle()), {a1: Prelude_Types_x2b_Num_Nat($6, $1), a2: {a1: $a, a2: {h: 0}}});
2006
+ const $1e = Prelude_Types_foldr_Foldable_List(csegen_129(), Prelude_Types_String_length(User_Reflect_rightTitle()), {a1: $6, a2: {a1: $a, a2: {h: 0}}});
2007
+ const $2b = Prelude_Types_x2b_Num_Nat(Prelude_Types_x2b_Num_Nat($e, $1e), 3n);
2008
+ const $32 = (Prelude_Num_x2f_Fractional_Double(Prelude_Cast_cast_Cast_Nat_Double($0), 2.0)-Prelude_Num_x2f_Fractional_Double(Prelude_Cast_cast_Cast_Nat_Double($2b), 2.0));
2009
+ const $3f = Prelude_Types_x2b_Num_Nat(Prelude_Cast_cast_Cast_Double_Nat($32), Prelude_Types_prim__integerToNat(($e-Prelude_Types_String_length(User_Reflect_leftTitle()))));
2010
+ const $4c = Prelude_Types_x2b_Num_Nat(Prelude_Cast_cast_Cast_Double_Nat($32), Prelude_Types_prim__integerToNat(($e-Prelude_Types_x2b_Num_Nat($6, $1))));
2011
+ return Text_PrettyPrint_Prettyprinter_Doc_vsep({a1: User_Reflect_header($3f), a2: {a1: User_Reflect_chart($0, $1, $2, $3, $4, $5, $4c), a2: {h: 0}}});
1759
2012
  }
1760
2013
 
1761
- function User_Reflect_details($0, $1, $2, $3, $4, $5, $6) {
1762
- 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_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_hsep({a1: Text_PrettyPrint_Prettyprinter_Doc_pretty_Pretty_String('open:'), a2: {a1: Text_PrettyPrint_Prettyprinter_Doc_pretty_Pretty_Nat($1), a2: {h: 0}}})}, a2: {a1: Prelude_Interfaces_x3cx26x3e(csegen_118(), $6, csegen_119()), a2: {a1: {a1: Text_PrettyPrint_Prettyprinter_Doc_hsep({a1: Text_PrettyPrint_Prettyprinter_Doc_pretty_Pretty_String('closed:'), a2: {a1: Text_PrettyPrint_Prettyprinter_Doc_pretty_Pretty_Nat($2), a2: {h: 0}}})}, a2: {h: 0}}}}))), a2: {a1: Text_PrettyPrint_Prettyprinter_Doc_emptyDoc(), a2: {a1: 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_pretty_Pretty_Nat($4), a2: {h: 0}}})}, a2: {a1: Prelude_Interfaces_x3cx26x3e(csegen_118(), $5, csegen_119()), a2: {a1: {a1: Text_PrettyPrint_Prettyprinter_Doc_hsep({a1: Text_PrettyPrint_Prettyprinter_Doc_pretty_Pretty_String('closed:'), a2: {a1: Text_PrettyPrint_Prettyprinter_Doc_pretty_Pretty_Nat($3), a2: {h: 0}}})}, a2: {h: 0}}}}))), a2: {h: 0}}}}}}}});
2014
+ function User_Reflect_details($0, $1, $2, $3, $4, $5, $6, $7, $8) {
2015
+ 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_133(), $8, csegen_134()), 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_133(), $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_133(), $7, csegen_134()), 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_Types_String_x2bx2b('*review count (not PR count) of most recent ', Prelude_Types_String_x2bx2b(Data_Fin_show_Show_x28Finx20x24nx29(User_Reflect_reviewDetailsCount()), ' PRs.')))), a2: {h: 0}}}}}}}}}});
1763
2016
  }
1764
2017
 
1765
- function User_Reflect_chart($0, $1, $2, $3, $4, $5) {
1766
- return Text_PrettyPrint_Prettyprinter_Doc_indent(Prelude_Cast_cast_Cast_Nat_Int($5), Text_PrettyPrint_Prettyprinter_Doc_x3cx2bx2bx3e(Text_PrettyPrint_Prettyprinter_Doc_x3cx2bx3e_Semigroup_x28Docx20x24annx29(User_replicatex27(2, $2, '\u{b7}'), User_replicatex27(3, $1, '<')), Text_PrettyPrint_Prettyprinter_Doc_x3cx2bx2bx3e(Text_PrettyPrint_Prettyprinter_Doc_pretty_Pretty_String('|'), Text_PrettyPrint_Prettyprinter_Doc_x3cx2bx3e_Semigroup_x28Docx20x24annx29(User_replicatex27(3, $4, '>'), User_replicatex27(2, $3, '\u{b7}')))));
2018
+ function User_Reflect_chart($0, $1, $2, $3, $4, $5, $6) {
2019
+ 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}')))));
1767
2020
  }
1768
2021
 
1769
2022
  const Util_n__3784_711_startOver = __lazy(function () {
@@ -1893,8 +2146,8 @@ function Text_PrettyPrint_Prettyprinter_Render_Terminal_n__3239_766_push($0, $1,
1893
2146
  function Text_PrettyPrint_Prettyprinter_Render_Terminal_n__3239_768_pop($0, $1, $2) {
1894
2147
  const $9 = $a => {
1895
2148
  switch($a.h) {
1896
- case undefined: return Prelude_Interfaces_x3ex3e(csegen_136(), $10 => ($1.value=$a.a2), () => $16 => Control_Monad_ST_pure_Applicative_x28STx20x24sx29({a1: $a.a1}, $16));
1897
- case 0: return csegen_137();
2149
+ case undefined: return Prelude_Interfaces_x3ex3e(csegen_159(), $10 => ($1.value=$a.a2), () => $16 => Control_Monad_ST_pure_Applicative_x28STx20x24sx29({a1: $a.a1}, $16));
2150
+ case 0: return csegen_160();
1898
2151
  }
1899
2152
  };
1900
2153
  return Control_Monad_ST_x3ex3ex3d_Monad_x28STx20x24sx29($5 => ($1.value), $9, $2);
@@ -1913,16 +2166,16 @@ function Text_PrettyPrint_Prettyprinter_Render_Terminal_n__3239_767_peek($0, $1,
1913
2166
  function Text_PrettyPrint_Prettyprinter_Render_Terminal_n__3239_770_go($0, $1, $2, $3) {
1914
2167
  switch($3.h) {
1915
2168
  case 0: return $5 => Control_Monad_ST_pure_Applicative_x28STx20x24sx29(0, $5);
1916
- case 1: return Prelude_Interfaces_x3ex3e(csegen_136(), $d => Text_PrettyPrint_Prettyprinter_Render_Terminal_n__3239_769_writeOutput($0, $2, Data_String_singleton($3.a1), $d), () => Text_PrettyPrint_Prettyprinter_Render_Terminal_n__3239_770_go($0, $1, $2, $3.a2()));
1917
- case 2: return Prelude_Interfaces_x3ex3e(csegen_136(), $20 => Text_PrettyPrint_Prettyprinter_Render_Terminal_n__3239_769_writeOutput($0, $2, $3.a2, $20), () => Text_PrettyPrint_Prettyprinter_Render_Terminal_n__3239_770_go($0, $1, $2, $3.a3()));
1918
- case 3: return Prelude_Interfaces_x3ex3e(csegen_136(), $31 => Text_PrettyPrint_Prettyprinter_Render_Terminal_n__3239_769_writeOutput($0, $2, Prelude_Types_x3cx2bx3e_Semigroup_String(Data_String_singleton('\n'), Text_PrettyPrint_Prettyprinter_Doc_textSpaces($3.a1)), $31), () => Text_PrettyPrint_Prettyprinter_Render_Terminal_n__3239_770_go($0, $1, $2, $3.a2));
2169
+ case 1: return Prelude_Interfaces_x3ex3e(csegen_159(), $d => Text_PrettyPrint_Prettyprinter_Render_Terminal_n__3239_769_writeOutput($0, $2, Data_String_singleton($3.a1), $d), () => Text_PrettyPrint_Prettyprinter_Render_Terminal_n__3239_770_go($0, $1, $2, $3.a2()));
2170
+ case 2: return Prelude_Interfaces_x3ex3e(csegen_159(), $20 => Text_PrettyPrint_Prettyprinter_Render_Terminal_n__3239_769_writeOutput($0, $2, $3.a2, $20), () => Text_PrettyPrint_Prettyprinter_Render_Terminal_n__3239_770_go($0, $1, $2, $3.a3()));
2171
+ case 3: return Prelude_Interfaces_x3ex3e(csegen_159(), $31 => Text_PrettyPrint_Prettyprinter_Render_Terminal_n__3239_769_writeOutput($0, $2, Prelude_Types_x3cx2bx3e_Semigroup_String(Data_String_singleton('\n'), Text_PrettyPrint_Prettyprinter_Doc_textSpaces($3.a1)), $31), () => Text_PrettyPrint_Prettyprinter_Render_Terminal_n__3239_770_go($0, $1, $2, $3.a2));
1919
2172
  case 4: {
1920
2173
  return $44 => {
1921
2174
  const $4c = $4d => {
1922
2175
  switch($4d.h) {
1923
2176
  case undefined: {
1924
2177
  const $4f = Prelude_Types_x3cx2bx3e_Semigroup_x28Listx20x24ax29($3.a1, $4d.a1);
1925
- return Prelude_Interfaces_x3ex3e(csegen_136(), $57 => Text_PrettyPrint_Prettyprinter_Render_Terminal_n__3239_766_push($0, $1, $4f, $57), () => Prelude_Interfaces_x3ex3e(csegen_136(), $62 => Text_PrettyPrint_Prettyprinter_Render_Terminal_n__3239_769_writeOutput($0, $2, Control_ANSI_SGR_escapeSGR($4f), $62), () => Text_PrettyPrint_Prettyprinter_Render_Terminal_n__3239_770_go($0, $1, $2, $3.a2)));
2178
+ return Prelude_Interfaces_x3ex3e(csegen_159(), $57 => Text_PrettyPrint_Prettyprinter_Render_Terminal_n__3239_766_push($0, $1, $4f, $57), () => Prelude_Interfaces_x3ex3e(csegen_159(), $62 => Text_PrettyPrint_Prettyprinter_Render_Terminal_n__3239_769_writeOutput($0, $2, Control_ANSI_SGR_escapeSGR($4f), $62), () => Text_PrettyPrint_Prettyprinter_Render_Terminal_n__3239_770_go($0, $1, $2, $3.a2)));
1926
2179
  }
1927
2180
  case 0: return $70 => ($1.value={h: 0});
1928
2181
  }
@@ -1935,7 +2188,7 @@ function Text_PrettyPrint_Prettyprinter_Render_Terminal_n__3239_770_go($0, $1, $
1935
2188
  const $7e = _ => $7f => {
1936
2189
  const $87 = $88 => {
1937
2190
  switch($88.h) {
1938
- case undefined: return Prelude_Interfaces_x3ex3e(csegen_136(), $8e => Text_PrettyPrint_Prettyprinter_Render_Terminal_n__3239_769_writeOutput($0, $2, Control_ANSI_SGR_escapeSGR({a1: {h: 0}, a2: $88.a1}), $8e), () => Text_PrettyPrint_Prettyprinter_Render_Terminal_n__3239_770_go($0, $1, $2, $3.a1));
2191
+ case undefined: return Prelude_Interfaces_x3ex3e(csegen_159(), $8e => Text_PrettyPrint_Prettyprinter_Render_Terminal_n__3239_769_writeOutput($0, $2, Control_ANSI_SGR_escapeSGR({a1: {h: 0}, a2: $88.a1}), $8e), () => Text_PrettyPrint_Prettyprinter_Render_Terminal_n__3239_770_go($0, $1, $2, $3.a1));
1939
2192
  case 0: return $9e => ($1.value={h: 0});
1940
2193
  }
1941
2194
  };
@@ -1952,17 +2205,17 @@ const Text_PrettyPrint_Prettyprinter_Render_Terminal_underline = __lazy(function
1952
2205
  });
1953
2206
 
1954
2207
  function Text_PrettyPrint_Prettyprinter_Render_Terminal_renderString($0) {
1955
- 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: Prelude_Types_neutral_Monoid_x28Listx20x24ax29(), a2: {h: 0}}, $a), styleStackRef => $12 => Control_Monad_ST_x3ex3ex3d_Monad_x28STx20x24sx29($15 => Control_Monad_ST_newSTRef(Prelude_Types_neutral_Monoid_String(), $15), outputRef => Prelude_Interfaces_x3ex3e(csegen_136(), Text_PrettyPrint_Prettyprinter_Render_Terminal_n__3239_770_go($0, styleStackRef, outputRef, $0), () => $25 => {
2208
+ 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: Prelude_Types_neutral_Monoid_x28Listx20x24ax29(), a2: {h: 0}}, $a), styleStackRef => $12 => Control_Monad_ST_x3ex3ex3d_Monad_x28STx20x24sx29($15 => Control_Monad_ST_newSTRef(Prelude_Types_neutral_Monoid_String(), $15), outputRef => Prelude_Interfaces_x3ex3e(csegen_159(), Text_PrettyPrint_Prettyprinter_Render_Terminal_n__3239_770_go($0, styleStackRef, outputRef, $0), () => $25 => {
1956
2209
  const $2c = $2d => {
1957
2210
  switch($2d.h) {
1958
- case 0: return csegen_137();
2211
+ case 0: return csegen_160();
1959
2212
  case undefined: {
1960
2213
  switch($2d.a2.h) {
1961
2214
  case 0: return Prelude_Interfaces_x3cx24x3e($33 => $34 => $35 => $36 => Control_Monad_ST_map_Functor_x28STx20x24sx29($35, $36), $3b => ({a1: $3b}), $3e => (outputRef.value));
1962
- default: return csegen_137();
2215
+ default: return csegen_160();
1963
2216
  }
1964
2217
  }
1965
- default: return csegen_137();
2218
+ default: return csegen_160();
1966
2219
  }
1967
2220
  };
1968
2221
  return Control_Monad_ST_x3ex3ex3d_Monad_x28STx20x24sx29($28 => (styleStackRef.value), $2c, $25);
@@ -1970,7 +2223,7 @@ function Text_PrettyPrint_Prettyprinter_Render_Terminal_renderString($0) {
1970
2223
  }
1971
2224
 
1972
2225
  function Text_PrettyPrint_Prettyprinter_Render_Terminal_renderIO($0) {
1973
- return Prelude_IO_putStrLn(csegen_20(), Text_PrettyPrint_Prettyprinter_Render_Terminal_renderString($0));
2226
+ return Prelude_IO_putStrLn(csegen_43(), Text_PrettyPrint_Prettyprinter_Render_Terminal_renderString($0));
1974
2227
  }
1975
2228
 
1976
2229
  function Text_PrettyPrint_Prettyprinter_Render_Terminal_putDoc($0) {
@@ -2226,10 +2479,10 @@ function Text_PrettyPrint_Prettyprinter_Doc_encloseSep($0, $1, $2, $3) {
2226
2479
  case undefined: {
2227
2480
  switch($3.a2.h) {
2228
2481
  case 0: return Text_PrettyPrint_Prettyprinter_Doc_x3cx2bx3e_Semigroup_x28Docx20x24annx29(Text_PrettyPrint_Prettyprinter_Doc_x3cx2bx3e_Semigroup_x28Docx20x24annx29($0, $3.a1), $1);
2229
- default: return Text_PrettyPrint_Prettyprinter_Doc_x3cx2bx3e_Semigroup_x28Docx20x24annx29(Text_PrettyPrint_Prettyprinter_Doc_cat(Data_List_zipWith_Zippable_List(csegen_150(), {a1: $0, a2: Data_List_replicate(Prelude_Types_prim__integerToNat((Prelude_Types_List_length($3)-1n)), $2)}, $3)), $1);
2482
+ default: return Text_PrettyPrint_Prettyprinter_Doc_x3cx2bx3e_Semigroup_x28Docx20x24annx29(Text_PrettyPrint_Prettyprinter_Doc_cat(Data_List_zipWith_Zippable_List(csegen_173(), {a1: $0, a2: Data_List_replicate(Prelude_Types_prim__integerToNat((Prelude_Types_List_length($3)-1n)), $2)}, $3)), $1);
2230
2483
  }
2231
2484
  }
2232
- default: return Text_PrettyPrint_Prettyprinter_Doc_x3cx2bx3e_Semigroup_x28Docx20x24annx29(Text_PrettyPrint_Prettyprinter_Doc_cat(Data_List_zipWith_Zippable_List(csegen_150(), {a1: $0, a2: Data_List_replicate(Prelude_Types_prim__integerToNat((Prelude_Types_List_length($3)-1n)), $2)}, $3)), $1);
2485
+ default: return Text_PrettyPrint_Prettyprinter_Doc_x3cx2bx3e_Semigroup_x28Docx20x24annx29(Text_PrettyPrint_Prettyprinter_Doc_cat(Data_List_zipWith_Zippable_List(csegen_173(), {a1: $0, a2: Data_List_replicate(Prelude_Types_prim__integerToNat((Prelude_Types_List_length($3)-1n)), $2)}, $3)), $1);
2233
2486
  }
2234
2487
  }
2235
2488
 
@@ -2326,6 +2579,60 @@ function Data_String_Extra_drop($0, $1) {
2326
2579
  return Prelude_Types_substr($0, Prelude_Types_String_length($1), $1);
2327
2580
  }
2328
2581
 
2582
+ function Data_String_with__parsePositivex2cparsePosTrimmed_2962($0, $1, $2, $3, $4) {
2583
+ switch($3) {
2584
+ case '': {
2585
+ switch($4.h) {
2586
+ case 0: return {h: 0};
2587
+ default: {
2588
+ switch($4.a1) {
2589
+ case '+': return Prelude_Types_map_Functor_Maybe($b => $1.a3($b), Data_String_parseNumWithoutSign(Prelude_Types_fastUnpack($4.a2), 0n));
2590
+ default: {
2591
+ let $15;
2592
+ switch(Prelude_EqOrd_x3ex3d_Ord_Char($4.a1, '0')) {
2593
+ case 1: {
2594
+ $15 = Prelude_EqOrd_x3cx3d_Ord_Char($4.a1, '9');
2595
+ break;
2596
+ }
2597
+ case 0: {
2598
+ $15 = 0;
2599
+ break;
2600
+ }
2601
+ }
2602
+ switch($15) {
2603
+ case 1: return Prelude_Types_map_Functor_Maybe($1f => $1.a3($1f), Data_String_parseNumWithoutSign(Prelude_Types_fastUnpack($4.a2), Prelude_Cast_cast_Cast_Int_Integer(_sub32s(Prelude_Types_ord($4.a1), Prelude_Types_ord('0')))));
2604
+ case 0: return {h: 0};
2605
+ }
2606
+ }
2607
+ }
2608
+ }
2609
+ }
2610
+ }
2611
+ default: {
2612
+ switch($4.a1) {
2613
+ case '+': return Prelude_Types_map_Functor_Maybe($35 => $1.a3($35), Data_String_parseNumWithoutSign(Prelude_Types_fastUnpack($4.a2), 0n));
2614
+ default: {
2615
+ let $3f;
2616
+ switch(Prelude_EqOrd_x3ex3d_Ord_Char($4.a1, '0')) {
2617
+ case 1: {
2618
+ $3f = Prelude_EqOrd_x3cx3d_Ord_Char($4.a1, '9');
2619
+ break;
2620
+ }
2621
+ case 0: {
2622
+ $3f = 0;
2623
+ break;
2624
+ }
2625
+ }
2626
+ switch($3f) {
2627
+ case 1: return Prelude_Types_map_Functor_Maybe($49 => $1.a3($49), Data_String_parseNumWithoutSign(Prelude_Types_fastUnpack($4.a2), Prelude_Cast_cast_Cast_Int_Integer(_sub32s(Prelude_Types_ord($4.a1), Prelude_Types_ord('0')))));
2628
+ case 0: return {h: 0};
2629
+ }
2630
+ }
2631
+ }
2632
+ }
2633
+ }
2634
+ }
2635
+
2329
2636
  function Data_String_with__asList_2736($0, $1) {
2330
2637
  switch($0) {
2331
2638
  case '': {
@@ -2345,6 +2652,10 @@ function Data_String_n__2942_2537_unlinesx27($0) {
2345
2652
  }
2346
2653
  }
2347
2654
 
2655
+ function Data_String_n__3344_2960_parsePosTrimmed($0, $1, $2) {
2656
+ return Data_String_with__parsePositivex2cparsePosTrimmed_2962(undefined, $0, $2, $2, Data_String_strM($2));
2657
+ }
2658
+
2348
2659
  function Data_String_trim($0) {
2349
2660
  return Data_String_ltrim(Prelude_Types_reverse(Data_String_ltrim(Prelude_Types_reverse($0))));
2350
2661
  }
@@ -2373,6 +2684,10 @@ function Data_String_replicate($0, $1) {
2373
2684
  return Prelude_Types_fastPack(Data_List_replicate($0, $1));
2374
2685
  }
2375
2686
 
2687
+ function Data_String_parsePositive($0, $1) {
2688
+ return Data_String_n__3344_2960_parsePosTrimmed($0, $1, Data_String_trim($1));
2689
+ }
2690
+
2376
2691
  function Data_String_ltrim($0) {
2377
2692
  return Data_String_with__ltrim_2752($0, Data_String_asList($0));
2378
2693
  }
@@ -2386,11 +2701,11 @@ function Data_String_lines($0) {
2386
2701
  }
2387
2702
 
2388
2703
  function Data_String_isSuffixOf($0, $1) {
2389
- return Data_List_isSuffixOf(csegen_154(), Prelude_Types_fastUnpack($0), Prelude_Types_fastUnpack($1));
2704
+ return Data_List_isSuffixOf(csegen_177(), Prelude_Types_fastUnpack($0), Prelude_Types_fastUnpack($1));
2390
2705
  }
2391
2706
 
2392
2707
  function Data_String_isPrefixOf($0, $1) {
2393
- return Data_List_isPrefixOf(csegen_154(), Prelude_Types_fastUnpack($0), Prelude_Types_fastUnpack($1));
2708
+ return Data_List_isPrefixOf(csegen_177(), Prelude_Types_fastUnpack($0), Prelude_Types_fastUnpack($1));
2394
2709
  }
2395
2710
 
2396
2711
  function Data_String_indent($0, $1) {
@@ -2478,7 +2793,7 @@ function Prelude_Types_n__6057_4912_hexChars($0) {
2478
2793
  function Prelude_Types_traverse_Traversable_List($0, $1, $2) {
2479
2794
  switch($2.h) {
2480
2795
  case 0: return $0.a2(undefined)({h: 0});
2481
- case undefined: return $0.a3(undefined)(undefined)($0.a3(undefined)(undefined)($0.a2(undefined)(csegen_170()))($1($2.a1)))(Prelude_Types_traverse_Traversable_List($0, $1, $2.a2));
2796
+ case undefined: return $0.a3(undefined)(undefined)($0.a3(undefined)(undefined)($0.a2(undefined)(csegen_193()))($1($2.a1)))(Prelude_Types_traverse_Traversable_List($0, $1, $2.a2));
2482
2797
  }
2483
2798
  }
2484
2799
 
@@ -2490,7 +2805,7 @@ function Prelude_Types_traverse_Traversable_x28Eitherx20x24ex29($0, $1, $2) {
2490
2805
  }
2491
2806
 
2492
2807
  function Prelude_Types_toList_Foldable_Maybe($0) {
2493
- return Prelude_Types_foldr_Foldable_Maybe(csegen_170(), {h: 0}, $0);
2808
+ return Prelude_Types_foldr_Foldable_Maybe(csegen_193(), {h: 0}, $0);
2494
2809
  }
2495
2810
 
2496
2811
  function Prelude_Types_toList_Foldable_List($0) {
@@ -2498,7 +2813,7 @@ function Prelude_Types_toList_Foldable_List($0) {
2498
2813
  }
2499
2814
 
2500
2815
  function Prelude_Types_toList_Foldable_x28Eitherx20x24ex29($0) {
2501
- return Prelude_Types_foldr_Foldable_x28Eitherx20x24ex29(csegen_170(), {h: 0}, $0);
2816
+ return Prelude_Types_foldr_Foldable_x28Eitherx20x24ex29(csegen_193(), {h: 0}, $0);
2502
2817
  }
2503
2818
 
2504
2819
  function Prelude_Types_rangeFromTo_Range_x24a($0, $1, $2) {
@@ -2668,7 +2983,7 @@ function Prelude_Types_x3ex3ex3d_Monad_Maybe($0, $1) {
2668
2983
  }
2669
2984
 
2670
2985
  function Prelude_Types_x3ex3ex3d_Monad_List($0, $1) {
2671
- return Prelude_Interfaces_concatMap({a1: csegen_114(), a2: {a1: $8 => $9 => Prelude_Types_x3cx2bx3e_Semigroup_x28Listx20x24ax29($8, $9), a2: Prelude_Types_neutral_Monoid_x28Listx20x24ax29()}}, $1, $0);
2986
+ return Prelude_Interfaces_concatMap({a1: csegen_126(), a2: {a1: $8 => $9 => Prelude_Types_x3cx2bx3e_Semigroup_x28Listx20x24ax29($8, $9), a2: Prelude_Types_neutral_Monoid_x28Listx20x24ax29()}}, $1, $0);
2672
2987
  }
2673
2988
 
2674
2989
  function Prelude_Types_x3ex3ex3d_Monad_x28Eitherx20x24ex29($0, $1) {
@@ -2874,7 +3189,7 @@ function Prelude_Types_isLower($0) {
2874
3189
  }
2875
3190
 
2876
3191
  function Prelude_Types_isHexDigit($0) {
2877
- return Prelude_Types_elem(csegen_154(), Prelude_Types_toUpper($0), Prelude_Types_n__6057_4912_hexChars($0));
3192
+ return Prelude_Types_elem(csegen_177(), Prelude_Types_toUpper($0), Prelude_Types_n__6057_4912_hexChars($0));
2878
3193
  }
2879
3194
 
2880
3195
  function Prelude_Types_isDigit($0) {
@@ -3660,6 +3975,10 @@ function Prelude_Cast_cast_Cast_Nat_Bits16($0) {
3660
3975
  return Prelude_Cast_cast_Cast_Integer_Bits16($0);
3661
3976
  }
3662
3977
 
3978
+ function Prelude_Cast_cast_Cast_Integer_Nat($0) {
3979
+ return Prelude_Types_prim__integerToNat($0);
3980
+ }
3981
+
3663
3982
  function Prelude_Cast_cast_Cast_Integer_Int16($0) {
3664
3983
  return Number(_truncBigInt16($0));
3665
3984
  }
@@ -3763,6 +4082,19 @@ function Data_List_takeWhile($0, $1) {
3763
4082
  }
3764
4083
  }
3765
4084
 
4085
+ function Data_List_take($0, $1) {
4086
+ switch($0) {
4087
+ case 0n: return {h: 0};
4088
+ default: {
4089
+ const $3 = ($0-1n);
4090
+ switch($1.h) {
4091
+ case undefined: return {a1: $1.a1, a2: Data_List_take($3, $1.a2)};
4092
+ default: return {h: 0};
4093
+ }
4094
+ }
4095
+ }
4096
+ }
4097
+
3766
4098
  function Data_List_split($0, $1) {
3767
4099
  const $2 = Data_List_break($0, $1);
3768
4100
  switch($2.a2.h) {
@@ -3976,6 +4308,14 @@ function Data_Fin_with__fromInteger_1226($0, $1, $2, $3) {
3976
4308
  return $2.a1;
3977
4309
  }
3978
4310
 
4311
+ function Data_Fin_show_Show_x28Finx20x24nx29($0) {
4312
+ return Prelude_Show_show_Show_Integer(Data_Fin_finToInteger($0));
4313
+ }
4314
+
4315
+ function Data_Fin_cast_Cast_x28Finx20x24nx29_Nat($0) {
4316
+ return Data_Fin_finToNat($0);
4317
+ }
4318
+
3979
4319
  function Data_Fin_natToFin($0, $1) {
3980
4320
  switch($0) {
3981
4321
  case 0n: {
@@ -3990,7 +4330,7 @@ function Data_Fin_natToFin($0, $1) {
3990
4330
  case 0n: return {h: 0};
3991
4331
  default: {
3992
4332
  const $9 = ($1-1n);
3993
- return Prelude_Interfaces_x3cx24x3e(csegen_118(), $10 => (1n+$10), Data_Fin_natToFin($5, $9));
4333
+ return Prelude_Interfaces_x3cx24x3e(csegen_133(), $10 => (1n+$10), Data_Fin_natToFin($5, $9));
3994
4334
  }
3995
4335
  }
3996
4336
  }
@@ -4023,6 +4363,16 @@ function Data_Fin_finToNat($0) {
4023
4363
  }
4024
4364
  }
4025
4365
 
4366
+ function Data_Fin_finToInteger($0) {
4367
+ switch($0) {
4368
+ case 0n: return 0n;
4369
+ default: {
4370
+ const $2 = ($0-1n);
4371
+ return (1n+Data_Fin_finToInteger($2));
4372
+ }
4373
+ }
4374
+ }
4375
+
4026
4376
  function Data_Maybe_isJust($0) {
4027
4377
  switch($0.h) {
4028
4378
  case 0: return 0;
@@ -4042,7 +4392,7 @@ function Control_Monad_ST_pure_Applicative_x28STx20x24sx29($0, $1) {
4042
4392
  }
4043
4393
 
4044
4394
  function Control_Monad_ST_map_Functor_x28STx20x24sx29($0, $1) {
4045
- return Prelude_Interfaces_x3cx24x3e(csegen_25(), $0, $1);
4395
+ return Prelude_Interfaces_x3cx24x3e(csegen_48(), $0, $1);
4046
4396
  }
4047
4397
 
4048
4398
  function Control_Monad_ST_join_Monad_x28STx20x24sx29($0, $1) {
@@ -4065,7 +4415,7 @@ function Control_Monad_ST_runST($0) {
4065
4415
  }
4066
4416
 
4067
4417
  function Control_Monad_ST_newSTRef($0, $1) {
4068
- const $2 = Data_IORef_newIORef(csegen_20(), $0)($1);
4418
+ const $2 = Data_IORef_newIORef(csegen_43(), $0)($1);
4069
4419
  return $2;
4070
4420
  }
4071
4421
 
@@ -4131,7 +4481,7 @@ function Control_ANSI_SGR_cast_Cast_Blink_String($0) {
4131
4481
  }
4132
4482
 
4133
4483
  function Control_ANSI_SGR_escapeSGR($0) {
4134
- return Prelude_Types_String_x2bx2b('\u{1b}[', Prelude_Types_String_x2bx2b(Prelude_Interfaces_concat(csegen_223(), Data_List_intersperse(';', Prelude_Interfaces_x3cx24x3e(csegen_62(), $11 => Control_ANSI_SGR_n__2894_855_toCode($0, $11), $0))), 'm'));
4484
+ return Prelude_Types_String_x2bx2b('\u{1b}[', Prelude_Types_String_x2bx2b(Prelude_Interfaces_concat(csegen_246(), Data_List_intersperse(';', Prelude_Interfaces_x3cx24x3e(csegen_76(), $11 => Control_ANSI_SGR_n__2894_855_toCode($0, $11), $0))), 'm'));
4135
4485
  }
4136
4486
 
4137
4487
  function Data_Fuel_limit($0) {
@@ -4169,7 +4519,7 @@ function Data_Config_n__3796_4852_parseConfigJson($0, $1) {
4169
4519
  }
4170
4520
 
4171
4521
  function Data_Config_show_Show_Config($0) {
4172
- return Data_String_fastUnlines({a1: Prelude_Types_String_x2bx2b(' updatedAt: ', Prelude_Show_show_Show_Bits32($0.a1)), a2: {a1: Prelude_Types_String_x2bx2b(' org: ', Prelude_Show_show_Show_String($0.a2)), a2: {a1: Prelude_Types_String_x2bx2b(' repo: ', Prelude_Show_show_Show_String($0.a3)), a2: {a1: Prelude_Types_String_x2bx2b(' mainBranch: ', Prelude_Show_show_Show_String($0.a4)), a2: {a1: Prelude_Types_String_x2bx2b(' assignTeams: ', Prelude_Show_show_Show_Bool($0.a5)), a2: {a1: Prelude_Types_String_x2bx2b('commentOnAssign: ', Prelude_Show_show_Show_Bool($0.a6)), a2: {a1: Prelude_Types_String_x2bx2b(' teamSlugs: ', Prelude_Show_show_Show_x28Listx20x24ax29(csegen_65(), $0.a7)), a2: {a1: Prelude_Types_String_x2bx2b(' orgMembers: ', Prelude_Show_show_Show_x28Listx20x24ax29(csegen_65(), $0.a8)), a2: {h: 0}}}}}}}}});
4522
+ return Data_String_fastUnlines({a1: Prelude_Types_String_x2bx2b(' updatedAt: ', Prelude_Show_show_Show_Bits32($0.a1)), a2: {a1: Prelude_Types_String_x2bx2b(' org: ', Prelude_Show_show_Show_String($0.a2)), a2: {a1: Prelude_Types_String_x2bx2b(' repo: ', Prelude_Show_show_Show_String($0.a3)), a2: {a1: Prelude_Types_String_x2bx2b(' mainBranch: ', Prelude_Show_show_Show_String($0.a4)), a2: {a1: Prelude_Types_String_x2bx2b(' assignTeams: ', Prelude_Show_show_Show_Bool($0.a5)), a2: {a1: Prelude_Types_String_x2bx2b('commentOnAssign: ', Prelude_Show_show_Show_Bool($0.a6)), a2: {a1: Prelude_Types_String_x2bx2b(' teamSlugs: ', Prelude_Show_show_Show_x28Listx20x24ax29(csegen_79(), $0.a7)), a2: {a1: Prelude_Types_String_x2bx2b(' orgMembers: ', Prelude_Show_show_Show_x28Listx20x24ax29(csegen_79(), $0.a8)), a2: {h: 0}}}}}}}}});
4173
4523
  }
4174
4524
 
4175
4525
  function Data_Config_showPrec_Show_Config($0, $1) {
@@ -4203,12 +4553,12 @@ function Data_Config_parseConfig($0, $1) {
4203
4553
  }
4204
4554
  };
4205
4555
  const $4 = {a1: $5, a2: a => $d => ({h: 1, a1: $d}), a3: $f};
4206
- const $3 = {a1: $4, a2: csegen_233(), a3: csegen_234()};
4207
- return Prelude_Interfaces_x3ex3dx3e($3, csegen_235(), $20 => Data_Config_n__3796_4852_parseConfigJson($0, $20), $1);
4556
+ const $3 = {a1: $4, a2: csegen_256(), a3: csegen_257()};
4557
+ return Prelude_Interfaces_x3ex3dx3e($3, csegen_258(), $20 => Data_Config_n__3796_4852_parseConfigJson($0, $20), $1);
4208
4558
  }
4209
4559
 
4210
4560
  function Data_Config_json($0) {
4211
- return {h: 5, a1: {a1: {a1: 'mainBranch', a2: {h: 3, a1: $0.a4}}, a2: {a1: {a1: 'assignTeams', a2: {h: 1, a1: $0.a5}}, a2: {a1: {a1: 'commentOnAssign', a2: {h: 1, a1: $0.a6}}, a2: {a1: {a1: 'org', a2: {h: 3, a1: $0.a2}}, a2: {a1: {a1: 'orgMembers', a2: {h: 4, a1: Prelude_Interfaces_x3cx24x3e(csegen_62(), $1f => ({h: 3, a1: $1f}), Data_List_sort(csegen_49(), $0.a8))}}, a2: {a1: {a1: 'repo', a2: {h: 3, a1: $0.a3}}, a2: {a1: {a1: 'teamSlugs', a2: {h: 4, a1: Prelude_Interfaces_x3cx24x3e(csegen_62(), $34 => ({h: 3, a1: $34}), Data_List_sort(csegen_49(), $0.a7))}}, a2: {a1: {a1: 'updatedAt', a2: {h: 2, a1: Prelude_Cast_cast_Cast_Bits32_Double($0.a1)}}, a2: {h: 0}}}}}}}}}};
4561
+ return {h: 5, a1: {a1: {a1: 'mainBranch', a2: {h: 3, a1: $0.a4}}, a2: {a1: {a1: 'assignTeams', a2: {h: 1, a1: $0.a5}}, a2: {a1: {a1: 'commentOnAssign', a2: {h: 1, a1: $0.a6}}, a2: {a1: {a1: 'org', a2: {h: 3, a1: $0.a2}}, a2: {a1: {a1: 'orgMembers', a2: {h: 4, a1: Prelude_Interfaces_x3cx24x3e(csegen_76(), $1f => ({h: 3, a1: $1f}), Data_List_sort(csegen_72(), $0.a8))}}, a2: {a1: {a1: 'repo', a2: {h: 3, a1: $0.a3}}, a2: {a1: {a1: 'teamSlugs', a2: {h: 4, a1: Prelude_Interfaces_x3cx24x3e(csegen_76(), $34 => ({h: 3, a1: $34}), Data_List_sort(csegen_72(), $0.a7))}}, a2: {a1: {a1: 'updatedAt', a2: {h: 2, a1: Prelude_Cast_cast_Cast_Bits32_Double($0.a1)}}, a2: {h: 0}}}}}}}}}};
4212
4562
  }
4213
4563
 
4214
4564
  const Data_Config_filename = __lazy(function () {
@@ -4216,7 +4566,7 @@ const Data_Config_filename = __lazy(function () {
4216
4566
  });
4217
4567
 
4218
4568
  function Language_JSON_Accessors_n__3327_4395_lookupx27($0, $1, $2, $3, $4) {
4219
- return Data_Either_maybeToEither(() => Prelude_Types_String_x2bx2b('Missing required key: ', Prelude_Types_String_x2bx2b($3, '.')), Data_List_lookup(csegen_34(), $3, $4));
4569
+ return Data_Either_maybeToEither(() => Prelude_Types_String_x2bx2b('Missing required key: ', Prelude_Types_String_x2bx2b($3, '.')), Data_List_lookup(csegen_57(), $3, $4));
4220
4570
  }
4221
4571
 
4222
4572
  function Language_JSON_Accessors_string($0) {
@@ -4332,17 +4682,17 @@ function Text_Bounded_mergeBounds($0, $1) {
4332
4682
  switch($1.h) {
4333
4683
  case undefined: {
4334
4684
  switch($1.a2) {
4335
- case 1: return Prelude_Interfaces_x3cx24x3e(csegen_238(), $e => $1.a1, $0);
4685
+ case 1: return Prelude_Interfaces_x3cx24x3e(csegen_261(), $e => $1.a1, $0);
4336
4686
  default: {
4337
- const $10 = Prelude_EqOrd_min_Ord_x28x7cx28x28Builtinx2ePairx20x24ax29x20x24bx29x2cx28x28Builtinx2eMkPairx20x24ax29x20x24bx29x7cx29(csegen_249(), csegen_249(), Text_Bounded_start($0), Text_Bounded_start($1));
4338
- const $1c = Prelude_EqOrd_max_Ord_x28x7cx28x28Builtinx2ePairx20x24ax29x20x24bx29x2cx28x28Builtinx2eMkPairx20x24ax29x20x24bx29x7cx29(csegen_249(), csegen_249(), Text_Bounded_end($0), Text_Bounded_end($1));
4687
+ const $10 = Prelude_EqOrd_min_Ord_x28x7cx28x28Builtinx2ePairx20x24ax29x20x24bx29x2cx28x28Builtinx2eMkPairx20x24ax29x20x24bx29x7cx29(csegen_272(), csegen_272(), Text_Bounded_start($0), Text_Bounded_start($1));
4688
+ const $1c = Prelude_EqOrd_max_Ord_x28x7cx28x28Builtinx2ePairx20x24ax29x20x24bx29x2cx28x28Builtinx2eMkPairx20x24ax29x20x24bx29x7cx29(csegen_272(), csegen_272(), Text_Bounded_end($0), Text_Bounded_end($1));
4339
4689
  return {a1: $1.a1, a2: 0, a3: {a1: $10.a1, a2: $10.a2, a3: $1c.a1, a4: $1c.a2}};
4340
4690
  }
4341
4691
  }
4342
4692
  }
4343
4693
  default: {
4344
- const $30 = Prelude_EqOrd_min_Ord_x28x7cx28x28Builtinx2ePairx20x24ax29x20x24bx29x2cx28x28Builtinx2eMkPairx20x24ax29x20x24bx29x7cx29(csegen_249(), csegen_249(), Text_Bounded_start($0), Text_Bounded_start($1));
4345
- const $3c = Prelude_EqOrd_max_Ord_x28x7cx28x28Builtinx2ePairx20x24ax29x20x24bx29x2cx28x28Builtinx2eMkPairx20x24ax29x20x24bx29x7cx29(csegen_249(), csegen_249(), Text_Bounded_end($0), Text_Bounded_end($1));
4694
+ const $30 = Prelude_EqOrd_min_Ord_x28x7cx28x28Builtinx2ePairx20x24ax29x20x24bx29x2cx28x28Builtinx2eMkPairx20x24ax29x20x24bx29x7cx29(csegen_272(), csegen_272(), Text_Bounded_start($0), Text_Bounded_start($1));
4695
+ const $3c = Prelude_EqOrd_max_Ord_x28x7cx28x28Builtinx2ePairx20x24ax29x20x24bx29x2cx28x28Builtinx2eMkPairx20x24ax29x20x24bx29x7cx29(csegen_272(), csegen_272(), Text_Bounded_end($0), Text_Bounded_end($1));
4346
4696
  return {a1: $1.a1, a2: 0, a3: {a1: $30.a1, a2: $30.a2, a3: $3c.a1, a4: $3c.a2}};
4347
4697
  }
4348
4698
  }
@@ -4353,17 +4703,17 @@ function Text_Bounded_mergeBounds($0, $1) {
4353
4703
  switch($1.h) {
4354
4704
  case undefined: {
4355
4705
  switch($1.a2) {
4356
- case 1: return Prelude_Interfaces_x3cx24x3e(csegen_238(), $56 => $1.a1, $0);
4706
+ case 1: return Prelude_Interfaces_x3cx24x3e(csegen_261(), $56 => $1.a1, $0);
4357
4707
  default: {
4358
- const $58 = Prelude_EqOrd_min_Ord_x28x7cx28x28Builtinx2ePairx20x24ax29x20x24bx29x2cx28x28Builtinx2eMkPairx20x24ax29x20x24bx29x7cx29(csegen_249(), csegen_249(), Text_Bounded_start($0), Text_Bounded_start($1));
4359
- const $64 = Prelude_EqOrd_max_Ord_x28x7cx28x28Builtinx2ePairx20x24ax29x20x24bx29x2cx28x28Builtinx2eMkPairx20x24ax29x20x24bx29x7cx29(csegen_249(), csegen_249(), Text_Bounded_end($0), Text_Bounded_end($1));
4708
+ const $58 = Prelude_EqOrd_min_Ord_x28x7cx28x28Builtinx2ePairx20x24ax29x20x24bx29x2cx28x28Builtinx2eMkPairx20x24ax29x20x24bx29x7cx29(csegen_272(), csegen_272(), Text_Bounded_start($0), Text_Bounded_start($1));
4709
+ const $64 = Prelude_EqOrd_max_Ord_x28x7cx28x28Builtinx2ePairx20x24ax29x20x24bx29x2cx28x28Builtinx2eMkPairx20x24ax29x20x24bx29x7cx29(csegen_272(), csegen_272(), Text_Bounded_end($0), Text_Bounded_end($1));
4360
4710
  return {a1: $1.a1, a2: 0, a3: {a1: $58.a1, a2: $58.a2, a3: $64.a1, a4: $64.a2}};
4361
4711
  }
4362
4712
  }
4363
4713
  }
4364
4714
  default: {
4365
- const $78 = Prelude_EqOrd_min_Ord_x28x7cx28x28Builtinx2ePairx20x24ax29x20x24bx29x2cx28x28Builtinx2eMkPairx20x24ax29x20x24bx29x7cx29(csegen_249(), csegen_249(), Text_Bounded_start($0), Text_Bounded_start($1));
4366
- const $84 = Prelude_EqOrd_max_Ord_x28x7cx28x28Builtinx2ePairx20x24ax29x20x24bx29x2cx28x28Builtinx2eMkPairx20x24ax29x20x24bx29x7cx29(csegen_249(), csegen_249(), Text_Bounded_end($0), Text_Bounded_end($1));
4715
+ const $78 = Prelude_EqOrd_min_Ord_x28x7cx28x28Builtinx2ePairx20x24ax29x20x24bx29x2cx28x28Builtinx2eMkPairx20x24ax29x20x24bx29x7cx29(csegen_272(), csegen_272(), Text_Bounded_start($0), Text_Bounded_start($1));
4716
+ const $84 = Prelude_EqOrd_max_Ord_x28x7cx28x28Builtinx2ePairx20x24ax29x20x24bx29x2cx28x28Builtinx2eMkPairx20x24ax29x20x24bx29x7cx29(csegen_272(), csegen_272(), Text_Bounded_end($0), Text_Bounded_end($1));
4367
4717
  return {a1: $1.a1, a2: 0, a3: {a1: $78.a1, a2: $78.a2, a3: $84.a1, a4: $84.a2}};
4368
4718
  }
4369
4719
  }
@@ -4504,7 +4854,7 @@ function Language_JSON_Data_stringify($0) {
4504
4854
  }
4505
4855
 
4506
4856
  function Language_JSON_Data_showString($0) {
4507
- return Prelude_Types_String_x2bx2b('\"', Prelude_Types_String_x2bx2b(Prelude_Interfaces_concatMap(csegen_223(), $a => Language_JSON_Data_showChar($a), Prelude_Types_fastUnpack($0)), '\"'));
4857
+ return Prelude_Types_String_x2bx2b('\"', Prelude_Types_String_x2bx2b(Prelude_Interfaces_concatMap(csegen_246(), $a => Language_JSON_Data_showChar($a), Prelude_Types_fastUnpack($0)), '\"'));
4508
4858
  }
4509
4859
 
4510
4860
  function Language_JSON_Data_showChar($0) {
@@ -4604,7 +4954,7 @@ const Language_JSON_Parser_string = __lazy(function () {
4604
4954
  });
4605
4955
 
4606
4956
  const Language_JSON_Parser_rawString = __lazy(function () {
4607
- return {h: 8, a1: 0, a2: Text_Parser_match(csegen_263(), {h: 2}), a3: () => mstr => {
4957
+ return {h: 8, a1: 0, a2: Text_Parser_match(csegen_286(), {h: 2}), a3: () => mstr => {
4608
4958
  switch(mstr.h) {
4609
4959
  case undefined: return {h: 0, a1: mstr.a1};
4610
4960
  case 0: return {h: 4, a1: {h: 0}, a2: 0, a3: 'invalid string'};
@@ -4613,7 +4963,7 @@ const Language_JSON_Parser_rawString = __lazy(function () {
4613
4963
  });
4614
4964
 
4615
4965
  function Language_JSON_Parser_punct($0) {
4616
- return Text_Parser_match(csegen_263(), {h: 4, a1: $0});
4966
+ return Text_Parser_match(csegen_286(), {h: 4, a1: $0});
4617
4967
  }
4618
4968
 
4619
4969
  function Language_JSON_Parser_parseJSON($0) {
@@ -4646,11 +4996,11 @@ const Language_JSON_Parser_object = __lazy(function () {
4646
4996
  });
4647
4997
 
4648
4998
  const Language_JSON_Parser_number = __lazy(function () {
4649
- return Text_Parser_Core_map_Functor_x28x28x28Grammarx20x24statex29x20x24tokx29x20x24cx29(1, $3 => ({h: 2, a1: $3}), Text_Parser_match(csegen_263(), {h: 1}));
4999
+ return Text_Parser_Core_map_Functor_x28x28x28Grammarx20x24statex29x20x24tokx29x20x24cx29(1, $3 => ({h: 2, a1: $3}), Text_Parser_match(csegen_286(), {h: 1}));
4650
5000
  });
4651
5001
 
4652
5002
  const Language_JSON_Parser_null = __lazy(function () {
4653
- return Text_Parser_Core_map_Functor_x28x28x28Grammarx20x24statex29x20x24tokx29x20x24cx29(1, $3 => ({h: 0}), Text_Parser_match(csegen_263(), {h: 3}));
5003
+ return Text_Parser_Core_map_Functor_x28x28x28Grammarx20x24statex29x20x24tokx29x20x24cx29(1, $3 => ({h: 0}), Text_Parser_match(csegen_286(), {h: 3}));
4654
5004
  });
4655
5005
 
4656
5006
  const Language_JSON_Parser_json = __lazy(function () {
@@ -4658,7 +5008,7 @@ const Language_JSON_Parser_json = __lazy(function () {
4658
5008
  });
4659
5009
 
4660
5010
  const Language_JSON_Parser_boolean = __lazy(function () {
4661
- return Text_Parser_Core_map_Functor_x28x28x28Grammarx20x24statex29x20x24tokx29x20x24cx29(1, $3 => ({h: 1, a1: $3}), Text_Parser_match(csegen_263(), {h: 0}));
5011
+ return Text_Parser_Core_map_Functor_x28x28x28Grammarx20x24statex29x20x24tokx29x20x24cx29(1, $3 => ({h: 1, a1: $3}), Text_Parser_match(csegen_286(), {h: 0}));
4662
5012
  });
4663
5013
 
4664
5014
  const Language_JSON_Parser_array = __lazy(function () {
@@ -4842,7 +5192,7 @@ function Text_Lexer_opt($0) {
4842
5192
  }
4843
5193
 
4844
5194
  function Text_Lexer_oneOf($0) {
4845
- return Text_Lexer_Core_pred(x => Prelude_Types_elem(csegen_154(), x, Prelude_Types_fastUnpack($0)));
5195
+ return Text_Lexer_Core_pred(x => Prelude_Types_elem(csegen_177(), x, Prelude_Types_fastUnpack($0)));
4846
5196
  }
4847
5197
 
4848
5198
  function Text_Lexer_non($0) {
@@ -5119,11 +5469,11 @@ function Language_JSON_String_Tokens_charValue($0) {
5119
5469
  }
5120
5470
 
5121
5471
  const Language_JSON_String_Parser_stringChar = __lazy(function () {
5122
- return {h: 12, a1: 1, a2: 1, a3: Text_Parser_match(csegen_303(), 1), a4: () => ({h: 12, a1: 1, a2: 1, a3: Text_Parser_match(csegen_303(), 2), a4: () => Text_Parser_match(csegen_303(), 3)})};
5472
+ return {h: 12, a1: 1, a2: 1, a3: Text_Parser_match(csegen_326(), 1), a4: () => ({h: 12, a1: 1, a2: 1, a3: Text_Parser_match(csegen_326(), 2), a4: () => Text_Parser_match(csegen_326(), 3)})};
5123
5473
  });
5124
5474
 
5125
5475
  const Language_JSON_String_Parser_quotedString = __lazy(function () {
5126
- const $0 = Text_Parser_match(csegen_303(), 0);
5476
+ const $0 = Text_Parser_match(csegen_326(), 0);
5127
5477
  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)}})};
5128
5478
  });
5129
5479
 
@@ -5191,7 +5541,7 @@ function Text_Parser_between($0, $1, $2, $3) {
5191
5541
  function Text_Parser_Core_case__doParse_3762($0, $1, $2, $3, $4, $5) {
5192
5542
  switch($5.h) {
5193
5543
  case 0: return {h: 0, a1: $5.a1, a2: $5.a2, a3: $5.a3};
5194
- case 1: return {h: 1, a1: $5.a1, a2: $5.a2, a3: Prelude_Interfaces_x3cx24x3e(csegen_319(), $11 => $5.a3, $5.a3), a4: $5.a4};
5544
+ case 1: return {h: 1, a1: $5.a1, a2: $5.a2, a3: Prelude_Interfaces_x3cx24x3e(csegen_342(), $11 => $5.a3, $5.a3), a4: $5.a4};
5195
5545
  }
5196
5546
  }
5197
5547
 
@@ -5609,18 +5959,18 @@ function Text_Parser_Core_mergeWith($0, $1) {
5609
5959
  function Text_Parser_Core_doParse($0, $1, $2, $3, $4) {
5610
5960
  switch($3.h) {
5611
5961
  case 0: return {h: 1, a1: $1, a2: $2, a3: Text_Bounded_irrelevantBounds($3.a1), a4: $4};
5612
- case 4: return {h: 0, a1: $2, a2: $3.a2, a3: {a1: {a1: $3.a3, a2: Prelude_Types_x3cx7cx3e_Alternative_Maybe($3.a1, () => Prelude_Interfaces_x3cx24x3e(csegen_118(), $19 => $19.a3, Data_List_headx27($4)))}, a2: {h: 0}}};
5962
+ case 4: return {h: 0, a1: $2, a2: $3.a2, a3: {a1: {a1: $3.a3, a2: Prelude_Types_x3cx7cx3e_Alternative_Maybe($3.a1, () => Prelude_Interfaces_x3cx24x3e(csegen_133(), $19 => $19.a3, Data_List_headx27($4)))}, a2: {h: 0}}};
5613
5963
  case 5: return Text_Parser_Core_case__doParse_2543($0, $1, $3.a1, $4, $2, Text_Parser_Core_doParse($0, $1, $2, $3.a1, $4));
5614
5964
  case 6: return {h: 1, a1: $1, a2: 1, a3: Text_Bounded_irrelevantBounds(0), a4: $4};
5615
5965
  case 7: return Text_Parser_Core_case__doParse_2638($0, $1, $3.a1, $4, $2, Text_Parser_Core_doParse($0, $1, $2, $3.a1, $4));
5616
5966
  case 1: {
5617
5967
  switch($4.h) {
5618
- case 0: return {h: 0, a1: $2, a2: 0, a3: csegen_322()};
5968
+ case 0: return {h: 0, a1: $2, a2: 0, a3: csegen_345()};
5619
5969
  case undefined: {
5620
5970
  const $44 = $3.a2($4.a1.a1);
5621
5971
  switch($44.h) {
5622
5972
  case 0: return {h: 0, a1: $2, a2: 0, a3: {a1: {a1: $3.a1, a2: {a1: $4.a1.a3}}, a2: {h: 0}}};
5623
- case undefined: return {h: 1, a1: $1, a2: $2, a3: Prelude_Interfaces_x3cx24x3e(csegen_319(), $58 => $44.a1, $4.a1), a4: $4.a2};
5973
+ case undefined: return {h: 1, a1: $1, a2: $2, a3: Prelude_Interfaces_x3cx24x3e(csegen_342(), $58 => $44.a1, $4.a1), a4: $4.a2};
5624
5974
  }
5625
5975
  }
5626
5976
  }
@@ -5633,7 +5983,7 @@ function Text_Parser_Core_doParse($0, $1, $2, $3, $4) {
5633
5983
  }
5634
5984
  case 2: {
5635
5985
  switch($4.h) {
5636
- case 0: return {h: 0, a1: $2, a2: 0, a3: csegen_322()};
5986
+ case 0: return {h: 0, a1: $2, a2: 0, a3: csegen_345()};
5637
5987
  case undefined: {
5638
5988
  switch($3.a2($4.a1.a1)) {
5639
5989
  case 1: return {h: 1, a1: $1, a2: $2, a3: Text_Bounded_removeIrrelevance($4.a1), a4: {a1: $4.a1, a2: $4.a2}};
@@ -5662,7 +6012,7 @@ function Text_Parser_Core_doParse($0, $1, $2, $3, $4) {
5662
6012
  case 13: return Text_Parser_Core_case__doParse_3762($0, $1, $3.a1, $4, $2, Text_Parser_Core_doParse($0, $1, $2, $3.a1, $4));
5663
6013
  case 14: {
5664
6014
  switch($4.h) {
5665
- case 0: return {h: 0, a1: $2, a2: 0, a3: csegen_322()};
6015
+ case 0: return {h: 0, a1: $2, a2: 0, a3: csegen_345()};
5666
6016
  case undefined: return {h: 1, a1: $1, a2: $2, a3: Text_Bounded_irrelevantBounds($4.a1.a3), a4: {a1: $4.a1, a2: $4.a2}};
5667
6017
  }
5668
6018
  }
@@ -5752,43 +6102,43 @@ const Language_JSON_Lexer_jsonTokenMap = __lazy(function () {
5752
6102
  return Text_Lexer_toTokenMap({a1: {a1: Text_Lexer_spaces(), a2: {h: 5}}, a2: {a1: {a1: Text_Lexer_is(','), a2: {h: 4, a1: {h: 0}}}, a2: {a1: {a1: Text_Lexer_is(':'), a2: {h: 4, a1: {h: 1}}}, a2: {a1: {a1: Text_Lexer_is('['), a2: {h: 4, a1: {h: 2, a1: 0}}}, a2: {a1: {a1: Text_Lexer_is(']'), a2: {h: 4, a1: {h: 2, a1: 1}}}, a2: {a1: {a1: Text_Lexer_is('{'), a2: {h: 4, a1: {h: 3, a1: 0}}}, a2: {a1: {a1: Text_Lexer_is('}'), a2: {h: 4, a1: {h: 3, a1: 1}}}, a2: {a1: {a1: Text_Lexer_exact('null'), a2: {h: 3}}, a2: {a1: {a1: Text_Lexer_Core_x3cx7cx3e(Text_Lexer_exact(Language_JSON_Tokens_strTrue()), Text_Lexer_exact(Language_JSON_Tokens_strFalse())), a2: {h: 0}}, a2: {a1: {a1: Language_JSON_Lexer_numberLit(), a2: {h: 1}}, a2: {a1: {a1: Language_JSON_String_permissiveStringLit(), a2: {h: 2}}, a2: {h: 0}}}}}}}}}}}});
5753
6103
  });
5754
6104
 
5755
- function PullRequest_case__identifyOrCreatePRx2ccreatePR_1514($0, $1, $2, $3, $4, $5) {
6105
+ function PullRequest_case__identifyOrCreatePRx2ccreatePR_1614($0, $1, $2, $3, $4, $5) {
5756
6106
  switch($5.h) {
5757
6107
  case undefined: return Prelude_Types_strCons($5.a1, $5.a2);
5758
6108
  default: return $3.a4;
5759
6109
  }
5760
6110
  }
5761
6111
 
5762
- function PullRequest_n__4077_1018_userNotice($0, $1, $2, $3, $4, $5, $6) {
6112
+ function PullRequest_n__4382_1117_userNotice($0, $1, $2, $3, $4, $5, $6) {
5763
6113
  switch($6.h) {
5764
6114
  case 0: {
5765
6115
  switch($2.h) {
5766
6116
  case 0: return 'no users';
5767
- default: return PullRequest_n__4077_1017_csv($0, $1, $2, $3, $4, $5, $2);
6117
+ default: return PullRequest_n__4382_1116_csv($0, $1, $2, $3, $4, $5, $2);
5768
6118
  }
5769
6119
  }
5770
- case undefined: return PullRequest_n__4077_1017_csv($0, $1, $2, $3, $4, $5, {a1: $6.a1, a2: $2});
6120
+ case undefined: return PullRequest_n__4382_1116_csv($0, $1, $2, $3, $4, $5, {a1: $6.a1, a2: $2});
5771
6121
  }
5772
6122
  }
5773
6123
 
5774
- function PullRequest_n__4077_1019_teamNotice($0, $1, $2, $3, $4, $5, $6) {
6124
+ function PullRequest_n__4382_1118_teamNotice($0, $1, $2, $3, $4, $5, $6) {
5775
6125
  switch($6.h) {
5776
6126
  case 0: return '';
5777
6127
  case undefined: {
5778
6128
  switch($6.a2.h) {
5779
- case 0: return Prelude_Types_String_x2bx2b(' and team ', PullRequest_n__4077_1017_csv($0, $1, $2, $3, $4, $5, {a1: $6.a1, a2: {h: 0}}));
5780
- default: return Prelude_Types_String_x2bx2b(' and teams ', PullRequest_n__4077_1017_csv($0, $1, $2, $3, $4, $5, $6));
6129
+ case 0: return Prelude_Types_String_x2bx2b(' and team ', PullRequest_n__4382_1116_csv($0, $1, $2, $3, $4, $5, {a1: $6.a1, a2: {h: 0}}));
6130
+ default: return Prelude_Types_String_x2bx2b(' and teams ', PullRequest_n__4382_1116_csv($0, $1, $2, $3, $4, $5, $6));
5781
6131
  }
5782
6132
  }
5783
- default: return Prelude_Types_String_x2bx2b(' and teams ', PullRequest_n__4077_1017_csv($0, $1, $2, $3, $4, $5, $6));
6133
+ default: return Prelude_Types_String_x2bx2b(' and teams ', PullRequest_n__4382_1116_csv($0, $1, $2, $3, $4, $5, $6));
5784
6134
  }
5785
6135
  }
5786
6136
 
5787
- function PullRequest_n__4077_1020_prComment($0, $1, $2, $3, $4, $5, $6) {
6137
+ function PullRequest_n__4382_1119_prComment($0, $1, $2, $3, $4, $5, $6) {
5788
6138
  return Prelude_Types_String_x2bx2b(':musical_note: Harmoniously assigned @', Prelude_Types_String_x2bx2b($6, ' to review this PR.'));
5789
6139
  }
5790
6140
 
5791
- function PullRequest_n__4077_1016_maybeDecorate($0, $1, $2, $3, $4, $5, $6) {
6141
+ function PullRequest_n__4382_1115_maybeDecorate($0, $1, $2, $3, $4, $5, $6) {
5792
6142
  const $7 = $8 => {
5793
6143
  switch(Data_Config_rf__colors($5)) {
5794
6144
  case 1: return $8;
@@ -5798,19 +6148,23 @@ function PullRequest_n__4077_1016_maybeDecorate($0, $1, $2, $3, $4, $5, $6) {
5798
6148
  return Text_PrettyPrint_Prettyprinter_Render_Terminal_renderString(Text_PrettyPrint_Prettyprinter_Doc_layoutPretty(Text_PrettyPrint_Prettyprinter_Doc_defaultLayoutOptions(), $7($6)));
5799
6149
  }
5800
6150
 
5801
- function PullRequest_n__4077_1017_csv($0, $1, $2, $3, $4, $5, $6) {
5802
- return PullRequest_n__4077_1016_maybeDecorate($0, $1, $2, $3, $4, $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($1a => Text_PrettyPrint_Prettyprinter_Doc_annotate(Text_PrettyPrint_Prettyprinter_Render_Terminal_color(2), Text_PrettyPrint_Prettyprinter_Doc_pretty_Pretty_String($1a)), $6)));
6151
+ function PullRequest_n__4298_1020_forkedReviews($0, $1, $2, $3, $4) {
6152
+ return FFI_Concurrency_fork(csegen_20(), Prelude_Types_String_x2bx2b('reviews --json ', Prelude_Show_show_Show_Integer($4.a1)));
6153
+ }
6154
+
6155
+ function PullRequest_n__4382_1116_csv($0, $1, $2, $3, $4, $5, $6) {
6156
+ return PullRequest_n__4382_1115_maybeDecorate($0, $1, $2, $3, $4, $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($1a => Text_PrettyPrint_Prettyprinter_Doc_annotate(Text_PrettyPrint_Prettyprinter_Render_Terminal_color(2), Text_PrettyPrint_Prettyprinter_Doc_pretty_Pretty_String($1a)), $6)));
5803
6157
  }
5804
6158
 
5805
- function PullRequest_n__4544_1453_createPR($0, $1, $2, $3) {
5806
- return Prelude_Interfaces_x3ex3e(csegen_71(), $8 => $9 => Data_Promise_x3ex3ex3d_Monad_Promise($c => $d => FFI_Git_remoteTrackingBranch($0, $c, $d), $13 => Prelude_Interfaces_when(csegen_59(), Prelude_Types_x3dx3d_Eq_x28Maybex20x24ax29(csegen_34(), $13, {h: 0}), () => Prelude_Interfaces_x3ex3e(csegen_71(), Prelude_IO_putStrLn(csegen_74(), 'Creating a new remote branch...'), () => $27 => $28 => FFI_Git_pushNewBranch($0, 'origin', $2, $27, $28))), $8, $9), () => Prelude_Interfaces_x3ex3e(csegen_71(), Prelude_IO_putStrLn(csegen_74(), Prelude_Types_String_x2bx2b('Creating a new PR for the current branch (', Prelude_Types_String_x2bx2b($2, ').'))), () => Prelude_Interfaces_x3ex3e(csegen_71(), Prelude_IO_putStrLn(csegen_74(), Prelude_Types_String_x2bx2b('What branch are you merging into (ENTER for default: ', Prelude_Types_String_x2bx2b($3.a4, ')?'))), () => $51 => $52 => {
6159
+ function PullRequest_n__4850_1553_createPR($0, $1, $2, $3) {
6160
+ return Prelude_Interfaces_x3ex3e(csegen_17(), $8 => $9 => Data_Promise_x3ex3ex3d_Monad_Promise($c => $d => FFI_Git_remoteTrackingBranch($0, $c, $d), $13 => Prelude_Interfaces_when(csegen_11(), Prelude_Types_x3dx3d_Eq_x28Maybex20x24ax29(csegen_57(), $13, {h: 0}), () => Prelude_Interfaces_x3ex3e(csegen_17(), Prelude_IO_putStrLn(csegen_20(), 'Creating a new remote branch...'), () => $27 => $28 => FFI_Git_pushNewBranch($0, 'origin', $2, $27, $28))), $8, $9), () => Prelude_Interfaces_x3ex3e(csegen_17(), Prelude_IO_putStrLn(csegen_20(), Prelude_Types_String_x2bx2b('Creating a new PR for the current branch (', Prelude_Types_String_x2bx2b($2, ').'))), () => Prelude_Interfaces_x3ex3e(csegen_17(), Prelude_IO_putStrLn(csegen_20(), Prelude_Types_String_x2bx2b('What branch are you merging into (ENTER for default: ', Prelude_Types_String_x2bx2b($3.a4, ')?'))), () => $51 => $52 => {
5807
6161
  const $5e = baseBranchInput => {
5808
- const $5f = PullRequest_case__identifyOrCreatePRx2ccreatePR_1514($0, $1, $2, $3, baseBranchInput, Data_String_strM(baseBranchInput));
5809
- const $72 = Data_Maybe_fromMaybe(() => '', Prelude_Interfaces_x3cx24x3e(csegen_118(), $7a => Prelude_Types_String_x2bx2b($7a, ' - '), Util_parseJiraPrefix($2)));
5810
- const $71 = () => Prelude_Interfaces_x3ex3e(csegen_71(), Prelude_IO_putStr(csegen_74(), $72), () => $8a => $8b => Data_Promise_x3ex3ex3d_Monad_Promise(Prelude_Interfaces_x3cx24x3e(csegen_41(), $92 => Prelude_Types_String_x2bx2b($72, Data_String_trim($92)), csegen_366()), title => Prelude_Interfaces_x3ex3e(csegen_71(), Prelude_IO_putStrLn(csegen_74(), 'What would you like the description to be (two blank lines to finish)?'), () => $a4 => $a5 => Data_Promise_x3ex3ex3d_Monad_Promise(Prelude_Interfaces_x3cx24x3e(csegen_41(), $ac => Data_String_fastUnlines($ac), Util_getManyLines(csegen_74(), Data_Fuel_limit(Prelude_Types_fromInteger_Num_Nat(100n)))), description => Prelude_Interfaces_x3ex3e(csegen_71(), Prelude_IO_putStrLn(csegen_74(), 'Creating PR...'), () => Prelude_Interfaces_x3ex3e(csegen_71(), Prelude_IO_putStrLn(csegen_74(), $2), () => FFI_GitHub_createPR($1, $3.a2, $3.a3, $2, $5f, title, description))), $a4, $a5)), $8a, $8b));
5811
- return Prelude_Interfaces_x3ex3e(csegen_71(), Prelude_IO_putStrLn(csegen_74(), 'What would you like the title to be?'), $71);
6162
+ const $5f = PullRequest_case__identifyOrCreatePRx2ccreatePR_1614($0, $1, $2, $3, baseBranchInput, Data_String_strM(baseBranchInput));
6163
+ const $72 = Data_Maybe_fromMaybe(() => '', Prelude_Interfaces_x3cx24x3e(csegen_133(), $7a => Prelude_Types_String_x2bx2b($7a, ' - '), Util_parseJiraPrefix($2)));
6164
+ const $71 = () => Prelude_Interfaces_x3ex3e(csegen_17(), Prelude_IO_putStr(csegen_20(), $72), () => $8a => $8b => Data_Promise_x3ex3ex3d_Monad_Promise(Prelude_Interfaces_x3cx24x3e(csegen_64(), $92 => Prelude_Types_String_x2bx2b($72, Data_String_trim($92)), csegen_389()), title => Prelude_Interfaces_x3ex3e(csegen_17(), Prelude_IO_putStrLn(csegen_20(), 'What would you like the description to be (two blank lines to finish)?'), () => $a4 => $a5 => Data_Promise_x3ex3ex3d_Monad_Promise(Prelude_Interfaces_x3cx24x3e(csegen_64(), $ac => Data_String_fastUnlines($ac), Util_getManyLines(csegen_20(), Data_Fuel_limit(Prelude_Types_fromInteger_Num_Nat(100n)))), description => Prelude_Interfaces_x3ex3e(csegen_17(), Prelude_IO_putStrLn(csegen_20(), 'Creating PR...'), () => Prelude_Interfaces_x3ex3e(csegen_17(), Prelude_IO_putStrLn(csegen_20(), $2), () => FFI_GitHub_createPR($1, $3.a2, $3.a3, $2, $5f, title, description))), $a4, $a5)), $8a, $8b));
6165
+ return Prelude_Interfaces_x3ex3e(csegen_17(), Prelude_IO_putStrLn(csegen_20(), 'What would you like the title to be?'), $71);
5812
6166
  };
5813
- return Data_Promise_x3ex3ex3d_Monad_Promise(Prelude_Interfaces_x3cx24x3e(csegen_41(), $59 => Data_String_trim($59), csegen_366()), $5e, $51, $52);
6167
+ return Data_Promise_x3ex3ex3d_Monad_Promise(Prelude_Interfaces_x3cx24x3e(csegen_64(), $59 => Data_String_trim($59), csegen_389()), $5e, $51, $52);
5814
6168
  })));
5815
6169
  }
5816
6170
 
@@ -5822,10 +6176,59 @@ function PullRequest_tuple($0) {
5822
6176
  return {a1: $0.a1, a2: $0.a2};
5823
6177
  }
5824
6178
 
6179
+ function PullRequest_reviewsForUser($0, $1, $2, $3) {
6180
+ const $6 = pr => {
6181
+ let $7;
6182
+ switch(Data_PullRequest_isAuthor($2, pr)) {
6183
+ case 1: {
6184
+ $7 = 1;
6185
+ break;
6186
+ }
6187
+ case 0: {
6188
+ $7 = Data_PullRequest_isRequestedReviewer($2, pr);
6189
+ break;
6190
+ }
6191
+ }
6192
+ switch($7) {
6193
+ case 1: return 0;
6194
+ case 0: return 1;
6195
+ }
6196
+ };
6197
+ const $4 = Data_List_filter($6, $3);
6198
+ return $10 => $11 => {
6199
+ const $2e = reviewsJson => $2f => $30 => {
6200
+ const $32 = $33 => {
6201
+ const $3a = b => a => func => $3b => {
6202
+ switch($3b.h) {
6203
+ case 0: return {h: 0, a1: $3b.a1};
6204
+ case 1: return {h: 1, a1: func($3b.a1)};
6205
+ }
6206
+ };
6207
+ const $44 = b => a => $45 => $46 => {
6208
+ switch($45.h) {
6209
+ case 0: return {h: 0, a1: $45.a1};
6210
+ case 1: {
6211
+ switch($46.h) {
6212
+ case 1: return {h: 1, a1: $45.a1($46.a1)};
6213
+ case 0: return {h: 0, a1: $46.a1};
6214
+ }
6215
+ }
6216
+ }
6217
+ };
6218
+ const $39 = {a1: $3a, a2: a => $42 => ({h: 1, a1: $42}), a3: $44};
6219
+ const $37 = Prelude_Types_traverse_Traversable_List($39, $4f => Language_JSON_Accessors_array($52 => Data_Review_parseReview($52), $4f), reviewsJson);
6220
+ return Data_Promise_either(csegen_79(), $37, $33);
6221
+ };
6222
+ return Data_Promise_x3ex3ex3d_Monad_Promise($32, reviews => $59 => $5a => Data_Promise_pure_Applicative_Promise(Data_List_filter($5f => Data_Review_isAuthor($2, $5f), Prelude_Types_join_Monad_List(reviews)), $59, $5a), $2f, $30);
6223
+ };
6224
+ return Data_Promise_x3ex3ex3d_Monad_Promise($14 => $15 => Data_Promise_x3ex3ex3d_Monad_Promise(Prelude_Types_traverse_Traversable_List(csegen_11(), $1c => PullRequest_n__4298_1020_forkedReviews($1, $3, $2, $0, $1c), $4), $25 => $26 => $27 => FFI_Concurrency_promise($25, $26, $27), $14, $15), $2e, $10, $11);
6225
+ };
6226
+ }
6227
+
5825
6228
  function PullRequest_requestReviewers($0, $1, $2, $3, $4, $5, $6, $7) {
5826
6229
  const $13 = $14 => $15 => $16 => {
5827
6230
  const $2d = teamMembers => {
5828
- const $2e = Reviewer_chooseReviewers(csegen_49(), $14.a2, $14.a1, teamMembers, {h: 0}, $2.a3);
6231
+ const $2e = Reviewer_chooseReviewers(csegen_72(), $14.a2, $14.a1, teamMembers, {h: 0}, $2.a3);
5829
6232
  return $38 => $39 => {
5830
6233
  const $40 = chosenUser => {
5831
6234
  const $41 = Prelude_Types_List_tailRecAppend(Prelude_Types_toList_Foldable_Maybe(chosenUser), $4);
@@ -5851,31 +6254,31 @@ function PullRequest_requestReviewers($0, $1, $2, $3, $4, $5, $6, $7) {
5851
6254
  break;
5852
6255
  }
5853
6256
  }
5854
- const $4d = Prelude_Interfaces_when(csegen_59(), $51, () => Prelude_Interfaces_x3ex3e(csegen_71(), $58 => $59 => Data_Promise_map_Functor_Promise($5c => 0, FFI_GitHub_addPullReviewers($1, $0.a2, $0.a3, $2.a1, $41, $47), $58, $59), () => Prelude_Interfaces_when(csegen_59(), $0.a6, () => $71 => $72 => {
6257
+ const $4d = Prelude_Interfaces_when(csegen_11(), $51, () => Prelude_Interfaces_x3ex3e(csegen_17(), $58 => $59 => Data_Promise_map_Functor_Promise($5c => 0, FFI_GitHub_addPullReviewers($1, $0.a2, $0.a3, $2.a1, $41, $47), $58, $59), () => Prelude_Interfaces_when(csegen_11(), $0.a6, () => $71 => $72 => {
5855
6258
  switch(chosenUser.h) {
5856
- case undefined: return FFI_GitHub_createComment($1, $0.a2, $0.a3, $2.a1, PullRequest_n__4077_1020_prComment($1, $5, $4, $3, $2, $0, chosenUser.a1), $71, $72);
6259
+ case undefined: return FFI_GitHub_createComment($1, $0.a2, $0.a3, $2.a1, PullRequest_n__4382_1119_prComment($1, $5, $4, $3, $2, $0, chosenUser.a1), $71, $72);
5857
6260
  case 0: return Data_Promise_pure_Applicative_Promise(0, $71, $72);
5858
6261
  }
5859
6262
  })));
5860
6263
  let $8b;
5861
6264
  switch(Prelude_Types_null_Foldable_List($41)()) {
5862
6265
  case 1: {
5863
- $8b = () => Prelude_IO_putStrLn(csegen_74(), PullRequest_n__4077_1016_maybeDecorate($1, $5, $4, $3, $2, $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}}})));
6266
+ $8b = () => Prelude_IO_putStrLn(csegen_20(), PullRequest_n__4382_1115_maybeDecorate($1, $5, $4, $3, $2, $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}}})));
5864
6267
  break;
5865
6268
  }
5866
6269
  case 0: {
5867
- $8b = () => Prelude_IO_putStrLn(csegen_74(), PullRequest_n__4077_1016_maybeDecorate($1, $5, $4, $3, $2, $0, Text_PrettyPrint_Prettyprinter_Doc_vsep({a1: Text_PrettyPrint_Prettyprinter_Doc_pretty_Pretty_String(Prelude_Types_String_x2bx2b('Assigned ', Prelude_Types_String_x2bx2b(PullRequest_n__4077_1018_userNotice($1, $5, $4, $3, $2, $0, chosenUser), Prelude_Types_String_x2bx2b(PullRequest_n__4077_1019_teamNotice($1, $5, $4, $3, $2, $0, $47), ' to the open PR ')))), a2: {a1: Text_PrettyPrint_Prettyprinter_Doc_pretty_Pretty_String(Prelude_Types_String_x2bx2b('for the current branch (', Prelude_Types_String_x2bx2b(Data_PullRequest_rf__webURI($0, $2), ').'))), a2: {h: 0}}})));
6270
+ $8b = () => Prelude_IO_putStrLn(csegen_20(), PullRequest_n__4382_1115_maybeDecorate($1, $5, $4, $3, $2, $0, Text_PrettyPrint_Prettyprinter_Doc_vsep({a1: Text_PrettyPrint_Prettyprinter_Doc_pretty_Pretty_String(Prelude_Types_String_x2bx2b('Assigned ', Prelude_Types_String_x2bx2b(PullRequest_n__4382_1117_userNotice($1, $5, $4, $3, $2, $0, chosenUser), Prelude_Types_String_x2bx2b(PullRequest_n__4382_1118_teamNotice($1, $5, $4, $3, $2, $0, $47), ' to the open PR ')))), a2: {a1: Text_PrettyPrint_Prettyprinter_Doc_pretty_Pretty_String(Prelude_Types_String_x2bx2b('for the current branch (', Prelude_Types_String_x2bx2b(Data_PullRequest_rf__webURI($0, $2), ').'))), a2: {h: 0}}})));
5868
6271
  break;
5869
6272
  }
5870
6273
  }
5871
- return Prelude_Interfaces_x3ex3e(csegen_71(), $4d, $8b);
6274
+ return Prelude_Interfaces_x3ex3e(csegen_17(), $4d, $8b);
5872
6275
  };
5873
- return Data_Promise_x3ex3ex3d_Monad_Promise(Reviewer_randomReviewer(csegen_74(), $2e), $40, $38, $39);
6276
+ return Data_Promise_x3ex3ex3d_Monad_Promise(Reviewer_randomReviewer(csegen_20(), $2e), $40, $38, $39);
5874
6277
  };
5875
6278
  };
5876
- return Data_Promise_x3ex3ex3d_Monad_Promise(Prelude_Interfaces_x3cx24x3e(csegen_41(), $1e => Prelude_Types_join_Monad_List($1e), Prelude_Types_traverse_Traversable_List(csegen_59(), $26 => FFI_GitHub_listTeamMembers($1, $0.a2, $26), $3)), $2d, $15, $16);
6279
+ return Data_Promise_x3ex3ex3d_Monad_Promise(Prelude_Interfaces_x3cx24x3e(csegen_64(), $1e => Prelude_Types_join_Monad_List($1e), Prelude_Types_traverse_Traversable_List(csegen_11(), $26 => FFI_GitHub_listTeamMembers($1, $0.a2, $26), $3)), $2d, $15, $16);
5877
6280
  };
5878
- return Data_Promise_x3ex3ex3d_Monad_Promise($a => $b => PullRequest_listReviewers($0, $1, csegen_80(), $a, $b), $13, $6, $7);
6281
+ return Data_Promise_x3ex3ex3d_Monad_Promise($a => $b => PullRequest_listReviewers($0, $1, csegen_85(), $a, $b), $13, $6, $7);
5879
6282
  }
5880
6283
 
5881
6284
  function PullRequest_partition($0) {
@@ -5887,7 +6290,7 @@ function PullRequest_listReviewers($0, $1, $2, $3, $4) {
5887
6290
  }
5888
6291
 
5889
6292
  function PullRequest_listPartitionedPRs($0, $1, $2) {
5890
- return Prelude_Interfaces_x3cx24x3e(csegen_41(), $7 => PullRequest_partition($7), FFI_GitHub_listPullRequests($1, $0.a2, $0.a3, {h: 0}, $2));
6293
+ return Prelude_Interfaces_x3cx24x3e(csegen_64(), $7 => PullRequest_partition($7), FFI_GitHub_listPullRequests($1, $0.a2, $0.a3, {h: 0}, $2));
5891
6294
  }
5892
6295
 
5893
6296
  function PullRequest_identifyOrCreatePR($0, $1, $2, $3, $4, $5) {
@@ -5901,38 +6304,53 @@ function PullRequest_identifyOrCreatePR($0, $1, $2, $3, $4, $5) {
5901
6304
  }
5902
6305
  };
5903
6306
  }
5904
- case 0: return Prelude_Interfaces_x3cx24x3e(csegen_41(), $23 => ({a1: 1, a2: $23}), PullRequest_n__4544_1453_createPR($1, $2, $3, $0));
6307
+ case 0: return Prelude_Interfaces_x3cx24x3e(csegen_64(), $23 => ({a1: 1, a2: $23}), PullRequest_n__4850_1553_createPR($1, $2, $3, $0));
5905
6308
  default: return $2c => $2d => Data_Promise_reject('Multiple PRs for the current brach. We only handle 1 PR per branch currently.', $2c, $2d);
5906
6309
  }
5907
6310
  };
5908
6311
  return Data_Promise_x3ex3ex3d_Monad_Promise(FFI_GitHub_listPRsForBranch($2, $0.a2, $0.a3, $3), $f, $4, $5);
5909
6312
  }
5910
6313
 
6314
+ function PullRequest_combined($0) {
6315
+ return Prelude_Types_List_tailRecAppend($0.a1, $0.a2);
6316
+ }
6317
+
6318
+ function Reviewer_with__scoredReviewersx2czipReviewsx2ccalc_1021($0, $1, $2, $3, $4, $5, $6, $7, $8, $9, $a, $b, $c, $d) {
6319
+ switch($b.h) {
6320
+ case 0: return Prelude_Types_x2b_Num_Nat($d, $c);
6321
+ case 1: return Prelude_Types_prim__integerToNat(($d-$c));
6322
+ }
6323
+ }
6324
+
5911
6325
  function Reviewer_n__3921_904_weightReviews($0, $1, $2, $3, $4, $5) {
5912
6326
  const $6 = Data_List_groupAllWith($0, $a => $a, $5);
5913
- return Prelude_Interfaces_x3cx26x3e(csegen_62(), $6, xs => ({a1: xs.a1, a2: Prelude_Types_x2a_Num_Nat(Prelude_Types_List_length(Data_List1_forget(xs)), $4)}));
6327
+ return Prelude_Interfaces_x3cx26x3e(csegen_76(), $6, xs => ({a1: xs.a1, a2: Prelude_Types_x2a_Num_Nat(Prelude_Types_List_length(Data_List1_forget(xs)), $4)}));
5914
6328
  }
5915
6329
 
5916
6330
  function Reviewer_n__3921_905_sortx27($0, $1, $2, $3, $4) {
5917
6331
  return Data_List_sortBy($7 => $8 => Prelude_Basics_on($b => $c => Prelude_Types_compare_Ord_Nat($b, $c), $11 => Builtin_snd($11), $7, $8), $4);
5918
6332
  }
5919
6333
 
5920
- function Reviewer_n__4335_1300_graphOne($0, $1, $2, $3, $4, $5, $6, $7) {
6334
+ function Reviewer_n__4379_1343_graphOne($0, $1, $2, $3, $4, $5, $6, $7) {
5921
6335
  const $8 = Prelude_Types_prim__integerToNat(($5-$7));
5922
6336
  const $d = Text_PrettyPrint_Prettyprinter_Doc_indent(Prelude_Cast_cast_Cast_Nat_Int($8), Text_PrettyPrint_Prettyprinter_Doc_pretty_Pretty_String(Data_String_replicate($7, '#')));
5923
6337
  const $18 = Text_PrettyPrint_Prettyprinter_Doc_annotate(Text_PrettyPrint_Prettyprinter_Render_Terminal_italic(), $1.a1(undefined)($6));
5924
6338
  return Text_PrettyPrint_Prettyprinter_Doc_x3cx2bx2bx3e($d, $18);
5925
6339
  }
5926
6340
 
5927
- function Reviewer_n__4335_1301_graph($0, $1, $2, $3, $4, $5, $6) {
5928
- return Text_PrettyPrint_Prettyprinter_Doc_vsep(Prelude_Types_map_Functor_List($b => Prelude_Basics_uncurry($e => $f => Reviewer_n__4335_1300_graphOne($0, $1, $2, $3, $4, $5, $e, $f), $b), $6));
6341
+ function Reviewer_n__4379_1344_graph($0, $1, $2, $3, $4, $5, $6) {
6342
+ return Text_PrettyPrint_Prettyprinter_Doc_vsep(Prelude_Types_map_Functor_List($b => Prelude_Basics_uncurry($e => $f => Reviewer_n__4379_1343_graphOne($0, $1, $2, $3, $4, $5, $e, $f), $b), $6));
6343
+ }
6344
+
6345
+ function Reviewer_n__3936_1018_calc($0, $1, $2, $3, $4, $5, $6, $7, $8, $9, $a, $b, $c) {
6346
+ return Reviewer_with__scoredReviewersx2czipReviewsx2ccalc_1021(undefined, $0, $1, $2, $3, $4, $5, $7, $8, $9, $a, $9, $c, $b);
5929
6347
  }
5930
6348
 
5931
6349
  function Reviewer_scoredReviewers($0, $1, $2, $3) {
5932
6350
  const $4 = Reviewer_n__3921_904_weightReviews($0, $3, $2, $1, 1n, $1);
5933
- const $c = Reviewer_n__3921_904_weightReviews($0, $3, $2, $1, 2n, $2);
5934
- const $14 = Reviewer_n__3921_906_zipReviews($0, $3, $2, $1, $4, $c, 0);
5935
- return Reviewer_n__3921_905_sortx27($0, $3, $2, $1, Reviewer_n__3921_906_zipReviews($0, $3, $2, $1, $14, Reviewer_n__3921_904_weightReviews($0, $3, $2, $1, 0n, $3), 1));
6351
+ const $c = Reviewer_n__3921_904_weightReviews($0, $3, $2, $1, 3n, $2);
6352
+ const $14 = Reviewer_n__3921_909_zipReviews($0, $3, $2, $1, $c, $4, {h: 1, a1: $0, a2: $3, a3: $2, a4: $1}, 0);
6353
+ return Reviewer_n__3921_905_sortx27($0, $3, $2, $1, Reviewer_n__3921_909_zipReviews($0, $3, $2, $1, $14, Reviewer_n__3921_904_weightReviews($0, $3, $2, $1, 0n, $3), {h: 0, a1: $0, a2: $3, a3: $2, a4: $1}, 1));
5936
6354
  }
5937
6355
 
5938
6356
  function Reviewer_reviewsGraph($0, $1, $2, $3, $4) {
@@ -5951,7 +6369,7 @@ function Reviewer_reviewsGraph($0, $1, $2, $3, $4) {
5951
6369
  break;
5952
6370
  }
5953
6371
  }
5954
- return Reviewer_n__4335_1301_graph($0, $1, $4, $3, $2, $1d, $5);
6372
+ return Reviewer_n__4379_1344_graph($0, $1, $4, $3, $2, $1d, $5);
5955
6373
  }
5956
6374
  }
5957
6375
  }
@@ -6004,37 +6422,41 @@ function FFI_GitHub_pullRequestStateFilter($0) {
6004
6422
  }
6005
6423
 
6006
6424
  function FFI_GitHub_octokit($0) {
6007
- return Prelude_Interfaces_x3cx24x3e(csegen_25(), $5 => $5, $7 => FFI_GitHub_prim__octokit($0, $7));
6425
+ return Prelude_Interfaces_x3cx24x3e(csegen_48(), $5 => $5, $7 => FFI_GitHub_prim__octokit($0, $7));
6008
6426
  }
6009
6427
 
6010
6428
  function FFI_GitHub_listTeams($0, $1) {
6011
- return Prelude_Interfaces_x3cx24x3e(csegen_41(), $6 => Data_String_lines($6), $a => $b => FFI_promiseIO($e => $f => $10 => FFI_GitHub_prim__listTeams($0, $1, $e, $f, $10), $a, $b));
6429
+ return Prelude_Interfaces_x3cx24x3e(csegen_64(), $6 => Data_String_lines($6), $a => $b => FFI_promiseIO($e => $f => $10 => FFI_GitHub_prim__listTeams($0, $1, $e, $f, $10), $a, $b));
6012
6430
  }
6013
6431
 
6014
6432
  function FFI_GitHub_listTeamMembers($0, $1, $2) {
6015
- return Prelude_Interfaces_x3cx24x3e(csegen_41(), $7 => Data_String_lines($7), $b => $c => FFI_promiseIO($f => $10 => $11 => FFI_GitHub_prim__listTeamMembers($0, $1, $2, $f, $10, $11), $b, $c));
6433
+ return Prelude_Interfaces_x3cx24x3e(csegen_64(), $7 => Data_String_lines($7), $b => $c => FFI_promiseIO($f => $10 => $11 => FFI_GitHub_prim__listTeamMembers($0, $1, $2, $f, $10, $11), $b, $c));
6434
+ }
6435
+
6436
+ function FFI_GitHub_listPullReviewsJsonStr($0, $1, $2, $3, $4, $5) {
6437
+ return FFI_promiseIO($8 => $9 => $a => FFI_GitHub_prim__listPullReviews($0, $1, $2, $3, $8, $9, $a), $4, $5);
6016
6438
  }
6017
6439
 
6018
6440
  function FFI_GitHub_listPullRequests($0, $1, $2, $3, $4) {
6019
6441
  const $5 = FFI_GitHub_pullRequestStateFilter($3);
6020
6442
  const $8 = Prelude_Cast_cast_Cast_Nat_Int16(Data_Fin_finToNat($4));
6021
- return Prelude_Interfaces_x3dx3cx3c(csegen_71(), csegen_387(), $13 => $14 => FFI_promiseIO($17 => $18 => $19 => FFI_GitHub_prim__listPullRequests($0, $1, $2, $5, $8, $17, $18, $19), $13, $14));
6443
+ return Prelude_Interfaces_x3dx3cx3c(csegen_17(), csegen_413(), $13 => $14 => FFI_promiseIO($17 => $18 => $19 => FFI_GitHub_prim__listPullRequests($0, $1, $2, $5, $8, $17, $18, $19), $13, $14));
6022
6444
  }
6023
6445
 
6024
6446
  function FFI_GitHub_listPRsForBranch($0, $1, $2, $3) {
6025
- return Prelude_Interfaces_x3dx3cx3c(csegen_71(), csegen_387(), $a => $b => FFI_promiseIO($e => $f => $10 => FFI_GitHub_prim__listPRsForBranch($0, $1, $2, $3, $e, $f, $10), $a, $b));
6447
+ return Prelude_Interfaces_x3dx3cx3c(csegen_17(), csegen_413(), $a => $b => FFI_promiseIO($e => $f => $10 => FFI_GitHub_prim__listPRsForBranch($0, $1, $2, $3, $e, $f, $10), $a, $b));
6026
6448
  }
6027
6449
 
6028
6450
  function FFI_GitHub_listOrgMembers($0, $1) {
6029
- return Prelude_Interfaces_x3cx24x3e(csegen_41(), $6 => Data_String_lines($6), $a => $b => FFI_promiseIO($e => $f => $10 => FFI_GitHub_prim__listOrgMembers($0, $1, $e, $f, $10), $a, $b));
6451
+ return Prelude_Interfaces_x3cx24x3e(csegen_64(), $6 => Data_String_lines($6), $a => $b => FFI_promiseIO($e => $f => $10 => FFI_GitHub_prim__listOrgMembers($0, $1, $e, $f, $10), $a, $b));
6030
6452
  }
6031
6453
 
6032
6454
  function FFI_GitHub_getUser($0) {
6033
- return Prelude_Interfaces_x3cx3dx3c(csegen_71(), csegen_388(), $7 => $8 => $9 => FFI_promiseIO($c => $d => $e => FFI_GitHub_prim__getUser($0, $7, $c, $d, $e), $8, $9));
6455
+ return Prelude_Interfaces_x3cx3dx3c(csegen_17(), csegen_414(), $7 => $8 => $9 => FFI_promiseIO($c => $d => $e => FFI_GitHub_prim__getUser($0, $7, $c, $d, $e), $8, $9));
6034
6456
  }
6035
6457
 
6036
6458
  function FFI_GitHub_getSelf($0) {
6037
- return Prelude_Interfaces_x3dx3cx3c(csegen_71(), csegen_388(), $7 => $8 => FFI_promiseIO($b => $c => $d => FFI_GitHub_prim__getSelf($0, $b, $c, $d), $7, $8));
6459
+ return Prelude_Interfaces_x3dx3cx3c(csegen_17(), csegen_414(), $7 => $8 => FFI_promiseIO($b => $c => $d => FFI_GitHub_prim__getSelf($0, $b, $c, $d), $7, $8));
6038
6460
  }
6039
6461
 
6040
6462
  function FFI_GitHub_getRepoDefaultBranch($0, $1, $2, $3, $4) {
@@ -6042,7 +6464,7 @@ function FFI_GitHub_getRepoDefaultBranch($0, $1, $2, $3, $4) {
6042
6464
  }
6043
6465
 
6044
6466
  function FFI_GitHub_createPR($0, $1, $2, $3, $4, $5, $6) {
6045
- return Prelude_Interfaces_x3dx3cx3c(csegen_71(), $b => $c => Data_Promise_either(csegen_65(), Data_PullRequest_parsePullRequestString($b), $c), $15 => $16 => FFI_promiseIO($19 => $1a => $1b => FFI_GitHub_prim__createPR($0, $1, $2, $3, $4, $5, $6, $19, $1a, $1b), $15, $16));
6467
+ return Prelude_Interfaces_x3dx3cx3c(csegen_17(), $b => $c => Data_Promise_either(csegen_79(), Data_PullRequest_parsePullRequestString($b), $c), $15 => $16 => FFI_promiseIO($19 => $1a => $1b => FFI_GitHub_prim__createPR($0, $1, $2, $3, $4, $5, $6, $19, $1a, $1b), $15, $16));
6046
6468
  }
6047
6469
 
6048
6470
  function FFI_GitHub_createComment($0, $1, $2, $3, $4, $5, $6) {
@@ -6050,7 +6472,7 @@ function FFI_GitHub_createComment($0, $1, $2, $3, $4, $5, $6) {
6050
6472
  }
6051
6473
 
6052
6474
  function FFI_GitHub_addPullReviewers($0, $1, $2, $3, $4, $5) {
6053
- return Prelude_Interfaces_x3cx24x3e(csegen_41(), $a => Data_String_lines($a), $e => $f => FFI_promiseIO($12 => $13 => $14 => FFI_GitHub_prim__addPullReviewers($0, $1, $2, $3, Data_String_Extra_join(',', csegen_114(), $4), Data_String_Extra_join(',', csegen_114(), $5), $12, $13, $14), $e, $f));
6475
+ return Prelude_Interfaces_x3cx24x3e(csegen_64(), $a => Data_String_lines($a), $e => $f => FFI_promiseIO($12 => $13 => $14 => FFI_GitHub_prim__addPullReviewers($0, $1, $2, $3, Data_String_Extra_join(',', csegen_126(), $4), Data_String_Extra_join(',', csegen_126(), $5), $12, $13, $14), $e, $f));
6054
6476
  }
6055
6477
 
6056
6478
  function FFI_promiseIO($0, $1, $2) {
@@ -6083,7 +6505,7 @@ function Data_Promise_x3cx7cx3e_Alternative_Promise($0, $1, $2, $3) {
6083
6505
  }
6084
6506
 
6085
6507
  function Data_Promise_x3cx2ax3e_Applicative_Promise($0, $1, $2, $3) {
6086
- return Data_Promise_bind($0, f => Prelude_Interfaces_x3cx24x3e(csegen_53(), f, $1), $2, $3);
6508
+ return Data_Promise_bind($0, f => Prelude_Interfaces_x3cx24x3e(csegen_5(), f, $1), $2, $3);
6087
6509
  }
6088
6510
 
6089
6511
  function Data_Promise_resolvex27($0, $1, $2) {
@@ -6130,8 +6552,8 @@ function Data_User_parseUserString($0) {
6130
6552
  }
6131
6553
  };
6132
6554
  const $3 = {a1: $4, a2: a => $c => ({h: 1, a1: $c}), a3: $e};
6133
- const $2 = {a1: $3, a2: csegen_233(), a3: csegen_234()};
6134
- return Prelude_Interfaces_x3ex3dx3e($2, csegen_235(), $1f => Data_User_parseUser($1f), $0);
6555
+ const $2 = {a1: $3, a2: csegen_256(), a3: csegen_257()};
6556
+ return Prelude_Interfaces_x3ex3dx3e($2, csegen_258(), $1f => Data_User_parseUser($1f), $0);
6135
6557
  }
6136
6558
 
6137
6559
  function Data_User_parseUser($0) {
@@ -6142,152 +6564,80 @@ function Data_User_parseUser($0) {
6142
6564
  }
6143
6565
  }
6144
6566
 
6145
- function Data_PullRequest_show_Show_PRState($0) {
6146
- switch($0) {
6147
- case 0: return 'open';
6148
- case 1: return 'closed';
6149
- }
6150
- }
6151
-
6152
- function Data_PullRequest_x3dx3d_Eq_PRState($0, $1) {
6567
+ function Data_Review_parseState($0) {
6153
6568
  switch($0) {
6154
- case 0: {
6155
- switch($1) {
6156
- case 0: return 1;
6157
- default: return 0;
6158
- }
6159
- }
6160
- case 1: {
6161
- switch($1) {
6162
- case 1: return 1;
6163
- default: return 0;
6164
- }
6165
- }
6166
- default: return 0;
6167
- }
6168
- }
6169
-
6170
- function Data_PullRequest_rf__webURI($0, $1) {
6171
- return Prelude_Types_String_x2bx2b('https://github.com/', Prelude_Types_String_x2bx2b($0.a2, Prelude_Types_String_x2bx2b('/', Prelude_Types_String_x2bx2b($0.a3, Prelude_Types_String_x2bx2b('/pull/', Prelude_Show_show_Show_Integer($1.a1))))));
6172
- }
6173
-
6174
- function Data_PullRequest_parseState($0) {
6175
- switch($0) {
6176
- case 'open': return {h: 1, a1: 0};
6177
- case 'closed': return {h: 1, a1: 1};
6178
- default: return {h: 0, a1: Prelude_Types_String_x2bx2b('Failed to parse a Pull Request State (open/closed). Found ', Prelude_Types_String_x2bx2b($0, '.'))};
6179
- }
6180
- }
6181
-
6182
- function Data_PullRequest_parsePullRequestsString($0) {
6183
- const $4 = b => a => func => $5 => {
6184
- switch($5.h) {
6185
- case 0: return {h: 0, a1: $5.a1};
6186
- case 1: return {h: 1, a1: func($5.a1)};
6187
- }
6188
- };
6189
- const $e = b => a => $f => $10 => {
6190
- switch($f.h) {
6191
- case 0: return {h: 0, a1: $f.a1};
6192
- case 1: {
6193
- switch($10.h) {
6194
- case 1: return {h: 1, a1: $f.a1($10.a1)};
6195
- case 0: return {h: 0, a1: $10.a1};
6196
- }
6197
- }
6198
- }
6199
- };
6200
- const $3 = {a1: $4, a2: a => $c => ({h: 1, a1: $c}), a3: $e};
6201
- const $2 = {a1: $3, a2: csegen_233(), a3: csegen_234()};
6202
- return Prelude_Interfaces_x3ex3dx3e($2, csegen_235(), $1f => Language_JSON_Accessors_array($22 => Data_PullRequest_parsePR($22), $1f), $0);
6203
- }
6204
-
6205
- function Data_PullRequest_parsePullRequestString($0) {
6206
- const $4 = b => a => func => $5 => {
6207
- switch($5.h) {
6208
- case 0: return {h: 0, a1: $5.a1};
6209
- case 1: return {h: 1, a1: func($5.a1)};
6210
- }
6211
- };
6212
- const $e = b => a => $f => $10 => {
6213
- switch($f.h) {
6214
- case 0: return {h: 0, a1: $f.a1};
6215
- case 1: {
6216
- switch($10.h) {
6217
- case 1: return {h: 1, a1: $f.a1($10.a1)};
6218
- case 0: return {h: 0, a1: $10.a1};
6219
- }
6220
- }
6221
- }
6222
- };
6223
- const $3 = {a1: $4, a2: a => $c => ({h: 1, a1: $c}), a3: $e};
6224
- const $2 = {a1: $3, a2: csegen_233(), a3: csegen_234()};
6225
- return Prelude_Interfaces_x3ex3dx3e($2, csegen_235(), $1f => Data_PullRequest_parsePR($1f), $0);
6226
- }
6227
-
6228
- function Data_PullRequest_parsePR($0) {
6229
- const $5 = pr => {
6230
- const $15 = $16 => {
6231
- const $21 = number => {
6232
- const $26 = author => {
6233
- const $2c = b => a => func => $2d => {
6234
- switch($2d.h) {
6235
- case 0: return {h: 0, a1: $2d.a1};
6236
- case 1: return {h: 1, a1: func($2d.a1)};
6569
+ case 'APPROVED': return {h: 1, a1: 0};
6570
+ case 'COMMENTED': return {h: 1, a1: 1};
6571
+ case 'CHANGES_REQUESTED': return {h: 1, a1: 0};
6572
+ case 'DISMISSED': return {h: 1, a1: 0};
6573
+ default: return {h: 0, a1: 'Failed to parse Review State.'};
6574
+ }
6575
+ }
6576
+
6577
+ function Data_Review_parseReview($0) {
6578
+ const $5 = review => {
6579
+ const $11 = $12 => {
6580
+ const $1b = author => {
6581
+ const $21 = b => a => func => $22 => {
6582
+ switch($22.h) {
6583
+ case 0: return {h: 0, a1: $22.a1};
6584
+ case 1: return {h: 1, a1: func($22.a1)};
6585
+ }
6586
+ };
6587
+ const $2b = b => a => $2c => $2d => {
6588
+ switch($2c.h) {
6589
+ case 0: return {h: 0, a1: $2c.a1};
6590
+ case 1: {
6591
+ switch($2d.h) {
6592
+ case 1: return {h: 1, a1: $2c.a1($2d.a1)};
6593
+ case 0: return {h: 0, a1: $2d.a1};
6594
+ }
6595
+ }
6596
+ }
6597
+ };
6598
+ const $20 = {a1: $21, a2: a => $29 => ({h: 1, a1: $29}), a3: $2b};
6599
+ const $1f = {a1: $20, a2: csegen_256(), a3: csegen_257()};
6600
+ const $1d = Prelude_Interfaces_x3dx3cx3c($1f, $3a => Data_Review_parseState($3a), Language_JSON_Accessors_string($12.a2.a1));
6601
+ const $40 = state => {
6602
+ const $46 = b => a => func => $47 => {
6603
+ switch($47.h) {
6604
+ case 0: return {h: 0, a1: $47.a1};
6605
+ case 1: return {h: 1, a1: func($47.a1)};
6237
6606
  }
6238
6607
  };
6239
- const $36 = b => a => $37 => $38 => {
6240
- switch($37.h) {
6241
- case 0: return {h: 0, a1: $37.a1};
6608
+ const $50 = b => a => $51 => $52 => {
6609
+ switch($51.h) {
6610
+ case 0: return {h: 0, a1: $51.a1};
6242
6611
  case 1: {
6243
- switch($38.h) {
6244
- case 1: return {h: 1, a1: $37.a1($38.a1)};
6245
- case 0: return {h: 0, a1: $38.a1};
6612
+ switch($52.h) {
6613
+ case 1: return {h: 1, a1: $51.a1($52.a1)};
6614
+ case 0: return {h: 0, a1: $52.a1};
6246
6615
  }
6247
6616
  }
6248
6617
  }
6249
6618
  };
6250
- const $2b = {a1: $2c, a2: a => $34 => ({h: 1, a1: $34}), a3: $36};
6251
- const $2a = {a1: $2b, a2: csegen_233(), a3: csegen_234()};
6252
- const $28 = Prelude_Interfaces_x3dx3cx3c($2a, $45 => Data_PullRequest_parseState($45), Language_JSON_Accessors_string($16.a2.a2.a1));
6253
- const $4b = state => {
6254
- const $51 = b => a => func => $52 => {
6255
- switch($52.h) {
6256
- case 0: return {h: 0, a1: $52.a1};
6257
- case 1: return {h: 1, a1: func($52.a1)};
6258
- }
6259
- };
6260
- const $5b = b => a => $5c => $5d => {
6261
- switch($5c.h) {
6262
- case 0: return {h: 0, a1: $5c.a1};
6263
- case 1: {
6264
- switch($5d.h) {
6265
- case 1: return {h: 1, a1: $5c.a1($5d.a1)};
6266
- case 0: return {h: 0, a1: $5d.a1};
6267
- }
6268
- }
6269
- }
6270
- };
6271
- const $50 = {a1: $51, a2: a => $59 => ({h: 1, a1: $59}), a3: $5b};
6272
- const $4f = {a1: $50, a2: csegen_233(), a3: csegen_234()};
6273
- const $4d = Prelude_Interfaces_x3dx3cx3c($4f, $6a => Data_PullRequest_parseDateTime($6a), Language_JSON_Accessors_string($16.a2.a2.a2.a1));
6274
- return Prelude_Types_x3ex3ex3d_Monad_x28Eitherx20x24ex29($4d, createdAt => Prelude_Types_x3ex3ex3d_Monad_x28Eitherx20x24ex29(Language_JSON_Accessors_array($75 => Language_JSON_Accessors_string($75), $16.a2.a2.a2.a2.a1), reviewers => ({h: 1, a1: {a1: number, a2: createdAt, a3: author, a4: state, a5: reviewers}})));
6275
- };
6276
- return Prelude_Types_x3ex3ex3d_Monad_x28Eitherx20x24ex29($28, $4b);
6619
+ const $45 = {a1: $46, a2: a => $4e => ({h: 1, a1: $4e}), a3: $50};
6620
+ const $44 = {a1: $45, a2: csegen_256(), a3: csegen_257()};
6621
+ const $42 = Prelude_Interfaces_x3dx3cx3c($44, $5f => Data_Review_parseDateTime($5f), Language_JSON_Accessors_string($12.a2.a2.a1));
6622
+ return Prelude_Types_x3ex3ex3d_Monad_x28Eitherx20x24ex29($42, submittedAt => ({h: 1, a1: {a1: submittedAt, a2: author, a3: state}}));
6277
6623
  };
6278
- return Prelude_Types_x3ex3ex3d_Monad_x28Eitherx20x24ex29(Language_JSON_Accessors_string($16.a2.a1), $26);
6624
+ return Prelude_Types_x3ex3ex3d_Monad_x28Eitherx20x24ex29($1d, $40);
6279
6625
  };
6280
- return Prelude_Types_x3ex3ex3d_Monad_x28Eitherx20x24ex29(Language_JSON_Accessors_integer($16.a1), $21);
6626
+ return Prelude_Types_x3ex3ex3d_Monad_x28Eitherx20x24ex29(Language_JSON_Accessors_string($12.a1), $1b);
6281
6627
  };
6282
- return Prelude_Types_x3ex3ex3d_Monad_x28Eitherx20x24ex29(Language_JSON_Accessors_lookupAll({a1: 'pull_number', a2: {a1: 'author', a2: {a1: 'state', a2: {a1: 'created_at', a2: {a1: 'reviewers', a2: {h: 0}}}}}}, pr), $15);
6628
+ return Prelude_Types_x3ex3ex3d_Monad_x28Eitherx20x24ex29(Language_JSON_Accessors_lookupAll({a1: 'author', a2: {a1: 'state', a2: {a1: 'submitted_at', a2: {h: 0}}}}, review), $11);
6283
6629
  };
6284
6630
  return Prelude_Types_x3ex3ex3d_Monad_x28Eitherx20x24ex29(Language_JSON_Accessors_object($0), $5);
6285
6631
  }
6286
6632
 
6287
- function Data_PullRequest_parseDateTime($0) {
6633
+ function Data_Review_parseDateTime($0) {
6288
6634
  return Data_Either_maybeToEither(() => 'Failed to parse Date', Data_Date_parseDateTimeString($0));
6289
6635
  }
6290
6636
 
6637
+ function Data_Review_isAuthor($0, $1) {
6638
+ return Prelude_EqOrd_x3dx3d_Eq_String($1.a2, $0);
6639
+ }
6640
+
6291
6641
  function Data_Date_n__2935_4035_parseNat($0, $1, $2) {
6292
6642
  switch($2) {
6293
6643
  case '0': return {a1: 0n};
@@ -6319,7 +6669,7 @@ function Data_Date_n__3042_4142_guardSuccess($0) {
6319
6669
  switch($0.a2.h) {
6320
6670
  case undefined: {
6321
6671
  switch($0.a2.a2.h) {
6322
- case undefined: return Prelude_Interfaces_x3cx24x3e(csegen_118(), $9 => ({a1: $0.a2.a1, a2: $0.a2.a2.a1, a3: $9}), Data_Date_parsePositiveReversed($0.a2.a2.a2));
6672
+ case undefined: return Prelude_Interfaces_x3cx24x3e(csegen_133(), $9 => ({a1: $0.a2.a1, a2: $0.a2.a2.a1, a3: $9}), Data_Date_parsePositiveReversed($0.a2.a2.a2));
6323
6673
  default: return {h: 0};
6324
6674
  }
6325
6675
  }
@@ -6464,6 +6814,160 @@ function Data_Date_parseDateString($0) {
6464
6814
  return Data_Date_n__3042_4142_guardSuccess(Prelude_Types_foldl_Foldable_List($5 => $6 => Data_Date_n__3042_4143_go($5, $6), {a1: {h: 0}, a2: 0}, Prelude_Types_fastUnpack($0)));
6465
6815
  }
6466
6816
 
6817
+ function Data_PullRequest_show_Show_PRState($0) {
6818
+ switch($0) {
6819
+ case 0: return 'open';
6820
+ case 1: return 'closed';
6821
+ }
6822
+ }
6823
+
6824
+ function Data_PullRequest_x3dx3d_Eq_PRState($0, $1) {
6825
+ switch($0) {
6826
+ case 0: {
6827
+ switch($1) {
6828
+ case 0: return 1;
6829
+ default: return 0;
6830
+ }
6831
+ }
6832
+ case 1: {
6833
+ switch($1) {
6834
+ case 1: return 1;
6835
+ default: return 0;
6836
+ }
6837
+ }
6838
+ default: return 0;
6839
+ }
6840
+ }
6841
+
6842
+ function Data_PullRequest_rf__webURI($0, $1) {
6843
+ return Prelude_Types_String_x2bx2b('https://github.com/', Prelude_Types_String_x2bx2b($0.a2, Prelude_Types_String_x2bx2b('/', Prelude_Types_String_x2bx2b($0.a3, Prelude_Types_String_x2bx2b('/pull/', Prelude_Show_show_Show_Integer($1.a1))))));
6844
+ }
6845
+
6846
+ function Data_PullRequest_parseState($0) {
6847
+ switch($0) {
6848
+ case 'open': return {h: 1, a1: 0};
6849
+ case 'closed': return {h: 1, a1: 1};
6850
+ default: return {h: 0, a1: Prelude_Types_String_x2bx2b('Failed to parse a Pull Request State (open/closed). Found ', Prelude_Types_String_x2bx2b($0, '.'))};
6851
+ }
6852
+ }
6853
+
6854
+ function Data_PullRequest_parsePullRequestsString($0) {
6855
+ const $4 = b => a => func => $5 => {
6856
+ switch($5.h) {
6857
+ case 0: return {h: 0, a1: $5.a1};
6858
+ case 1: return {h: 1, a1: func($5.a1)};
6859
+ }
6860
+ };
6861
+ const $e = b => a => $f => $10 => {
6862
+ switch($f.h) {
6863
+ case 0: return {h: 0, a1: $f.a1};
6864
+ case 1: {
6865
+ switch($10.h) {
6866
+ case 1: return {h: 1, a1: $f.a1($10.a1)};
6867
+ case 0: return {h: 0, a1: $10.a1};
6868
+ }
6869
+ }
6870
+ }
6871
+ };
6872
+ const $3 = {a1: $4, a2: a => $c => ({h: 1, a1: $c}), a3: $e};
6873
+ const $2 = {a1: $3, a2: csegen_256(), a3: csegen_257()};
6874
+ return Prelude_Interfaces_x3ex3dx3e($2, csegen_258(), $1f => Language_JSON_Accessors_array($22 => Data_PullRequest_parsePR($22), $1f), $0);
6875
+ }
6876
+
6877
+ function Data_PullRequest_parsePullRequestString($0) {
6878
+ const $4 = b => a => func => $5 => {
6879
+ switch($5.h) {
6880
+ case 0: return {h: 0, a1: $5.a1};
6881
+ case 1: return {h: 1, a1: func($5.a1)};
6882
+ }
6883
+ };
6884
+ const $e = b => a => $f => $10 => {
6885
+ switch($f.h) {
6886
+ case 0: return {h: 0, a1: $f.a1};
6887
+ case 1: {
6888
+ switch($10.h) {
6889
+ case 1: return {h: 1, a1: $f.a1($10.a1)};
6890
+ case 0: return {h: 0, a1: $10.a1};
6891
+ }
6892
+ }
6893
+ }
6894
+ };
6895
+ const $3 = {a1: $4, a2: a => $c => ({h: 1, a1: $c}), a3: $e};
6896
+ const $2 = {a1: $3, a2: csegen_256(), a3: csegen_257()};
6897
+ return Prelude_Interfaces_x3ex3dx3e($2, csegen_258(), $1f => Data_PullRequest_parsePR($1f), $0);
6898
+ }
6899
+
6900
+ function Data_PullRequest_parsePR($0) {
6901
+ const $5 = pr => {
6902
+ const $15 = $16 => {
6903
+ const $21 = number => {
6904
+ const $26 = author => {
6905
+ const $2c = b => a => func => $2d => {
6906
+ switch($2d.h) {
6907
+ case 0: return {h: 0, a1: $2d.a1};
6908
+ case 1: return {h: 1, a1: func($2d.a1)};
6909
+ }
6910
+ };
6911
+ const $36 = b => a => $37 => $38 => {
6912
+ switch($37.h) {
6913
+ case 0: return {h: 0, a1: $37.a1};
6914
+ case 1: {
6915
+ switch($38.h) {
6916
+ case 1: return {h: 1, a1: $37.a1($38.a1)};
6917
+ case 0: return {h: 0, a1: $38.a1};
6918
+ }
6919
+ }
6920
+ }
6921
+ };
6922
+ const $2b = {a1: $2c, a2: a => $34 => ({h: 1, a1: $34}), a3: $36};
6923
+ const $2a = {a1: $2b, a2: csegen_256(), a3: csegen_257()};
6924
+ const $28 = Prelude_Interfaces_x3dx3cx3c($2a, $45 => Data_PullRequest_parseState($45), Language_JSON_Accessors_string($16.a2.a2.a1));
6925
+ const $4b = state => {
6926
+ const $51 = b => a => func => $52 => {
6927
+ switch($52.h) {
6928
+ case 0: return {h: 0, a1: $52.a1};
6929
+ case 1: return {h: 1, a1: func($52.a1)};
6930
+ }
6931
+ };
6932
+ const $5b = b => a => $5c => $5d => {
6933
+ switch($5c.h) {
6934
+ case 0: return {h: 0, a1: $5c.a1};
6935
+ case 1: {
6936
+ switch($5d.h) {
6937
+ case 1: return {h: 1, a1: $5c.a1($5d.a1)};
6938
+ case 0: return {h: 0, a1: $5d.a1};
6939
+ }
6940
+ }
6941
+ }
6942
+ };
6943
+ const $50 = {a1: $51, a2: a => $59 => ({h: 1, a1: $59}), a3: $5b};
6944
+ const $4f = {a1: $50, a2: csegen_256(), a3: csegen_257()};
6945
+ const $4d = Prelude_Interfaces_x3dx3cx3c($4f, $6a => Data_PullRequest_parseDateTime($6a), Language_JSON_Accessors_string($16.a2.a2.a2.a1));
6946
+ return Prelude_Types_x3ex3ex3d_Monad_x28Eitherx20x24ex29($4d, createdAt => Prelude_Types_x3ex3ex3d_Monad_x28Eitherx20x24ex29(Language_JSON_Accessors_array($75 => Language_JSON_Accessors_string($75), $16.a2.a2.a2.a2.a1), reviewers => ({h: 1, a1: {a1: number, a2: createdAt, a3: author, a4: state, a5: reviewers}})));
6947
+ };
6948
+ return Prelude_Types_x3ex3ex3d_Monad_x28Eitherx20x24ex29($28, $4b);
6949
+ };
6950
+ return Prelude_Types_x3ex3ex3d_Monad_x28Eitherx20x24ex29(Language_JSON_Accessors_string($16.a2.a1), $26);
6951
+ };
6952
+ return Prelude_Types_x3ex3ex3d_Monad_x28Eitherx20x24ex29(Language_JSON_Accessors_integer($16.a1), $21);
6953
+ };
6954
+ return Prelude_Types_x3ex3ex3d_Monad_x28Eitherx20x24ex29(Language_JSON_Accessors_lookupAll({a1: 'pull_number', a2: {a1: 'author', a2: {a1: 'state', a2: {a1: 'created_at', a2: {a1: 'reviewers', a2: {h: 0}}}}}}, pr), $15);
6955
+ };
6956
+ return Prelude_Types_x3ex3ex3d_Monad_x28Eitherx20x24ex29(Language_JSON_Accessors_object($0), $5);
6957
+ }
6958
+
6959
+ function Data_PullRequest_parseDateTime($0) {
6960
+ return Data_Either_maybeToEither(() => 'Failed to parse Date', Data_Date_parseDateTimeString($0));
6961
+ }
6962
+
6963
+ function Data_PullRequest_isRequestedReviewer($0, $1) {
6964
+ return Prelude_Interfaces_any(csegen_126(), $6 => Prelude_EqOrd_x3dx3d_Eq_String($6, $0), $1.a5);
6965
+ }
6966
+
6967
+ function Data_PullRequest_isAuthor($0, $1) {
6968
+ return Prelude_EqOrd_x3dx3d_Eq_String($1.a3, $0);
6969
+ }
6970
+
6467
6971
  function FFI_Git_case__remoteTrackingBranch_855($0, $1, $2) {
6468
6972
  switch($1) {
6469
6973
  case '': {
@@ -6496,6 +7000,43 @@ function FFI_Git_currentBranch($0, $1, $2) {
6496
7000
  return FFI_promiseIO($5 => $6 => $7 => FFI_Git_prim__currentBranch($0, $5, $6, $7), $1, $2);
6497
7001
  }
6498
7002
 
7003
+ function FFI_Concurrency_promise($0, $1, $2) {
7004
+ const $9 = f => $a => $b => {
7005
+ const $1e = str => $1f => $20 => {
7006
+ const $31 = $32 => $33 => $34 => {
7007
+ switch($32.h) {
7008
+ case 4: return Data_Promise_pure_Applicative_Promise($32.a1, $33, $34);
7009
+ default: return Data_Promise_reject(Prelude_Types_String_x2bx2b('Expected a JSON array from futures but got ', Prelude_Types_String_x2bx2b(Language_JSON_Data_show_Show_JSON($32), '.')), $33, $34);
7010
+ }
7011
+ };
7012
+ return Data_Promise_x3ex3ex3d_Monad_Promise($23 => Data_Promise_either(csegen_79(), Data_Either_maybeToEither(() => Prelude_Types_String_x2bx2b('Failed to parse JSON from ', str), Language_JSON_parse(str)), $23), $31, $1f, $20);
7013
+ };
7014
+ return Data_Promise_x3ex3ex3d_Monad_Promise($e => $f => Data_Promise_promisify(ok => err => $12 => FFI_Concurrency_prim__awaitStringify(f, x => ok(x), y => err(y), $12), $e, $f), $1e, $a, $b);
7015
+ };
7016
+ return Data_Promise_x3ex3ex3d_Monad_Promise(FFI_Concurrency_all(csegen_20(), $0), $9, $1, $2);
7017
+ }
7018
+
7019
+ function FFI_Concurrency_fork($0, $1) {
7020
+ return $0.a2(undefined)($7 => FFI_Concurrency_prim__future($1, $7));
7021
+ }
7022
+
7023
+ function FFI_Concurrency_all($0, $1) {
7024
+ switch($1.h) {
7025
+ case 0: return $0.a2(undefined)($8 => FFI_Concurrency_prim__neutral($8));
7026
+ case undefined: {
7027
+ switch($1.a2.h) {
7028
+ case 0: return $0.a2(undefined)($11 => FFI_Concurrency_prim__singleton($1.a1, $11));
7029
+ case undefined: {
7030
+ switch($1.a2.a2.h) {
7031
+ case 0: return $0.a2(undefined)($1b => FFI_Concurrency_prim__both($1.a1, $1.a2.a1, $1b));
7032
+ case undefined: return $0.a1.a2(undefined)(undefined)(FFI_Concurrency_all($0, {a1: $1.a2.a2.a1, a2: $1.a2.a2.a2}))(rest => $0.a1.a2(undefined)(undefined)($0.a2(undefined)($3d => FFI_Concurrency_prim__both($1.a1, $1.a2.a1, $3d)))(head => $0.a1.a2(undefined)(undefined)($0.a2(undefined)($51 => FFI_Concurrency_prim__both(head, rest, $51)))(nested => $0.a2(undefined)($5c => FFI_Concurrency_prim__flatten(nested, $5c)))));
7033
+ }
7034
+ }
7035
+ }
7036
+ }
7037
+ }
7038
+ }
7039
+
6499
7040
  const System_File_Virtual_stdout = __lazy(function () {
6500
7041
  return System_File_Virtual_prim__stdout();
6501
7042
  });
@@ -6539,14 +7080,14 @@ function System_File_ReadWrite_readLinesOnto($0, $1, $2, $3, $4) {
6539
7080
  }
6540
7081
  };
6541
7082
  const $28 = {a1: $29, a2: a => $31 => ({h: 1, a1: $31}), a3: $33};
6542
- const $27 = {a1: $28, a2: csegen_233(), a3: csegen_234()};
7083
+ const $27 = {a1: $28, a2: csegen_256(), a3: csegen_257()};
6543
7084
  const $42 = b => a => func => $43 => {
6544
7085
  switch($43.h) {
6545
7086
  case 0: return {h: 0, a1: $43.a1};
6546
7087
  case 1: return {h: 1, a1: func($43.a1)};
6547
7088
  }
6548
7089
  };
6549
- const $41 = {a1: $42, a2: csegen_432(), a3: csegen_436()};
7090
+ const $41 = {a1: $42, a2: csegen_460(), a3: csegen_464()};
6550
7091
  const $26 = {a1: $27, a2: $41};
6551
7092
  const $23 = {a1: $0.a1, a2: $26};
6552
7093
  return Prelude_Interfaces_Monad_x3ex3ex3d_Monad_Composex28x28x2ex20x24mx29x20x24tx29($23, System_File_ReadWrite_fGetLine($0, $4), str => System_File_ReadWrite_readLinesOnto($0, {a1: str, a2: $1}, 0n, $3.a1(), $4));
@@ -6826,7 +7367,7 @@ const System_Info_os = __lazy(function () {
6826
7367
  });
6827
7368
 
6828
7369
  const System_Info_isWindows = __lazy(function () {
6829
- return Prelude_Types_elem(csegen_34(), System_Info_os(), {a1: 'windows', a2: {a1: 'mingw32', a2: {a1: 'cygwin32', a2: {h: 0}}}});
7370
+ return Prelude_Types_elem(csegen_57(), System_Info_os(), {a1: 'windows', a2: {a1: 'mingw32', a2: {a1: 'cygwin32', a2: {h: 0}}}});
6830
7371
  });
6831
7372
 
6832
7373
  function System_File_Meta_isTTY($0, $1) {
@@ -6860,7 +7401,7 @@ function System_getEnv($0, $1) {
6860
7401
  function System_getArgs($0) {
6861
7402
  const $12 = n => {
6862
7403
  switch(Prelude_EqOrd_x3e_Ord_Int(n, Number(_truncBigInt32(0n)))) {
6863
- case 1: return Prelude_Interfaces_for({a1: {a1: b => a => func => $1c => Prelude_Types_map_Functor_List(func, $1c), a2: csegen_114(), a3: b => a => f => $23 => $24 => $25 => Prelude_Types_traverse_Traversable_List($23, $24, $25)}, a2: $0.a1.a1}, Prelude_Types_rangeFromTo_Range_x24a({a1: {a1: csegen_458(), a2: $34 => $35 => Prelude_Num_div_Integral_Int($34, $35), a3: $3a => $3b => Prelude_Num_mod_Integral_Int($3a, $3b)}, a2: {a1: csegen_249(), a2: {a1: csegen_458(), a2: $46 => _sub32s(0, $46), a3: $4a => $4b => _sub32s($4a, $4b)}}}, 0, _sub32s(n, 1)), $53 => $0.a2(undefined)($59 => System_prim__getArg($53, $59)));
7404
+ case 1: return Prelude_Interfaces_for({a1: {a1: b => a => func => $1c => Prelude_Types_map_Functor_List(func, $1c), a2: csegen_126(), a3: b => a => f => $23 => $24 => $25 => Prelude_Types_traverse_Traversable_List($23, $24, $25)}, a2: $0.a1.a1}, Prelude_Types_rangeFromTo_Range_x24a({a1: {a1: csegen_486(), a2: $34 => $35 => Prelude_Num_div_Integral_Int($34, $35), a3: $3a => $3b => Prelude_Num_mod_Integral_Int($3a, $3b)}, a2: {a1: csegen_272(), a2: {a1: csegen_486(), a2: $46 => _sub32s(0, $46), a3: $4a => $4b => _sub32s($4a, $4b)}}}, 0, _sub32s(n, 1)), $53 => $0.a2(undefined)($59 => System_prim__getArg($53, $59)));
6864
7405
  case 0: return $0.a1.a1.a2(undefined)({h: 0});
6865
7406
  }
6866
7407
  };
@@ -6886,6 +7427,10 @@ function Help_n__3162_507_subcommand($0, $1) {
6886
7427
  return Help_n__3162_506_maybeDecorate($0, $5 => Text_PrettyPrint_Prettyprinter_Doc_annotate(Text_PrettyPrint_Prettyprinter_Render_Terminal_color(5), Text_PrettyPrint_Prettyprinter_Doc_pretty_Pretty_String($5)), $1);
6887
7428
  }
6888
7429
 
7430
+ function Help_n__3162_510_shell($0, $1) {
7431
+ return Help_n__3162_506_maybeDecorate($0, $5 => Text_PrettyPrint_Prettyprinter_Doc_annotate(Text_PrettyPrint_Prettyprinter_Render_Terminal_italic(), Text_PrettyPrint_Prettyprinter_Doc_pretty_Pretty_String($5)), $1);
7432
+ }
7433
+
6889
7434
  function Help_n__3162_506_maybeDecorate($0, $1, $2) {
6890
7435
  switch($0) {
6891
7436
  case 1: return Text_PrettyPrint_Prettyprinter_Render_Terminal_renderString(Text_PrettyPrint_Prettyprinter_Doc_layoutPretty(Text_PrettyPrint_Prettyprinter_Doc_defaultLayoutOptions(), $1($2)));
@@ -6902,17 +7447,17 @@ function Help_n__3162_508_argument($0, $1) {
6902
7447
  }
6903
7448
 
6904
7449
  function Help_help($0) {
6905
- return Prelude_Types_String_x2bx2b('harmony ', Prelude_Types_String_x2bx2b(Help_n__3162_507_subcommand($0, '<subcommand>'), Prelude_Types_String_x2bx2b('\n\n', Prelude_Types_String_x2bx2b(Help_n__3162_509_heading($0, 'Subcommands'), Prelude_Types_String_x2bx2b(':\n ', Prelude_Types_String_x2bx2b(Help_n__3162_507_subcommand($0, 'help'), Prelude_Types_String_x2bx2b('\n - Print help\n ', Prelude_Types_String_x2bx2b(Help_n__3162_507_subcommand($0, 'sync'), Prelude_Types_String_x2bx2b('\n - Synchronize local config with information from GitHub.\n ', Prelude_Types_String_x2bx2b(Help_n__3162_507_subcommand($0, 'pr'), Prelude_Types_String_x2bx2b('\n - Identify an existing PR or create a new one for the current branch.\n ', Prelude_Types_String_x2bx2b(Help_n__3162_507_subcommand($0, 'reflect'), Prelude_Types_String_x2bx2b('\n - Reflect on the current state of ones own PRs and review requests.\n ', Prelude_Types_String_x2bx2b(Help_n__3162_507_subcommand($0, 'list'), Prelude_Types_String_x2bx2b(' ', Prelude_Types_String_x2bx2b(Help_n__3162_508_argument($0, '<team-slug>'), Prelude_Types_String_x2bx2b('\n - List the members of the given GitHub Team.\n ', Prelude_Types_String_x2bx2b(Help_n__3162_507_subcommand($0, 'graph'), Prelude_Types_String_x2bx2b(' ', Prelude_Types_String_x2bx2b(Help_n__3162_508_argument($0, '<team-slug>'), Prelude_Types_String_x2bx2b('\n - Graph the relative review workload of the members of the given GitHub Team.\n ', Prelude_Types_String_x2bx2b(Help_n__3162_507_subcommand($0, 'assign'), Prelude_Types_String_x2bx2b(' {', Prelude_Types_String_x2bx2b(Help_n__3162_508_argument($0, '<team-slug>'), Prelude_Types_String_x2bx2b(' | ', Prelude_Types_String_x2bx2b(Help_n__3162_508_argument($0, '+<user-login>'), Prelude_Types_String_x2bx2b('} [...]\n - Assign the given team(s) and one lucky member from one of those teams\n to review the PR for the current branch.\n \n Also assign any users with logins specified. You specify these\n additional users by prefixing their logins with \'+\'.\n \n', Prelude_Types_String_x2bx2b(Help_n__3162_509_heading($0, 'Bash Completion'), ':\n You can set up bash completion by adding the following to your resource\n or bash profile:\n \n eval \"$(harmony --bash-completion-script)\"\n \n Zsh users will also need to have the following in their resource or\n zsh profile before the above eval:\n \n autoload -U +X compinit && compinit\n autoload -U +X bashcompinit && bashcompinit\n '))))))))))))))))))))))))))));
7450
+ return Prelude_Types_String_x2bx2b('harmony ', Prelude_Types_String_x2bx2b(Help_n__3162_507_subcommand($0, '<subcommand>'), Prelude_Types_String_x2bx2b('\n\n', Prelude_Types_String_x2bx2b(Help_n__3162_509_heading($0, 'Subcommands'), Prelude_Types_String_x2bx2b(':\n ', Prelude_Types_String_x2bx2b(Help_n__3162_507_subcommand($0, 'help'), Prelude_Types_String_x2bx2b('\n - Print help\n ', Prelude_Types_String_x2bx2b(Help_n__3162_507_subcommand($0, 'sync'), Prelude_Types_String_x2bx2b('\n - Synchronize local config with information from GitHub.\n ', Prelude_Types_String_x2bx2b(Help_n__3162_507_subcommand($0, 'pr'), Prelude_Types_String_x2bx2b('\n - Identify an existing PR or create a new one for the current branch.\n ', Prelude_Types_String_x2bx2b(Help_n__3162_507_subcommand($0, 'contribute'), Prelude_Types_String_x2bx2b('\n - Contribute to an open PR. Prints a URL. Prioritizes PRs you are\n requested to review but will also return other PRs.\n ', Prelude_Types_String_x2bx2b(Help_n__3162_507_subcommand($0, 'reflect'), Prelude_Types_String_x2bx2b('\n - Reflect on the current state of ones own PRs and review requests.\n ', Prelude_Types_String_x2bx2b(Help_n__3162_507_subcommand($0, 'list'), Prelude_Types_String_x2bx2b(' ', Prelude_Types_String_x2bx2b(Help_n__3162_508_argument($0, '<team-slug>'), Prelude_Types_String_x2bx2b('\n - List the members of the given GitHub Team.\n ', Prelude_Types_String_x2bx2b(Help_n__3162_507_subcommand($0, 'graph'), Prelude_Types_String_x2bx2b(' ', Prelude_Types_String_x2bx2b(Help_n__3162_508_argument($0, '<team-slug>'), Prelude_Types_String_x2bx2b('\n - Graph the relative review workload of the members of the given GitHub Team.\n ', Prelude_Types_String_x2bx2b(Help_n__3162_507_subcommand($0, 'assign'), Prelude_Types_String_x2bx2b(' {', Prelude_Types_String_x2bx2b(Help_n__3162_508_argument($0, '<team-slug>'), Prelude_Types_String_x2bx2b(' | ', Prelude_Types_String_x2bx2b(Help_n__3162_508_argument($0, '+<user-login>'), Prelude_Types_String_x2bx2b('} [...]\n - Assign the given team(s) and one lucky member from one of those teams\n to review the PR for the current branch.\n \n Also assign any users with logins specified. You specify these\n additional users by prefixing their logins with \'+\'.\n \n', Prelude_Types_String_x2bx2b(Help_n__3162_509_heading($0, 'Bash Completion'), Prelude_Types_String_x2bx2b(':\n You can set up bash completion by adding the following to your resource\n or bash profile:\n \n ', Prelude_Types_String_x2bx2b(Help_n__3162_510_shell($0, 'eval \"$(harmony --bash-completion-script)\"'), Prelude_Types_String_x2bx2b('\n \n Zsh users will also need to have the following in their resource or\n zsh profile before the above eval:\n \n ', Prelude_Types_String_x2bx2b(Help_n__3162_510_shell($0, 'autoload -U +X compinit && compinit'), Prelude_Types_String_x2bx2b('\n ', Prelude_Types_String_x2bx2b(Help_n__3162_510_shell($0, 'autoload -U +X bashcompinit && bashcompinit'), '\n '))))))))))))))))))))))))))))))))))));
6906
7451
  }
6907
7452
 
6908
- function Config_with__dropPrefixx27x2cdropx27_2587($0, $1, $2) {
7453
+ function Config_with__dropPrefixx27x2cdropx27_2580($0, $1, $2) {
6909
7454
  switch($2.h) {
6910
7455
  case 0: return {a1: $2.a1.a1};
6911
7456
  case 1: return {h: 0};
6912
7457
  }
6913
7458
  }
6914
7459
 
6915
- function Config_case__parseGitHubURIx2cparseSuffix_2637($0, $1, $2) {
7460
+ function Config_case__parseGitHubURIx2cparseSuffix_2630($0, $1, $2) {
6916
7461
  const $f = $10 => {
6917
7462
  switch($10.h) {
6918
7463
  case undefined: {
@@ -6932,27 +7477,27 @@ function Config_case__parseGitHubURIx2cparseSuffix_2637($0, $1, $2) {
6932
7477
  return Prelude_Types_x3ex3ex3d_Monad_Maybe(Prelude_Types_pure_Applicative_Maybe(Data_String_split($a => Prelude_EqOrd_x3dx3d_Eq_Char($a, '/'), $2.a1)), $f);
6933
7478
  }
6934
7479
 
6935
- function Config_n__4251_2737_repo($0, $1, $2, $3) {
6936
- return Prelude_Types_map_Functor_Maybe(csegen_472(), $3);
7480
+ function Config_n__4250_2730_repo($0, $1, $2, $3) {
7481
+ return Prelude_Types_map_Functor_Maybe(csegen_501(), $3);
6937
7482
  }
6938
7483
 
6939
- function Config_n__4142_2622_parseSuffix($0, $1) {
6940
- return Config_case__parseGitHubURIx2cparseSuffix_2637($0, $1, Data_String_break($8 => Prelude_EqOrd_x3dx3d_Eq_Char($8, '.'), $1));
7484
+ function Config_n__4141_2615_parseSuffix($0, $1) {
7485
+ return Config_case__parseGitHubURIx2cparseSuffix_2630($0, $1, Data_String_break($8 => Prelude_EqOrd_x3dx3d_Eq_Char($8, '.'), $1));
6941
7486
  }
6942
7487
 
6943
- function Config_n__4142_2624_parseSSH($0, $1) {
6944
- return Prelude_Interfaces_x3ex3dx3e(csegen_486(), $6 => Config_dropPrefixx27('git@github.com:', $6), $b => Config_n__4142_2622_parseSuffix($0, $b), $1);
7488
+ function Config_n__4141_2617_parseSSH($0, $1) {
7489
+ return Prelude_Interfaces_x3ex3dx3e(csegen_515(), $6 => Config_dropPrefixx27('git@github.com:', $6), $b => Config_n__4141_2615_parseSuffix($0, $b), $1);
6945
7490
  }
6946
7491
 
6947
- function Config_n__4142_2623_parseHTTPS($0, $1) {
6948
- return Prelude_Interfaces_x3ex3dx3e(csegen_486(), $6 => Config_dropPrefixx27('https://github/com/', $6), $b => Config_n__4142_2622_parseSuffix($0, $b), $1);
7492
+ function Config_n__4141_2616_parseHTTPS($0, $1) {
7493
+ return Prelude_Interfaces_x3ex3dx3e(csegen_515(), $6 => Config_dropPrefixx27('https://github/com/', $6), $b => Config_n__4141_2615_parseSuffix($0, $b), $1);
6949
7494
  }
6950
7495
 
6951
- function Config_n__4251_2736_org($0, $1, $2, $3) {
6952
- return Prelude_Types_map_Functor_Maybe(csegen_489(), $3);
7496
+ function Config_n__4250_2729_org($0, $1, $2, $3) {
7497
+ return Prelude_Types_map_Functor_Maybe(csegen_518(), $3);
6953
7498
  }
6954
7499
 
6955
- function Config_n__4251_2735_orIfEmpty($0, $1, $2, $3, $4) {
7500
+ function Config_n__4250_2728_orIfEmpty($0, $1, $2, $3, $4) {
6956
7501
  switch($3.h) {
6957
7502
  case 0: return $4;
6958
7503
  case undefined: {
@@ -6964,21 +7509,21 @@ function Config_n__4251_2735_orIfEmpty($0, $1, $2, $3, $4) {
6964
7509
  }
6965
7510
  }
6966
7511
 
6967
- function Config_n__4013_2499_oneDayAgo($0, $1, $2) {
7512
+ function Config_n__4019_2499_oneDayAgo($0, $1, $2) {
6968
7513
  const $3 = 86400n;
6969
7514
  return $2.a1.a2(undefined)(undefined)(System_time($2))(now => $2.a1.a1.a2(undefined)(Prelude_Cast_cast_Cast_Integer_Bits32((now-$3))));
6970
7515
  }
6971
7516
 
6972
- function Config_n__4251_2738_enterForDefaultStr($0, $1, $2, $3) {
7517
+ function Config_n__4250_2731_enterForDefaultStr($0, $1, $2, $3) {
6973
7518
  return Prelude_Types_String_x2bx2b(' (ENTER for default: ', Prelude_Types_String_x2bx2b($3, ')'));
6974
7519
  }
6975
7520
 
6976
- function Config_n__4106_2583_dropx27($0, $1) {
6977
- return Config_with__dropPrefixx27x2cdropx27_2587($0, $1, Data_List_PrefixSuffix_dropPrefix($8 => $9 => Decidable_Equality_decEq_DecEq_Char($8, $9), Prelude_Types_fastUnpack($0), $1));
7521
+ function Config_n__4105_2576_dropx27($0, $1) {
7522
+ return Config_with__dropPrefixx27x2cdropx27_2580($0, $1, Data_List_PrefixSuffix_dropPrefix($8 => $9 => Decidable_Equality_decEq_DecEq_Char($8, $9), Prelude_Types_fastUnpack($0), $1));
6978
7523
  }
6979
7524
 
6980
- function Config_n__4251_2739_defaultStr($0, $1, $2, $3, $4) {
6981
- return Data_Maybe_fromMaybe(() => '', Prelude_Types_map_Functor_Maybe($a => Config_n__4251_2738_enterForDefaultStr($0, $1, $2, $3($a)), $4));
7525
+ function Config_n__4250_2732_defaultStr($0, $1, $2, $3, $4) {
7526
+ return Data_Maybe_fromMaybe(() => '', Prelude_Types_map_Functor_Maybe($a => Config_n__4250_2731_enterForDefaultStr($0, $1, $2, $3($a)), $4));
6982
7527
  }
6983
7528
 
6984
7529
  function Config_show_Show_ConfigError($0) {
@@ -6995,17 +7540,17 @@ function Config_writeConfig($0, $1, $2) {
6995
7540
  case 0: return Data_Promise_reject(Prelude_Types_String_x2bx2b('Failed to write updated config file to ', Prelude_Types_String_x2bx2b(Data_Config_rf__filepath($0), Prelude_Types_String_x2bx2b(': ', Prelude_Types_String_x2bx2b(System_File_Error_show_Show_FileError(res.a1), '.')))), $13, $14);
6996
7541
  }
6997
7542
  };
6998
- return Data_Promise_x3ex3ex3d_Monad_Promise(System_File_ReadWrite_writeFile(csegen_74(), Data_Config_rf__filepath($0), Language_JSON_Data_format(0n, 2n, Data_Config_json($0))), $12, $1, $2);
7543
+ return Data_Promise_x3ex3ex3d_Monad_Promise(System_File_ReadWrite_writeFile(csegen_20(), Data_Config_rf__filepath($0), Language_JSON_Data_format(0n, 2n, Data_Config_json($0))), $12, $1, $2);
6999
7544
  }
7000
7545
 
7001
7546
  function Config_syncIfOld($0, $1, $2, $3) {
7002
- const $b = $c => {
7547
+ const $b = $c => $d => {
7003
7548
  switch(Prelude_EqOrd_x3c_Ord_Bits32($1.a1, $c)) {
7004
- case 1: return Prelude_Interfaces_x3ex3e(csegen_71(), Prelude_IO_putStrLn(csegen_74(), 'Syncing config file...'), () => $1b => $1c => Config_syncConfig($1, $0, 0, $1b, $1c));
7005
- case 0: return $23 => $24 => Data_Promise_pure_Applicative_Promise($1, $23, $24);
7549
+ case 1: return $13 => Config_syncConfig($1, $0, 0, $d, $13);
7550
+ case 0: return $1a => Data_Promise_pure_Applicative_Promise($1, $d, $1a);
7006
7551
  }
7007
7552
  };
7008
- return Data_Promise_x3ex3ex3d_Monad_Promise(Config_n__4013_2499_oneDayAgo($0, $1, csegen_74()), $b, $2, $3);
7553
+ return Data_Promise_x3ex3ex3d_Monad_Promise(Config_n__4019_2499_oneDayAgo($0, $1, csegen_20()), $b, $2, $3);
7009
7554
  }
7010
7555
 
7011
7556
  function Config_syncConfig($0, $1, $2, $3, $4) {
@@ -7013,9 +7558,9 @@ function Config_syncConfig($0, $1, $2, $3, $4) {
7013
7558
  const $14 = orgMembers => $15 => $16 => {
7014
7559
  const $1a = updatedAt => {
7015
7560
  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};
7016
- return Prelude_Interfaces_x3ex3e(csegen_71(), $2a => $2b => Config_writeConfig($1b, $2a, $2b), () => Prelude_Interfaces_x3ex3e(csegen_71(), Prelude_Interfaces_when(csegen_59(), $2, () => Prelude_Interfaces_x3ex3e(csegen_71(), Prelude_IO_putStrLn(csegen_74(), 'Your updated configuration is:'), () => Prelude_IO_printLn(csegen_497(), $0))), () => $48 => $49 => Data_Promise_pure_Applicative_Promise($1b, $48, $49)));
7561
+ return Prelude_Interfaces_x3ex3e(csegen_17(), $2a => $2b => Config_writeConfig($1b, $2a, $2b), () => Prelude_Interfaces_x3ex3e(csegen_17(), Prelude_Interfaces_when(csegen_11(), $2, () => Prelude_Interfaces_x3ex3e(csegen_17(), Prelude_IO_putStrLn(csegen_20(), 'Your updated configuration is:'), () => Prelude_IO_printLn(csegen_525(), $0))), () => $48 => $49 => Data_Promise_pure_Applicative_Promise($1b, $48, $49)));
7017
7562
  };
7018
- return Data_Promise_x3ex3ex3d_Monad_Promise(csegen_493(), $1a, $15, $16);
7563
+ return Data_Promise_x3ex3ex3d_Monad_Promise(csegen_521(), $1a, $15, $16);
7019
7564
  };
7020
7565
  return Data_Promise_x3ex3ex3d_Monad_Promise(FFI_GitHub_listOrgMembers($1, $0.a2), $14, $c, $d);
7021
7566
  };
@@ -7023,7 +7568,7 @@ function Config_syncConfig($0, $1, $2, $3, $4) {
7023
7568
  }
7024
7569
 
7025
7570
  function Config_parseGitHubURI($0) {
7026
- return Prelude_Types_x3cx7cx3e_Alternative_Maybe(Config_n__4142_2623_parseHTTPS($0, $0), () => Config_n__4142_2624_parseSSH($0, $0));
7571
+ return Prelude_Types_x3cx7cx3e_Alternative_Maybe(Config_n__4141_2616_parseHTTPS($0, $0), () => Config_n__4141_2617_parseSSH($0, $0));
7027
7572
  }
7028
7573
 
7029
7574
  function Config_loadOrCreateConfig($0, $1, $2, $3, $4) {
@@ -7043,7 +7588,7 @@ function Config_loadOrCreateConfig($0, $1, $2, $3, $4) {
7043
7588
  }
7044
7589
  }
7045
7590
  };
7046
- return Data_Promise_x3ex3ex3d_Monad_Promise(Config_loadConfig(csegen_74(), $2), $b, $3, $4);
7591
+ return Data_Promise_x3ex3ex3d_Monad_Promise(Config_loadConfig(csegen_20(), $2), $b, $3, $4);
7047
7592
  }
7048
7593
 
7049
7594
  function Config_loadConfig($0, $1) {
@@ -7066,14 +7611,14 @@ function Config_loadConfig($0, $1) {
7066
7611
  }
7067
7612
  };
7068
7613
  const $b = {a1: $c, a2: a => $14 => ({h: 1, a1: $14}), a3: $16};
7069
- const $a = {a1: $b, a2: csegen_233(), a3: csegen_234()};
7614
+ const $a = {a1: $b, a2: csegen_256(), a3: csegen_257()};
7070
7615
  const $25 = b => a => func => $26 => {
7071
7616
  switch($26.h) {
7072
7617
  case 0: return {h: 0, a1: $26.a1};
7073
7618
  case 1: return {h: 1, a1: func($26.a1)};
7074
7619
  }
7075
7620
  };
7076
- const $24 = {a1: $25, a2: csegen_432(), a3: csegen_436()};
7621
+ const $24 = {a1: $25, a2: csegen_460(), a3: csegen_464()};
7077
7622
  const $9 = {a1: $a, a2: $24};
7078
7623
  const $6 = {a1: $0.a1, a2: $9};
7079
7624
  return Prelude_Interfaces_Monad_x3ex3ex3d_Monad_Composex28x28x2ex20x24mx29x20x24tx29($6, $3, $4);
@@ -7133,17 +7678,17 @@ function Config_findConfig($0, $1, $2) {
7133
7678
  }
7134
7679
 
7135
7680
  function Config_dropPrefixx27($0, $1) {
7136
- return Prelude_Types_map_Functor_Maybe($4 => Prelude_Types_fastPack($4), Config_n__4106_2583_dropx27($0, Prelude_Types_fastUnpack($1)));
7681
+ return Prelude_Types_map_Functor_Maybe($4 => Prelude_Types_fastPack($4), Config_n__4105_2576_dropx27($0, Prelude_Types_fastUnpack($1)));
7137
7682
  }
7138
7683
 
7139
7684
  function Config_createConfig($0, $1, $2) {
7140
- return Prelude_Interfaces_x3ex3e(csegen_71(), Prelude_IO_putStrLn(csegen_74(), Prelude_Types_String_x2bx2b('Creating a new configuration (storing in ', Prelude_Types_String_x2bx2b(Data_Config_filename(), ')...'))), () => $13 => $14 => {
7685
+ return Prelude_Interfaces_x3ex3e(csegen_17(), Prelude_IO_putStrLn(csegen_20(), Prelude_Types_String_x2bx2b('Creating a new configuration (storing in ', Prelude_Types_String_x2bx2b(Data_Config_filename(), ')...'))), () => $13 => $14 => {
7141
7686
  const $33 = defaultOrgAndRepo => {
7142
- const $34 = Config_n__4251_2739_defaultStr($0, $1, $2, csegen_489(), defaultOrgAndRepo);
7143
- return Prelude_Interfaces_x3ex3e(csegen_71(), Prelude_IO_putStrLn(csegen_74(), Prelude_Types_String_x2bx2b('What GitHub org would you like to use harmony for', Prelude_Types_String_x2bx2b($34, '?'))), () => $4b => $4c => {
7687
+ const $34 = Config_n__4250_2732_defaultStr($0, $1, $2, csegen_518(), defaultOrgAndRepo);
7688
+ return Prelude_Interfaces_x3ex3e(csegen_17(), Prelude_IO_putStrLn(csegen_20(), Prelude_Types_String_x2bx2b('What GitHub org would you like to use harmony for', Prelude_Types_String_x2bx2b($34, '?'))), () => $4b => $4c => {
7144
7689
  const $63 = org => {
7145
- const $64 = Config_n__4251_2739_defaultStr($0, $1, $2, csegen_472(), defaultOrgAndRepo);
7146
- return Prelude_Interfaces_x3ex3e(csegen_71(), Prelude_IO_putStrLn(csegen_74(), Prelude_Types_String_x2bx2b('What repository would you like to use harmony for', Prelude_Types_String_x2bx2b($64, '?'))), () => $7b => $7c => Data_Promise_x3ex3ex3d_Monad_Promise(Prelude_Interfaces_x3cx24x3e(csegen_41(), $83 => Config_n__4251_2735_orIfEmpty($0, $1, $2, Config_n__4251_2737_repo($0, $1, $2, defaultOrgAndRepo), Data_String_trim($83)), csegen_366()), repo => Prelude_Interfaces_x3ex3e(csegen_71(), Prelude_IO_putStrLn(csegen_74(), 'Creating config...'), () => $9d => $9e => {
7690
+ const $64 = Config_n__4250_2732_defaultStr($0, $1, $2, csegen_501(), defaultOrgAndRepo);
7691
+ return Prelude_Interfaces_x3ex3e(csegen_17(), Prelude_IO_putStrLn(csegen_20(), Prelude_Types_String_x2bx2b('What repository would you like to use harmony for', Prelude_Types_String_x2bx2b($64, '?'))), () => $7b => $7c => Data_Promise_x3ex3ex3d_Monad_Promise(Prelude_Interfaces_x3cx24x3e(csegen_64(), $83 => Config_n__4250_2728_orIfEmpty($0, $1, $2, Config_n__4250_2730_repo($0, $1, $2, defaultOrgAndRepo), Data_String_trim($83)), csegen_389()), repo => Prelude_Interfaces_x3ex3e(csegen_17(), Prelude_IO_putStrLn(csegen_20(), 'Creating config...'), () => $9d => $9e => {
7147
7692
  const $a9 = mainBranch => $aa => $ab => {
7148
7693
  const $af = updatedAt => {
7149
7694
  const $b0 = {a1: Prelude_Types_String_x2bx2b('./', Data_Config_filename()), a2: $2};
@@ -7151,22 +7696,22 @@ function Config_createConfig($0, $1, $2) {
7151
7696
  const $be = teamSlugs => $bf => $c0 => {
7152
7697
  const $c6 = orgMembers => {
7153
7698
  const $c7 = {a1: updatedAt, a2: org, a3: repo, a4: mainBranch, a5: 1, a6: 1, a7: teamSlugs, a8: orgMembers, a9: $b0};
7154
- return Prelude_Interfaces_x3ex3e(csegen_71(), $d5 => $d6 => Config_writeConfig($c7, $d5, $d6), () => Prelude_Interfaces_x3ex3e(csegen_71(), Prelude_IO_putStrLn(csegen_74(), 'Your new configuration is:'), () => Prelude_Interfaces_x3ex3e(csegen_71(), Prelude_IO_printLn(csegen_497(), $c7), () => $ee => $ef => Data_Promise_pure_Applicative_Promise($c7, $ee, $ef))));
7699
+ return Prelude_Interfaces_x3ex3e(csegen_17(), $d5 => $d6 => Config_writeConfig($c7, $d5, $d6), () => Prelude_Interfaces_x3ex3e(csegen_17(), Prelude_IO_putStrLn(csegen_20(), 'Your new configuration is:'), () => Prelude_Interfaces_x3ex3e(csegen_17(), Prelude_IO_printLn(csegen_525(), $c7), () => $ee => $ef => Data_Promise_pure_Applicative_Promise($c7, $ee, $ef))));
7155
7700
  };
7156
7701
  return Data_Promise_x3ex3ex3d_Monad_Promise(FFI_GitHub_listOrgMembers($1, org), $c6, $bf, $c0);
7157
7702
  };
7158
7703
  return Data_Promise_x3ex3ex3d_Monad_Promise(FFI_GitHub_listTeams($1, org), $be, $b7, $b8);
7159
7704
  };
7160
7705
  };
7161
- return Data_Promise_x3ex3ex3d_Monad_Promise(csegen_493(), $af, $aa, $ab);
7706
+ return Data_Promise_x3ex3ex3d_Monad_Promise(csegen_521(), $af, $aa, $ab);
7162
7707
  };
7163
7708
  return Data_Promise_x3ex3ex3d_Monad_Promise($a1 => $a2 => FFI_GitHub_getRepoDefaultBranch($1, org, repo, $a1, $a2), $a9, $9d, $9e);
7164
7709
  }), $7b, $7c));
7165
7710
  };
7166
- return Data_Promise_x3ex3ex3d_Monad_Promise(Prelude_Interfaces_x3cx24x3e(csegen_41(), $53 => Config_n__4251_2735_orIfEmpty($0, $1, $2, Config_n__4251_2736_org($0, $1, $2, defaultOrgAndRepo), Data_String_trim($53)), csegen_366()), $63, $4b, $4c);
7711
+ return Data_Promise_x3ex3ex3d_Monad_Promise(Prelude_Interfaces_x3cx24x3e(csegen_64(), $53 => Config_n__4250_2728_orIfEmpty($0, $1, $2, Config_n__4250_2729_org($0, $1, $2, defaultOrgAndRepo), Data_String_trim($53)), csegen_389()), $63, $4b, $4c);
7167
7712
  });
7168
7713
  };
7169
- return Data_Promise_x3ex3ex3d_Monad_Promise($17 => $18 => Data_Promise_x3cx7cx3e_Alternative_Promise(Prelude_Interfaces_x3cx24x3e(csegen_41(), $1f => Config_parseGitHubURI($1f), $23 => $24 => FFI_Git_remoteURI($0, 'origin', $23, $24)), () => $2b => $2c => Data_Promise_pure_Applicative_Promise({h: 0}, $2b, $2c), $17, $18), $33, $13, $14);
7714
+ return Data_Promise_x3ex3ex3d_Monad_Promise($17 => $18 => Data_Promise_x3cx7cx3e_Alternative_Promise(Prelude_Interfaces_x3cx24x3e(csegen_64(), $1f => Config_parseGitHubURI($1f), $23 => $24 => FFI_Git_remoteURI($0, 'origin', $23, $24)), () => $2b => $2c => Data_Promise_pure_Applicative_Promise({h: 0}, $2b, $2c), $17, $18), $33, $13, $14);
7170
7715
  });
7171
7716
  }
7172
7717
 
@@ -7208,9 +7753,9 @@ function Data_List_PrefixSuffix_dropPrefix($0, $1, $2) {
7208
7753
  }
7209
7754
  }
7210
7755
 
7211
- function BashCompletion_n__2916_497_slugsOrLogins($0, $1, $2) {
7756
+ function BashCompletion_n__2921_510_slugsOrLogins($0, $1, $2) {
7212
7757
  switch(Data_String_isPrefixOf('+', $1)) {
7213
- case 1: return Prelude_Interfaces_x3cx24x3e(csegen_62(), $b => Prelude_Types_strCons('+', $b), $2.a8);
7758
+ case 1: return Prelude_Interfaces_x3cx24x3e(csegen_76(), $b => Prelude_Types_strCons('+', $b), $2.a8);
7214
7759
  case 0: return $2.a7;
7215
7760
  }
7216
7761
  }
@@ -7228,6 +7773,7 @@ function BashCompletion_opts($0, $1, $2) {
7228
7773
  switch($2) {
7229
7774
  case 'harmony': return Data_List_filter($9 => Data_String_isPrefixOf($1, $9), BashCompletion_allRootCmds());
7230
7775
  case 'pr': return {h: 0};
7776
+ case 'contribute': return {h: 0};
7231
7777
  case 'sync': return {h: 0};
7232
7778
  case 'help': return {h: 0};
7233
7779
  case '--help': return {h: 0};
@@ -7243,7 +7789,7 @@ function BashCompletion_opts($0, $1, $2) {
7243
7789
  default: {
7244
7790
  switch($1) {
7245
7791
  case '--': return $0.a7;
7246
- default: return Data_List_filter($1f => Data_String_isPrefixOf($1, $1f), BashCompletion_n__2916_497_slugsOrLogins($2, $1, $0));
7792
+ default: return Data_List_filter($1f => Data_String_isPrefixOf($1, $1f), BashCompletion_n__2921_510_slugsOrLogins($2, $1, $0));
7247
7793
  }
7248
7794
  }
7249
7795
  }
@@ -7256,7 +7802,7 @@ function BashCompletion_opts($0, $1, $2) {
7256
7802
  default: {
7257
7803
  switch($1) {
7258
7804
  case '--': return $0.a7;
7259
- default: return Data_List_filter($35 => Data_String_isPrefixOf($1, $35), BashCompletion_n__2916_497_slugsOrLogins($2, $1, $0));
7805
+ default: return Data_List_filter($35 => Data_String_isPrefixOf($1, $35), BashCompletion_n__2921_510_slugsOrLogins($2, $1, $0));
7260
7806
  }
7261
7807
  }
7262
7808
  }
@@ -7271,6 +7817,7 @@ function BashCompletion_opts($0, $1, $2) {
7271
7817
  switch($2) {
7272
7818
  case 'harmony': return Data_List_filter($41 => Data_String_isPrefixOf($1, $41), BashCompletion_allRootCmds());
7273
7819
  case 'pr': return {h: 0};
7820
+ case 'contribute': return {h: 0};
7274
7821
  case 'sync': return {h: 0};
7275
7822
  case 'help': return {h: 0};
7276
7823
  case '--help': return {h: 0};
@@ -7286,7 +7833,7 @@ function BashCompletion_opts($0, $1, $2) {
7286
7833
  default: {
7287
7834
  switch($1) {
7288
7835
  case '--': return $0.a7;
7289
- default: return Data_List_filter($57 => Data_String_isPrefixOf($1, $57), BashCompletion_n__2916_497_slugsOrLogins($2, $1, $0));
7836
+ default: return Data_List_filter($57 => Data_String_isPrefixOf($1, $57), BashCompletion_n__2921_510_slugsOrLogins($2, $1, $0));
7290
7837
  }
7291
7838
  }
7292
7839
  }
@@ -7299,7 +7846,7 @@ function BashCompletion_opts($0, $1, $2) {
7299
7846
  default: {
7300
7847
  switch($1) {
7301
7848
  case '--': return $0.a7;
7302
- default: return Data_List_filter($6d => Data_String_isPrefixOf($1, $6d), BashCompletion_n__2916_497_slugsOrLogins($2, $1, $0));
7849
+ default: return Data_List_filter($6d => Data_String_isPrefixOf($1, $6d), BashCompletion_n__2921_510_slugsOrLogins($2, $1, $0));
7303
7850
  }
7304
7851
  }
7305
7852
  }
@@ -7312,7 +7859,7 @@ function BashCompletion_opts($0, $1, $2) {
7312
7859
  }
7313
7860
 
7314
7861
  const BashCompletion_allRootCmds = __lazy(function () {
7315
- return {a1: 'assign', a2: {a1: 'graph', a2: {a1: 'help', a2: {a1: 'list', a2: {a1: 'pr', a2: {a1: 'reflect', a2: {a1: 'sync', a2: {h: 0}}}}}}}};
7862
+ return {a1: 'assign', a2: {a1: 'contribute', a2: {a1: 'graph', a2: {a1: 'help', a2: {a1: 'list', a2: {a1: 'pr', a2: {a1: 'reflect', a2: {a1: 'sync', a2: {h: 0}}}}}}}}};
7316
7863
  });
7317
7864
 
7318
7865