elm-pages 3.0.27 → 3.0.28
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -2
- package/codegen/elm-pages-codegen.cjs +927 -570
- package/generator/review/elm.json +1 -1
- package/generator/src/compatibility-key.js +2 -2
- package/generator/src/render.js +194 -53
- package/generator/template/elm.json +1 -1
- package/generator/template/script/elm.json +1 -1
- package/package.json +1 -1
- package/src/BackendTask/Stream.elm +52 -37
- package/src/Pages/Internal/Platform/CompatibilityKey.elm +1 -1
- package/src/Pages/Script.elm +73 -2
|
@@ -1458,7 +1458,7 @@ function _Json_runHelp(decoder, value)
|
|
|
1458
1458
|
// TODO test perf of Object.keys and switch when support is good enough
|
|
1459
1459
|
for (var key in value)
|
|
1460
1460
|
{
|
|
1461
|
-
if (
|
|
1461
|
+
if (Object.prototype.hasOwnProperty.call(value, key))
|
|
1462
1462
|
{
|
|
1463
1463
|
var result = _Json_runHelp(decoder.b, value[key]);
|
|
1464
1464
|
if (!$elm$core$Result$isOk(result))
|
|
@@ -1627,7 +1627,11 @@ function _Json_emptyObject() { return {}; }
|
|
|
1627
1627
|
|
|
1628
1628
|
var _Json_addField = F3(function(key, value, object)
|
|
1629
1629
|
{
|
|
1630
|
-
|
|
1630
|
+
var unwrapped = _Json_unwrap(value);
|
|
1631
|
+
if (!(key === 'toJSON' && typeof unwrapped === 'function'))
|
|
1632
|
+
{
|
|
1633
|
+
object[key] = unwrapped;
|
|
1634
|
+
}
|
|
1631
1635
|
return object;
|
|
1632
1636
|
});
|
|
1633
1637
|
|
|
@@ -3160,11 +3164,13 @@ var $mdgriffith$elm_codegen$Internal$Compiler$uniqueHelp = F2($mdgriffith$elm_co
|
|
|
3160
3164
|
var $mdgriffith$elm_codegen$Internal$Compiler$unique = function (list) {
|
|
3161
3165
|
return $mdgriffith$elm_codegen$Internal$Compiler$uniqueHelp$(list, _List_Nil);
|
|
3162
3166
|
};
|
|
3163
|
-
var $mdgriffith$elm_codegen$Internal$Compiler$getGenerics = function (_v0) {
|
|
3167
|
+
var $mdgriffith$elm_codegen$Internal$Compiler$getGenerics$ = function (index, _v0) {
|
|
3164
3168
|
var details = _v0.a;
|
|
3165
3169
|
return $mdgriffith$elm_codegen$Internal$Compiler$unique(
|
|
3166
|
-
$mdgriffith$elm_codegen$Internal$Compiler$getGenericsHelper(
|
|
3170
|
+
$mdgriffith$elm_codegen$Internal$Compiler$getGenericsHelper(
|
|
3171
|
+
details.annotation(index)));
|
|
3167
3172
|
};
|
|
3173
|
+
var $mdgriffith$elm_codegen$Internal$Compiler$getGenerics = F2($mdgriffith$elm_codegen$Internal$Compiler$getGenerics$);
|
|
3168
3174
|
var $elm$core$Dict$Black = {$: 'Black'};
|
|
3169
3175
|
var $elm$core$Dict$RBNode_elm_builtin$ = function (a, b, c, d, e) {
|
|
3170
3176
|
return {$: 'RBNode_elm_builtin', a: a, b: b, c: c, d: d, e: e};
|
|
@@ -3270,17 +3276,17 @@ var $elm$core$Dict$insert$ = function (key, value, dict) {
|
|
|
3270
3276
|
}
|
|
3271
3277
|
};
|
|
3272
3278
|
var $elm$core$Dict$insert = F3($elm$core$Dict$insert$);
|
|
3273
|
-
var $mdgriffith$elm_codegen$Internal$Compiler$addAlias$ = function (mod, name, ann, aliasCache) {
|
|
3279
|
+
var $mdgriffith$elm_codegen$Internal$Compiler$addAlias$ = function (mod, name, index, ann, aliasCache) {
|
|
3274
3280
|
var annDetails = ann.a;
|
|
3275
3281
|
return $elm$core$Dict$insert$(
|
|
3276
3282
|
$mdgriffith$elm_codegen$Internal$Compiler$formatAliasKey$(mod, name),
|
|
3277
3283
|
{
|
|
3278
|
-
target: annDetails.annotation,
|
|
3279
|
-
variables: $mdgriffith$elm_codegen$Internal$Compiler$getGenerics(ann)
|
|
3284
|
+
target: annDetails.annotation(index),
|
|
3285
|
+
variables: $mdgriffith$elm_codegen$Internal$Compiler$getGenerics$(index, ann)
|
|
3280
3286
|
},
|
|
3281
3287
|
aliasCache);
|
|
3282
3288
|
};
|
|
3283
|
-
var $mdgriffith$elm_codegen$Internal$Compiler$addAlias =
|
|
3289
|
+
var $mdgriffith$elm_codegen$Internal$Compiler$addAlias = F5($mdgriffith$elm_codegen$Internal$Compiler$addAlias$);
|
|
3284
3290
|
var $elm$core$String$length = _String_length;
|
|
3285
3291
|
var $elm$core$String$slice = _String_slice;
|
|
3286
3292
|
var $elm$core$String$dropLeft$ = function (n, string) {
|
|
@@ -3302,18 +3308,20 @@ var $mdgriffith$elm_codegen$Internal$Format$formatType = function (str) {
|
|
|
3302
3308
|
$elm$core$String$left$(1, str)),
|
|
3303
3309
|
$elm$core$String$dropLeft$(1, str));
|
|
3304
3310
|
};
|
|
3305
|
-
var $mdgriffith$elm_codegen$Internal$Compiler$getAliases = function (_v0) {
|
|
3311
|
+
var $mdgriffith$elm_codegen$Internal$Compiler$getAliases$ = function (index, _v0) {
|
|
3306
3312
|
var ann = _v0.a;
|
|
3307
|
-
return ann.aliases;
|
|
3313
|
+
return ann.aliases(index);
|
|
3308
3314
|
};
|
|
3315
|
+
var $mdgriffith$elm_codegen$Internal$Compiler$getAliases = F2($mdgriffith$elm_codegen$Internal$Compiler$getAliases$);
|
|
3309
3316
|
var $mdgriffith$elm_codegen$Internal$Compiler$getAnnotationImports = function (_v0) {
|
|
3310
3317
|
var details = _v0.a;
|
|
3311
3318
|
return details.imports;
|
|
3312
3319
|
};
|
|
3313
|
-
var $mdgriffith$elm_codegen$Internal$Compiler$getInnerAnnotation = function (_v0) {
|
|
3320
|
+
var $mdgriffith$elm_codegen$Internal$Compiler$getInnerAnnotation$ = function (index, _v0) {
|
|
3314
3321
|
var details = _v0.a;
|
|
3315
|
-
return details.annotation;
|
|
3322
|
+
return details.annotation(index);
|
|
3316
3323
|
};
|
|
3324
|
+
var $mdgriffith$elm_codegen$Internal$Compiler$getInnerAnnotation = F2($mdgriffith$elm_codegen$Internal$Compiler$getInnerAnnotation$);
|
|
3317
3325
|
var $elm$core$Dict$foldl$ = function (func, acc, dict) {
|
|
3318
3326
|
foldl:
|
|
3319
3327
|
while (true) {
|
|
@@ -3357,28 +3365,36 @@ var $mdgriffith$elm_codegen$Internal$Compiler$nodify = function (exp) {
|
|
|
3357
3365
|
var $mdgriffith$elm_codegen$Elm$Annotation$alias$ = function (mod, name, vars, target) {
|
|
3358
3366
|
return $mdgriffith$elm_codegen$Internal$Compiler$Annotation(
|
|
3359
3367
|
{
|
|
3360
|
-
aliases:
|
|
3361
|
-
|
|
3362
|
-
|
|
3363
|
-
|
|
3364
|
-
|
|
3365
|
-
|
|
3366
|
-
|
|
3367
|
-
|
|
3368
|
-
|
|
3369
|
-
|
|
3370
|
-
|
|
3371
|
-
|
|
3372
|
-
|
|
3373
|
-
|
|
3374
|
-
|
|
3375
|
-
|
|
3376
|
-
|
|
3377
|
-
|
|
3378
|
-
|
|
3379
|
-
|
|
3380
|
-
|
|
3381
|
-
|
|
3368
|
+
aliases: function (index) {
|
|
3369
|
+
return $mdgriffith$elm_codegen$Internal$Compiler$addAlias$(
|
|
3370
|
+
mod,
|
|
3371
|
+
name,
|
|
3372
|
+
index,
|
|
3373
|
+
target,
|
|
3374
|
+
$elm$core$List$foldl$(
|
|
3375
|
+
F2(
|
|
3376
|
+
function (ann, aliases) {
|
|
3377
|
+
return A2(
|
|
3378
|
+
$mdgriffith$elm_codegen$Internal$Compiler$mergeAliases,
|
|
3379
|
+
$mdgriffith$elm_codegen$Internal$Compiler$getAliases$(index, ann),
|
|
3380
|
+
aliases);
|
|
3381
|
+
}),
|
|
3382
|
+
$mdgriffith$elm_codegen$Internal$Compiler$getAliases$(index, target),
|
|
3383
|
+
vars));
|
|
3384
|
+
},
|
|
3385
|
+
annotation: function (index) {
|
|
3386
|
+
return $stil4m$elm_syntax$Elm$Syntax$TypeAnnotation$Typed$(
|
|
3387
|
+
$mdgriffith$elm_codegen$Internal$Compiler$nodify(
|
|
3388
|
+
_Utils_Tuple2(
|
|
3389
|
+
mod,
|
|
3390
|
+
$mdgriffith$elm_codegen$Internal$Format$formatType(name))),
|
|
3391
|
+
$elm$core$List$map$(
|
|
3392
|
+
A2(
|
|
3393
|
+
$elm$core$Basics$composeL,
|
|
3394
|
+
$mdgriffith$elm_codegen$Internal$Compiler$nodify,
|
|
3395
|
+
$mdgriffith$elm_codegen$Internal$Compiler$getInnerAnnotation(index)),
|
|
3396
|
+
vars));
|
|
3397
|
+
},
|
|
3382
3398
|
imports: function () {
|
|
3383
3399
|
if (!mod.b) {
|
|
3384
3400
|
return $elm$core$List$concatMap$($mdgriffith$elm_codegen$Internal$Compiler$getAnnotationImports, vars);
|
|
@@ -3396,32 +3412,57 @@ var $author$project$Gen$Html$moduleName_ = _List_fromArray(
|
|
|
3396
3412
|
['Html']);
|
|
3397
3413
|
var $elm$core$Dict$empty = $elm$core$Dict$RBEmpty_elm_builtin;
|
|
3398
3414
|
var $mdgriffith$elm_codegen$Internal$Compiler$emptyAliases = $elm$core$Dict$empty;
|
|
3399
|
-
var $mdgriffith$elm_codegen$Elm$Annotation$getAliases = function (_v0) {
|
|
3415
|
+
var $mdgriffith$elm_codegen$Elm$Annotation$getAliases$ = function (index, _v0) {
|
|
3400
3416
|
var ann = _v0.a;
|
|
3401
|
-
return ann.aliases;
|
|
3417
|
+
return ann.aliases(index);
|
|
3418
|
+
};
|
|
3419
|
+
var $mdgriffith$elm_codegen$Elm$Annotation$getAliases = F2($mdgriffith$elm_codegen$Elm$Annotation$getAliases$);
|
|
3420
|
+
var $mdgriffith$elm_codegen$Internal$Index$getImport$ = function (_v0, importedAs) {
|
|
3421
|
+
var maybeModName = _v0.a;
|
|
3422
|
+
if (maybeModName.$ === 'Just') {
|
|
3423
|
+
var modName = maybeModName.a;
|
|
3424
|
+
return _Utils_eq(modName, importedAs) ? _List_Nil : importedAs;
|
|
3425
|
+
} else {
|
|
3426
|
+
return importedAs;
|
|
3427
|
+
}
|
|
3428
|
+
};
|
|
3429
|
+
var $mdgriffith$elm_codegen$Internal$Index$getImport = F2($mdgriffith$elm_codegen$Internal$Index$getImport$);
|
|
3430
|
+
var $elm$core$List$isEmpty = function (xs) {
|
|
3431
|
+
if (!xs.b) {
|
|
3432
|
+
return true;
|
|
3433
|
+
} else {
|
|
3434
|
+
return false;
|
|
3435
|
+
}
|
|
3402
3436
|
};
|
|
3403
3437
|
var $mdgriffith$elm_codegen$Internal$Compiler$nodifyAll = $elm$core$List$map($mdgriffith$elm_codegen$Internal$Compiler$nodify);
|
|
3404
3438
|
var $mdgriffith$elm_codegen$Elm$Annotation$namedWith$ = function (mod, name, args) {
|
|
3405
3439
|
return $mdgriffith$elm_codegen$Internal$Compiler$Annotation(
|
|
3406
3440
|
{
|
|
3407
|
-
aliases:
|
|
3408
|
-
|
|
3409
|
-
|
|
3410
|
-
|
|
3411
|
-
|
|
3412
|
-
|
|
3413
|
-
|
|
3414
|
-
|
|
3415
|
-
|
|
3416
|
-
|
|
3417
|
-
|
|
3418
|
-
|
|
3419
|
-
|
|
3420
|
-
|
|
3421
|
-
|
|
3422
|
-
|
|
3423
|
-
|
|
3424
|
-
|
|
3441
|
+
aliases: function (index) {
|
|
3442
|
+
return $elm$core$List$foldl$(
|
|
3443
|
+
F2(
|
|
3444
|
+
function (ann, aliases) {
|
|
3445
|
+
return A2(
|
|
3446
|
+
$mdgriffith$elm_codegen$Internal$Compiler$mergeAliases,
|
|
3447
|
+
$mdgriffith$elm_codegen$Elm$Annotation$getAliases$(index, ann),
|
|
3448
|
+
aliases);
|
|
3449
|
+
}),
|
|
3450
|
+
$mdgriffith$elm_codegen$Internal$Compiler$emptyAliases,
|
|
3451
|
+
args);
|
|
3452
|
+
},
|
|
3453
|
+
annotation: function (index) {
|
|
3454
|
+
var importFrom = $mdgriffith$elm_codegen$Internal$Index$getImport$(index, mod);
|
|
3455
|
+
return $stil4m$elm_syntax$Elm$Syntax$TypeAnnotation$Typed$(
|
|
3456
|
+
$mdgriffith$elm_codegen$Internal$Compiler$nodify(
|
|
3457
|
+
_Utils_Tuple2(
|
|
3458
|
+
importFrom,
|
|
3459
|
+
$mdgriffith$elm_codegen$Internal$Format$formatType(name))),
|
|
3460
|
+
$mdgriffith$elm_codegen$Internal$Compiler$nodifyAll(
|
|
3461
|
+
$elm$core$List$map$(
|
|
3462
|
+
$mdgriffith$elm_codegen$Internal$Compiler$getInnerAnnotation(index),
|
|
3463
|
+
args)));
|
|
3464
|
+
},
|
|
3465
|
+
imports: $elm$core$List$isEmpty(mod) ? $elm$core$List$concatMap$($mdgriffith$elm_codegen$Internal$Compiler$getAnnotationImports, args) : A2(
|
|
3425
3466
|
$elm$core$List$cons,
|
|
3426
3467
|
mod,
|
|
3427
3468
|
$elm$core$List$concatMap$($mdgriffith$elm_codegen$Internal$Compiler$getAnnotationImports, args))
|
|
@@ -3478,9 +3519,13 @@ var $mdgriffith$elm_codegen$Internal$Format$formatValue = function (str) {
|
|
|
3478
3519
|
var $mdgriffith$elm_codegen$Elm$Annotation$var = function (a) {
|
|
3479
3520
|
return $mdgriffith$elm_codegen$Internal$Compiler$Annotation(
|
|
3480
3521
|
{
|
|
3481
|
-
aliases:
|
|
3482
|
-
|
|
3483
|
-
|
|
3522
|
+
aliases: function (_v0) {
|
|
3523
|
+
return $mdgriffith$elm_codegen$Internal$Compiler$emptyAliases;
|
|
3524
|
+
},
|
|
3525
|
+
annotation: function (_v1) {
|
|
3526
|
+
return $stil4m$elm_syntax$Elm$Syntax$TypeAnnotation$GenericType(
|
|
3527
|
+
$mdgriffith$elm_codegen$Internal$Format$formatValue(a));
|
|
3528
|
+
},
|
|
3484
3529
|
imports: _List_Nil
|
|
3485
3530
|
});
|
|
3486
3531
|
};
|
|
@@ -5867,25 +5912,31 @@ var $mdgriffith$elm_codegen$Elm$apply = F2($mdgriffith$elm_codegen$Elm$apply$);
|
|
|
5867
5912
|
var $mdgriffith$elm_codegen$Elm$Annotation$function$ = function (anns, _return) {
|
|
5868
5913
|
return $mdgriffith$elm_codegen$Internal$Compiler$Annotation(
|
|
5869
5914
|
{
|
|
5870
|
-
aliases:
|
|
5871
|
-
|
|
5872
|
-
|
|
5873
|
-
|
|
5874
|
-
|
|
5875
|
-
|
|
5876
|
-
|
|
5877
|
-
|
|
5878
|
-
|
|
5879
|
-
|
|
5880
|
-
|
|
5881
|
-
|
|
5882
|
-
|
|
5883
|
-
|
|
5884
|
-
|
|
5885
|
-
|
|
5886
|
-
|
|
5887
|
-
|
|
5888
|
-
|
|
5915
|
+
aliases: function (index) {
|
|
5916
|
+
return $elm$core$List$foldl$(
|
|
5917
|
+
F2(
|
|
5918
|
+
function (ann, aliases) {
|
|
5919
|
+
return A2(
|
|
5920
|
+
$mdgriffith$elm_codegen$Internal$Compiler$mergeAliases,
|
|
5921
|
+
$mdgriffith$elm_codegen$Elm$Annotation$getAliases$(index, ann),
|
|
5922
|
+
aliases);
|
|
5923
|
+
}),
|
|
5924
|
+
$mdgriffith$elm_codegen$Internal$Compiler$emptyAliases,
|
|
5925
|
+
A2($elm$core$List$cons, _return, anns));
|
|
5926
|
+
},
|
|
5927
|
+
annotation: function (index) {
|
|
5928
|
+
return $elm$core$List$foldr$(
|
|
5929
|
+
F2(
|
|
5930
|
+
function (ann, fn) {
|
|
5931
|
+
return $stil4m$elm_syntax$Elm$Syntax$TypeAnnotation$FunctionTypeAnnotation$(
|
|
5932
|
+
$mdgriffith$elm_codegen$Internal$Compiler$nodify(ann),
|
|
5933
|
+
$mdgriffith$elm_codegen$Internal$Compiler$nodify(fn));
|
|
5934
|
+
}),
|
|
5935
|
+
$mdgriffith$elm_codegen$Internal$Compiler$getInnerAnnotation$(index, _return),
|
|
5936
|
+
$elm$core$List$map$(
|
|
5937
|
+
$mdgriffith$elm_codegen$Internal$Compiler$getInnerAnnotation(index),
|
|
5938
|
+
anns));
|
|
5939
|
+
},
|
|
5889
5940
|
imports: _Utils_ap(
|
|
5890
5941
|
$mdgriffith$elm_codegen$Internal$Compiler$getAnnotationImports(_return),
|
|
5891
5942
|
$elm$core$List$concatMap$($mdgriffith$elm_codegen$Internal$Compiler$getAnnotationImports, anns))
|
|
@@ -5913,21 +5964,27 @@ var $mdgriffith$elm_codegen$Elm$string = function (literal) {
|
|
|
5913
5964
|
var $mdgriffith$elm_codegen$Elm$Annotation$typed$ = function (mod, name, args) {
|
|
5914
5965
|
return $mdgriffith$elm_codegen$Internal$Compiler$Annotation(
|
|
5915
5966
|
{
|
|
5916
|
-
aliases:
|
|
5917
|
-
|
|
5918
|
-
|
|
5919
|
-
|
|
5920
|
-
|
|
5921
|
-
|
|
5922
|
-
|
|
5923
|
-
|
|
5924
|
-
|
|
5925
|
-
|
|
5926
|
-
|
|
5927
|
-
|
|
5928
|
-
|
|
5929
|
-
$
|
|
5930
|
-
$
|
|
5967
|
+
aliases: function (index) {
|
|
5968
|
+
return $elm$core$List$foldl$(
|
|
5969
|
+
F2(
|
|
5970
|
+
function (ann, aliases) {
|
|
5971
|
+
return A2(
|
|
5972
|
+
$mdgriffith$elm_codegen$Internal$Compiler$mergeAliases,
|
|
5973
|
+
$mdgriffith$elm_codegen$Elm$Annotation$getAliases$(index, ann),
|
|
5974
|
+
aliases);
|
|
5975
|
+
}),
|
|
5976
|
+
$mdgriffith$elm_codegen$Internal$Compiler$emptyAliases,
|
|
5977
|
+
args);
|
|
5978
|
+
},
|
|
5979
|
+
annotation: function (index) {
|
|
5980
|
+
return $stil4m$elm_syntax$Elm$Syntax$TypeAnnotation$Typed$(
|
|
5981
|
+
$mdgriffith$elm_codegen$Internal$Compiler$nodify(
|
|
5982
|
+
_Utils_Tuple2(mod, name)),
|
|
5983
|
+
$mdgriffith$elm_codegen$Internal$Compiler$nodifyAll(
|
|
5984
|
+
$elm$core$List$map$(
|
|
5985
|
+
$mdgriffith$elm_codegen$Internal$Compiler$getInnerAnnotation(index),
|
|
5986
|
+
args)));
|
|
5987
|
+
},
|
|
5931
5988
|
imports: $elm$core$List$concatMap$($mdgriffith$elm_codegen$Internal$Compiler$getAnnotationImports, args)
|
|
5932
5989
|
});
|
|
5933
5990
|
};
|
|
@@ -5937,16 +5994,6 @@ var $stil4m$elm_syntax$Elm$Syntax$Expression$FunctionOrValue$ = function (a, b)
|
|
|
5937
5994
|
return {$: 'FunctionOrValue', a: a, b: b};
|
|
5938
5995
|
};
|
|
5939
5996
|
var $stil4m$elm_syntax$Elm$Syntax$Expression$FunctionOrValue = F2($stil4m$elm_syntax$Elm$Syntax$Expression$FunctionOrValue$);
|
|
5940
|
-
var $mdgriffith$elm_codegen$Internal$Index$getImport$ = function (_v0, importedAs) {
|
|
5941
|
-
var maybeModName = _v0.a;
|
|
5942
|
-
if (maybeModName.$ === 'Just') {
|
|
5943
|
-
var modName = maybeModName.a;
|
|
5944
|
-
return _Utils_eq(modName, importedAs) ? _List_Nil : importedAs;
|
|
5945
|
-
} else {
|
|
5946
|
-
return importedAs;
|
|
5947
|
-
}
|
|
5948
|
-
};
|
|
5949
|
-
var $mdgriffith$elm_codegen$Internal$Index$getImport = F2($mdgriffith$elm_codegen$Internal$Index$getImport$);
|
|
5950
5997
|
var $mdgriffith$elm_codegen$Internal$Index$indexToString = function (_v0) {
|
|
5951
5998
|
var top = _v0.b;
|
|
5952
5999
|
var tail = _v0.c;
|
|
@@ -6071,9 +6118,11 @@ var $mdgriffith$elm_codegen$Internal$Compiler$protectField = F2($mdgriffith$elm_
|
|
|
6071
6118
|
var $mdgriffith$elm_codegen$Internal$Compiler$getInnerInference$ = function (index, _v0) {
|
|
6072
6119
|
var details = _v0.a;
|
|
6073
6120
|
return {
|
|
6074
|
-
aliases: details.aliases,
|
|
6121
|
+
aliases: details.aliases(index),
|
|
6075
6122
|
inferences: $elm$core$Dict$empty,
|
|
6076
|
-
type_: $mdgriffith$elm_codegen$Internal$Compiler$protectAnnotation$(
|
|
6123
|
+
type_: $mdgriffith$elm_codegen$Internal$Compiler$protectAnnotation$(
|
|
6124
|
+
index,
|
|
6125
|
+
details.annotation(index))
|
|
6077
6126
|
};
|
|
6078
6127
|
};
|
|
6079
6128
|
var $mdgriffith$elm_codegen$Internal$Compiler$getInnerInference = F2($mdgriffith$elm_codegen$Internal$Compiler$getInnerInference$);
|
|
@@ -6170,17 +6219,21 @@ var $mdgriffith$elm_codegen$Elm$Annotation$int = $mdgriffith$elm_codegen$Elm$Ann
|
|
|
6170
6219
|
var $mdgriffith$elm_codegen$Elm$Annotation$tuple$ = function (one, two) {
|
|
6171
6220
|
return $mdgriffith$elm_codegen$Internal$Compiler$Annotation(
|
|
6172
6221
|
{
|
|
6173
|
-
aliases:
|
|
6174
|
-
|
|
6175
|
-
|
|
6176
|
-
|
|
6177
|
-
|
|
6178
|
-
|
|
6179
|
-
|
|
6180
|
-
|
|
6181
|
-
|
|
6182
|
-
|
|
6183
|
-
|
|
6222
|
+
aliases: function (index) {
|
|
6223
|
+
return A2(
|
|
6224
|
+
$mdgriffith$elm_codegen$Internal$Compiler$mergeAliases,
|
|
6225
|
+
$mdgriffith$elm_codegen$Elm$Annotation$getAliases$(index, one),
|
|
6226
|
+
$mdgriffith$elm_codegen$Elm$Annotation$getAliases$(index, two));
|
|
6227
|
+
},
|
|
6228
|
+
annotation: function (index) {
|
|
6229
|
+
return $stil4m$elm_syntax$Elm$Syntax$TypeAnnotation$Tupled(
|
|
6230
|
+
$mdgriffith$elm_codegen$Internal$Compiler$nodifyAll(
|
|
6231
|
+
_List_fromArray(
|
|
6232
|
+
[
|
|
6233
|
+
$mdgriffith$elm_codegen$Internal$Compiler$getInnerAnnotation$(index, one),
|
|
6234
|
+
$mdgriffith$elm_codegen$Internal$Compiler$getInnerAnnotation$(index, two)
|
|
6235
|
+
])));
|
|
6236
|
+
},
|
|
6184
6237
|
imports: _Utils_ap(
|
|
6185
6238
|
$mdgriffith$elm_codegen$Internal$Compiler$getAnnotationImports(one),
|
|
6186
6239
|
$mdgriffith$elm_codegen$Internal$Compiler$getAnnotationImports(two))
|
|
@@ -15394,19 +15447,22 @@ var $mdgriffith$elm_codegen$Elm$customTypeWith$ = function (name, generics, vari
|
|
|
15394
15447
|
},
|
|
15395
15448
|
variants),
|
|
15396
15449
|
name: name,
|
|
15397
|
-
toBody: function (
|
|
15450
|
+
toBody: function (index) {
|
|
15398
15451
|
return {
|
|
15399
15452
|
additionalImports: _List_Nil,
|
|
15400
15453
|
declaration: $stil4m$elm_syntax$Elm$Syntax$Declaration$CustomTypeDeclaration(
|
|
15401
15454
|
{
|
|
15402
15455
|
constructors: $elm$core$List$map$(
|
|
15403
|
-
function (
|
|
15404
|
-
var varName =
|
|
15405
|
-
var vars =
|
|
15456
|
+
function (_v1) {
|
|
15457
|
+
var varName = _v1.a;
|
|
15458
|
+
var vars = _v1.b;
|
|
15406
15459
|
return $mdgriffith$elm_codegen$Internal$Compiler$nodify(
|
|
15407
15460
|
{
|
|
15408
15461
|
_arguments: $elm$core$List$map$(
|
|
15409
|
-
A2(
|
|
15462
|
+
A2(
|
|
15463
|
+
$elm$core$Basics$composeR,
|
|
15464
|
+
$mdgriffith$elm_codegen$Internal$Compiler$getInnerAnnotation(index),
|
|
15465
|
+
$mdgriffith$elm_codegen$Internal$Compiler$nodify),
|
|
15410
15466
|
vars),
|
|
15411
15467
|
name: $mdgriffith$elm_codegen$Internal$Compiler$nodify(
|
|
15412
15468
|
$mdgriffith$elm_codegen$Internal$Format$formatType(varName))
|
|
@@ -15418,9 +15474,11 @@ var $mdgriffith$elm_codegen$Elm$customTypeWith$ = function (name, generics, vari
|
|
|
15418
15474
|
{
|
|
15419
15475
|
keepExtra: true,
|
|
15420
15476
|
needed: $elm$core$List$concatMap$(
|
|
15421
|
-
function (
|
|
15422
|
-
var listAnn =
|
|
15423
|
-
return $elm$core$List$concatMap$(
|
|
15477
|
+
function (_v2) {
|
|
15478
|
+
var listAnn = _v2.b;
|
|
15479
|
+
return $elm$core$List$concatMap$(
|
|
15480
|
+
$mdgriffith$elm_codegen$Internal$Compiler$getGenerics(index),
|
|
15481
|
+
listAnn);
|
|
15424
15482
|
},
|
|
15425
15483
|
variants),
|
|
15426
15484
|
requested: generics
|
|
@@ -15441,13 +15499,18 @@ var $mdgriffith$elm_codegen$Elm$customType = F2($mdgriffith$elm_codegen$Elm$cust
|
|
|
15441
15499
|
var $mdgriffith$elm_codegen$Elm$Annotation$named$ = function (mod, name) {
|
|
15442
15500
|
return $mdgriffith$elm_codegen$Internal$Compiler$Annotation(
|
|
15443
15501
|
{
|
|
15444
|
-
aliases:
|
|
15445
|
-
|
|
15446
|
-
|
|
15447
|
-
|
|
15448
|
-
|
|
15449
|
-
|
|
15450
|
-
|
|
15502
|
+
aliases: function (_v0) {
|
|
15503
|
+
return $mdgriffith$elm_codegen$Internal$Compiler$emptyAliases;
|
|
15504
|
+
},
|
|
15505
|
+
annotation: function (index) {
|
|
15506
|
+
var importFrom = $mdgriffith$elm_codegen$Internal$Index$getImport$(index, mod);
|
|
15507
|
+
return $stil4m$elm_syntax$Elm$Syntax$TypeAnnotation$Typed$(
|
|
15508
|
+
$mdgriffith$elm_codegen$Internal$Compiler$nodify(
|
|
15509
|
+
_Utils_Tuple2(
|
|
15510
|
+
importFrom,
|
|
15511
|
+
$mdgriffith$elm_codegen$Internal$Format$formatType(name))),
|
|
15512
|
+
_List_Nil);
|
|
15513
|
+
},
|
|
15451
15514
|
imports: function () {
|
|
15452
15515
|
if (!mod.b) {
|
|
15453
15516
|
return _List_Nil;
|
|
@@ -16057,33 +16120,37 @@ var $mdgriffith$elm_codegen$Elm$exposeConstructor = $mdgriffith$elm_codegen$Inte
|
|
|
16057
16120
|
var $mdgriffith$elm_codegen$Elm$Annotation$extensible$ = function (base, fields) {
|
|
16058
16121
|
return $mdgriffith$elm_codegen$Internal$Compiler$Annotation(
|
|
16059
16122
|
{
|
|
16060
|
-
aliases:
|
|
16061
|
-
|
|
16062
|
-
|
|
16063
|
-
|
|
16064
|
-
|
|
16065
|
-
|
|
16066
|
-
|
|
16067
|
-
|
|
16068
|
-
|
|
16069
|
-
|
|
16070
|
-
|
|
16071
|
-
|
|
16072
|
-
|
|
16073
|
-
|
|
16074
|
-
$
|
|
16075
|
-
$mdgriffith$elm_codegen$Internal$Compiler$
|
|
16076
|
-
$
|
|
16077
|
-
|
|
16078
|
-
|
|
16079
|
-
|
|
16080
|
-
|
|
16081
|
-
|
|
16082
|
-
|
|
16083
|
-
|
|
16084
|
-
$mdgriffith$elm_codegen$Internal$Compiler$
|
|
16085
|
-
|
|
16086
|
-
|
|
16123
|
+
aliases: function (index) {
|
|
16124
|
+
return $elm$core$List$foldl$(
|
|
16125
|
+
F2(
|
|
16126
|
+
function (_v0, aliases) {
|
|
16127
|
+
var ann = _v0.b;
|
|
16128
|
+
return A2(
|
|
16129
|
+
$mdgriffith$elm_codegen$Internal$Compiler$mergeAliases,
|
|
16130
|
+
$mdgriffith$elm_codegen$Elm$Annotation$getAliases$(index, ann),
|
|
16131
|
+
aliases);
|
|
16132
|
+
}),
|
|
16133
|
+
$mdgriffith$elm_codegen$Internal$Compiler$emptyAliases,
|
|
16134
|
+
fields);
|
|
16135
|
+
},
|
|
16136
|
+
annotation: function (index) {
|
|
16137
|
+
return $stil4m$elm_syntax$Elm$Syntax$TypeAnnotation$GenericRecord$(
|
|
16138
|
+
$mdgriffith$elm_codegen$Internal$Compiler$nodify(
|
|
16139
|
+
$mdgriffith$elm_codegen$Internal$Format$formatValue(base)),
|
|
16140
|
+
$mdgriffith$elm_codegen$Internal$Compiler$nodify(
|
|
16141
|
+
$mdgriffith$elm_codegen$Internal$Compiler$nodifyAll(
|
|
16142
|
+
$elm$core$List$map$(
|
|
16143
|
+
function (_v1) {
|
|
16144
|
+
var name = _v1.a;
|
|
16145
|
+
var ann = _v1.b;
|
|
16146
|
+
return _Utils_Tuple2(
|
|
16147
|
+
$mdgriffith$elm_codegen$Internal$Compiler$nodify(
|
|
16148
|
+
$mdgriffith$elm_codegen$Internal$Format$formatValue(name)),
|
|
16149
|
+
$mdgriffith$elm_codegen$Internal$Compiler$nodify(
|
|
16150
|
+
$mdgriffith$elm_codegen$Internal$Compiler$getInnerAnnotation$(index, ann)));
|
|
16151
|
+
},
|
|
16152
|
+
fields))));
|
|
16153
|
+
},
|
|
16087
16154
|
imports: $elm$core$List$concatMap$(
|
|
16088
16155
|
A2($elm$core$Basics$composeR, $elm$core$Tuple$second, $mdgriffith$elm_codegen$Internal$Compiler$getAnnotationImports),
|
|
16089
16156
|
fields)
|
|
@@ -16139,7 +16206,9 @@ var $mdgriffith$elm_codegen$Internal$Render$dedupImports = function (mods) {
|
|
|
16139
16206
|
mods).b);
|
|
16140
16207
|
};
|
|
16141
16208
|
var $mdgriffith$elm_codegen$Internal$Comments$emptyComment = $mdgriffith$elm_codegen$Internal$Comments$Comment(_List_Nil);
|
|
16142
|
-
var $mdgriffith$elm_codegen$Internal$Render$RenderingDocsLine = {
|
|
16209
|
+
var $mdgriffith$elm_codegen$Internal$Render$RenderingDocsLine = function (a) {
|
|
16210
|
+
return {$: 'RenderingDocsLine', a: a};
|
|
16211
|
+
};
|
|
16143
16212
|
var $elm$core$String$isEmpty = function (string) {
|
|
16144
16213
|
return string === '';
|
|
16145
16214
|
};
|
|
@@ -16180,7 +16249,7 @@ var $mdgriffith$elm_codegen$Internal$Render$exposedGroupToMarkdown$ = function (
|
|
|
16180
16249
|
if (mode.$ === 'Normal') {
|
|
16181
16250
|
if ($elm$core$String$isEmpty(rendered)) {
|
|
16182
16251
|
var $temp$groups = rest,
|
|
16183
|
-
$temp$mode = $mdgriffith$elm_codegen$Internal$Render$RenderingDocsLine,
|
|
16252
|
+
$temp$mode = $mdgriffith$elm_codegen$Internal$Render$RenderingDocsLine(1),
|
|
16184
16253
|
$temp$rendered = '@docs ' + exposedName;
|
|
16185
16254
|
groups = $temp$groups;
|
|
16186
16255
|
mode = $temp$mode;
|
|
@@ -16188,7 +16257,7 @@ var $mdgriffith$elm_codegen$Internal$Render$exposedGroupToMarkdown$ = function (
|
|
|
16188
16257
|
continue exposedGroupToMarkdown;
|
|
16189
16258
|
} else {
|
|
16190
16259
|
var $temp$groups = rest,
|
|
16191
|
-
$temp$mode = $mdgriffith$elm_codegen$Internal$Render$RenderingDocsLine,
|
|
16260
|
+
$temp$mode = $mdgriffith$elm_codegen$Internal$Render$RenderingDocsLine(1),
|
|
16192
16261
|
$temp$rendered = rendered + ('\n\n@docs ' + exposedName);
|
|
16193
16262
|
groups = $temp$groups;
|
|
16194
16263
|
mode = $temp$mode;
|
|
@@ -16196,11 +16265,24 @@ var $mdgriffith$elm_codegen$Internal$Render$exposedGroupToMarkdown$ = function (
|
|
|
16196
16265
|
continue exposedGroupToMarkdown;
|
|
16197
16266
|
}
|
|
16198
16267
|
} else {
|
|
16199
|
-
var
|
|
16200
|
-
|
|
16201
|
-
|
|
16202
|
-
|
|
16203
|
-
|
|
16268
|
+
var docsItemCount = mode.a;
|
|
16269
|
+
if (docsItemCount > 5) {
|
|
16270
|
+
var $temp$groups = rest,
|
|
16271
|
+
$temp$mode = $mdgriffith$elm_codegen$Internal$Render$RenderingDocsLine(1),
|
|
16272
|
+
$temp$rendered = rendered + ('\n@docs ' + exposedName);
|
|
16273
|
+
groups = $temp$groups;
|
|
16274
|
+
mode = $temp$mode;
|
|
16275
|
+
rendered = $temp$rendered;
|
|
16276
|
+
continue exposedGroupToMarkdown;
|
|
16277
|
+
} else {
|
|
16278
|
+
var $temp$groups = rest,
|
|
16279
|
+
$temp$mode = $mdgriffith$elm_codegen$Internal$Render$RenderingDocsLine(docsItemCount + 1),
|
|
16280
|
+
$temp$rendered = rendered + (', ' + exposedName);
|
|
16281
|
+
groups = $temp$groups;
|
|
16282
|
+
mode = $temp$mode;
|
|
16283
|
+
rendered = $temp$rendered;
|
|
16284
|
+
continue exposedGroupToMarkdown;
|
|
16285
|
+
}
|
|
16204
16286
|
}
|
|
16205
16287
|
} else {
|
|
16206
16288
|
var $temp$groups = rest;
|
|
@@ -16287,6 +16369,21 @@ var $mdgriffith$elm_codegen$Internal$Render$getExposedGroups$ = function (decl,
|
|
|
16287
16369
|
}
|
|
16288
16370
|
};
|
|
16289
16371
|
var $mdgriffith$elm_codegen$Internal$Render$getExposedGroups = F2($mdgriffith$elm_codegen$Internal$Render$getExposedGroups$);
|
|
16372
|
+
var $mdgriffith$elm_codegen$Internal$Compiler$nodeAtLine$ = function (line, exp) {
|
|
16373
|
+
return $stil4m$elm_syntax$Elm$Syntax$Node$Node$(
|
|
16374
|
+
{
|
|
16375
|
+
end: {column: 0, row: line},
|
|
16376
|
+
start: {column: 0, row: line}
|
|
16377
|
+
},
|
|
16378
|
+
exp);
|
|
16379
|
+
};
|
|
16380
|
+
var $mdgriffith$elm_codegen$Internal$Compiler$nodeAtLine = F2($mdgriffith$elm_codegen$Internal$Compiler$nodeAtLine$);
|
|
16381
|
+
var $mdgriffith$elm_codegen$Internal$Render$groupExposedItems$ = function (line, group) {
|
|
16382
|
+
return $elm$core$List$map$(
|
|
16383
|
+
$mdgriffith$elm_codegen$Internal$Compiler$nodeAtLine(line),
|
|
16384
|
+
group.exposed);
|
|
16385
|
+
};
|
|
16386
|
+
var $mdgriffith$elm_codegen$Internal$Render$groupExposedItems = F2($mdgriffith$elm_codegen$Internal$Render$groupExposedItems$);
|
|
16290
16387
|
var $stil4m$elm_syntax$Elm$Syntax$Exposing$InfixExpose = function (a) {
|
|
16291
16388
|
return {$: 'InfixExpose', a: a};
|
|
16292
16389
|
};
|
|
@@ -16523,11 +16620,40 @@ var $stil4m$elm_syntax$Elm$Syntax$Exposing$TypeExpose = function (a) {
|
|
|
16523
16620
|
var $stil4m$elm_syntax$Elm$Syntax$Exposing$TypeOrAliasExpose = function (a) {
|
|
16524
16621
|
return {$: 'TypeOrAliasExpose', a: a};
|
|
16525
16622
|
};
|
|
16526
|
-
var $mdgriffith$elm_codegen$Internal$Render$addExposed$ = function (exposed, declaration, otherExposes) {
|
|
16623
|
+
var $mdgriffith$elm_codegen$Internal$Render$addExposed$ = function (exposePath, exposed, declaration, otherExposes) {
|
|
16527
16624
|
if (exposed.$ === 'NotExposed') {
|
|
16528
16625
|
return otherExposes;
|
|
16529
16626
|
} else {
|
|
16530
16627
|
var details = exposed.a;
|
|
16628
|
+
var addToExposedCollection = function (_new) {
|
|
16629
|
+
if (!otherExposes.b) {
|
|
16630
|
+
return _List_fromArray(
|
|
16631
|
+
[
|
|
16632
|
+
{
|
|
16633
|
+
exposed: _List_fromArray(
|
|
16634
|
+
[_new]),
|
|
16635
|
+
id: exposePath
|
|
16636
|
+
}
|
|
16637
|
+
]);
|
|
16638
|
+
} else {
|
|
16639
|
+
var top = otherExposes.a;
|
|
16640
|
+
var rest = otherExposes.b;
|
|
16641
|
+
return _Utils_eq(top.id, exposePath) ? A2(
|
|
16642
|
+
$elm$core$List$cons,
|
|
16643
|
+
{
|
|
16644
|
+
exposed: A2($elm$core$List$cons, _new, top.exposed),
|
|
16645
|
+
id: top.id
|
|
16646
|
+
},
|
|
16647
|
+
rest) : A2(
|
|
16648
|
+
$elm$core$List$cons,
|
|
16649
|
+
{
|
|
16650
|
+
exposed: _List_fromArray(
|
|
16651
|
+
[_new]),
|
|
16652
|
+
id: exposePath
|
|
16653
|
+
},
|
|
16654
|
+
otherExposes);
|
|
16655
|
+
}
|
|
16656
|
+
};
|
|
16531
16657
|
switch (declaration.$) {
|
|
16532
16658
|
case 'FunctionDeclaration':
|
|
16533
16659
|
var fn = declaration.a;
|
|
@@ -16536,38 +16662,28 @@ var $mdgriffith$elm_codegen$Internal$Render$addExposed$ = function (exposed, dec
|
|
|
16536
16662
|
return $.name;
|
|
16537
16663
|
}(
|
|
16538
16664
|
$mdgriffith$elm_codegen$Internal$Compiler$denode(fn.declaration)));
|
|
16539
|
-
return
|
|
16540
|
-
$
|
|
16541
|
-
$stil4m$elm_syntax$Elm$Syntax$Exposing$FunctionExpose(fnName),
|
|
16542
|
-
otherExposes);
|
|
16665
|
+
return addToExposedCollection(
|
|
16666
|
+
$stil4m$elm_syntax$Elm$Syntax$Exposing$FunctionExpose(fnName));
|
|
16543
16667
|
case 'AliasDeclaration':
|
|
16544
16668
|
var synonym = declaration.a;
|
|
16545
16669
|
var aliasName = $mdgriffith$elm_codegen$Internal$Compiler$denode(synonym.name);
|
|
16546
|
-
return
|
|
16547
|
-
$
|
|
16548
|
-
$stil4m$elm_syntax$Elm$Syntax$Exposing$TypeOrAliasExpose(aliasName),
|
|
16549
|
-
otherExposes);
|
|
16670
|
+
return addToExposedCollection(
|
|
16671
|
+
$stil4m$elm_syntax$Elm$Syntax$Exposing$TypeOrAliasExpose(aliasName));
|
|
16550
16672
|
case 'CustomTypeDeclaration':
|
|
16551
16673
|
var myType = declaration.a;
|
|
16552
16674
|
var typeName = $mdgriffith$elm_codegen$Internal$Compiler$denode(myType.name);
|
|
16553
|
-
return details.exposeConstructor ?
|
|
16554
|
-
$elm$core$List$cons,
|
|
16675
|
+
return details.exposeConstructor ? addToExposedCollection(
|
|
16555
16676
|
$stil4m$elm_syntax$Elm$Syntax$Exposing$TypeExpose(
|
|
16556
16677
|
{
|
|
16557
16678
|
name: typeName,
|
|
16558
16679
|
open: $elm$core$Maybe$Just($stil4m$elm_syntax$Elm$Syntax$Range$emptyRange)
|
|
16559
|
-
})
|
|
16560
|
-
|
|
16561
|
-
$elm$core$List$cons,
|
|
16562
|
-
$stil4m$elm_syntax$Elm$Syntax$Exposing$TypeOrAliasExpose(typeName),
|
|
16563
|
-
otherExposes);
|
|
16680
|
+
})) : addToExposedCollection(
|
|
16681
|
+
$stil4m$elm_syntax$Elm$Syntax$Exposing$TypeOrAliasExpose(typeName));
|
|
16564
16682
|
case 'PortDeclaration':
|
|
16565
16683
|
var myPort = declaration.a;
|
|
16566
16684
|
var typeName = $mdgriffith$elm_codegen$Internal$Compiler$denode(myPort.name);
|
|
16567
|
-
return
|
|
16568
|
-
$
|
|
16569
|
-
$stil4m$elm_syntax$Elm$Syntax$Exposing$FunctionExpose(typeName),
|
|
16570
|
-
otherExposes);
|
|
16685
|
+
return addToExposedCollection(
|
|
16686
|
+
$stil4m$elm_syntax$Elm$Syntax$Exposing$FunctionExpose(typeName));
|
|
16571
16687
|
case 'InfixDeclaration':
|
|
16572
16688
|
return otherExposes;
|
|
16573
16689
|
default:
|
|
@@ -16575,7 +16691,7 @@ var $mdgriffith$elm_codegen$Internal$Render$addExposed$ = function (exposed, dec
|
|
|
16575
16691
|
}
|
|
16576
16692
|
}
|
|
16577
16693
|
};
|
|
16578
|
-
var $mdgriffith$elm_codegen$Internal$Render$addExposed =
|
|
16694
|
+
var $mdgriffith$elm_codegen$Internal$Render$addExposed = F4($mdgriffith$elm_codegen$Internal$Render$addExposed$);
|
|
16579
16695
|
var $mdgriffith$elm_codegen$Internal$Render$renderDecls$ = function (fileDetails, decl, gathered) {
|
|
16580
16696
|
switch (decl.$) {
|
|
16581
16697
|
case 'Comment':
|
|
@@ -16609,7 +16725,8 @@ var $mdgriffith$elm_codegen$Internal$Render$renderDecls$ = function (fileDetails
|
|
|
16609
16725
|
$mdgriffith$elm_codegen$Internal$Compiler$RenderedDecl(
|
|
16610
16726
|
$mdgriffith$elm_codegen$Internal$Render$addDocs$(decDetails.docs, result.declaration)),
|
|
16611
16727
|
gathered.declarations),
|
|
16612
|
-
|
|
16728
|
+
exposePath: gathered.exposePath,
|
|
16729
|
+
exposed: $mdgriffith$elm_codegen$Internal$Render$addExposed$(gathered.exposePath, decDetails.exposed, result.declaration, gathered.exposed),
|
|
16613
16730
|
hasPorts: function () {
|
|
16614
16731
|
if (gathered.hasPorts) {
|
|
16615
16732
|
return gathered.hasPorts;
|
|
@@ -16637,10 +16754,31 @@ var $mdgriffith$elm_codegen$Internal$Render$renderDecls$ = function (fileDetails
|
|
|
16637
16754
|
};
|
|
16638
16755
|
default:
|
|
16639
16756
|
var groupDecls = decl.a;
|
|
16640
|
-
|
|
16641
|
-
|
|
16642
|
-
|
|
16643
|
-
|
|
16757
|
+
var incrementExposePath = function (g) {
|
|
16758
|
+
return _Utils_update(
|
|
16759
|
+
g,
|
|
16760
|
+
{
|
|
16761
|
+
exposePath: function () {
|
|
16762
|
+
var _v3 = g.exposePath;
|
|
16763
|
+
if (!_v3.b) {
|
|
16764
|
+
return _List_Nil;
|
|
16765
|
+
} else {
|
|
16766
|
+
var top = _v3.a;
|
|
16767
|
+
var remain = _v3.b;
|
|
16768
|
+
return A2($elm$core$List$cons, top + 1, remain);
|
|
16769
|
+
}
|
|
16770
|
+
}()
|
|
16771
|
+
});
|
|
16772
|
+
};
|
|
16773
|
+
return incrementExposePath(
|
|
16774
|
+
$elm$core$List$foldl$(
|
|
16775
|
+
$mdgriffith$elm_codegen$Internal$Render$renderDecls(fileDetails),
|
|
16776
|
+
_Utils_update(
|
|
16777
|
+
gathered,
|
|
16778
|
+
{
|
|
16779
|
+
exposePath: A2($elm$core$List$cons, 0, gathered.exposePath)
|
|
16780
|
+
}),
|
|
16781
|
+
groupDecls));
|
|
16644
16782
|
}
|
|
16645
16783
|
};
|
|
16646
16784
|
var $mdgriffith$elm_codegen$Internal$Render$renderDecls = F3($mdgriffith$elm_codegen$Internal$Render$renderDecls$);
|
|
@@ -16650,13 +16788,7 @@ var $the_sett$elm_pretty_printer$Internals$Concatenate$ = function (a, b) {
|
|
|
16650
16788
|
};
|
|
16651
16789
|
var $the_sett$elm_pretty_printer$Internals$Concatenate = F2($the_sett$elm_pretty_printer$Internals$Concatenate$);
|
|
16652
16790
|
var $the_sett$elm_pretty_printer$Pretty$append$ = function (doc1, doc2) {
|
|
16653
|
-
return $the_sett$elm_pretty_printer$Internals$Concatenate$(
|
|
16654
|
-
function (_v0) {
|
|
16655
|
-
return doc1;
|
|
16656
|
-
},
|
|
16657
|
-
function (_v1) {
|
|
16658
|
-
return doc2;
|
|
16659
|
-
});
|
|
16791
|
+
return $the_sett$elm_pretty_printer$Internals$Concatenate$(doc1, doc2);
|
|
16660
16792
|
};
|
|
16661
16793
|
var $the_sett$elm_pretty_printer$Pretty$append = F2($the_sett$elm_pretty_printer$Pretty$append$);
|
|
16662
16794
|
var $elm_community$basics_extra$Basics$Extra$flip$ = function (f, b, a) {
|
|
@@ -17187,11 +17319,7 @@ var $the_sett$elm_pretty_printer$Internals$Nest$ = function (a, b) {
|
|
|
17187
17319
|
};
|
|
17188
17320
|
var $the_sett$elm_pretty_printer$Internals$Nest = F2($the_sett$elm_pretty_printer$Internals$Nest$);
|
|
17189
17321
|
var $the_sett$elm_pretty_printer$Pretty$nest$ = function (depth, doc) {
|
|
17190
|
-
return $the_sett$elm_pretty_printer$Internals$Nest$(
|
|
17191
|
-
depth,
|
|
17192
|
-
function (_v0) {
|
|
17193
|
-
return doc;
|
|
17194
|
-
});
|
|
17322
|
+
return $the_sett$elm_pretty_printer$Internals$Nest$(depth, doc);
|
|
17195
17323
|
};
|
|
17196
17324
|
var $the_sett$elm_pretty_printer$Pretty$nest = F2($the_sett$elm_pretty_printer$Pretty$nest$);
|
|
17197
17325
|
var $mdgriffith$elm_codegen$Internal$Write$prettyDocumentation = function (docs) {
|
|
@@ -17208,30 +17336,76 @@ var $the_sett$elm_pretty_printer$Internals$flatten = function (doc) {
|
|
|
17208
17336
|
case 'Concatenate':
|
|
17209
17337
|
var doc1 = doc.a;
|
|
17210
17338
|
var doc2 = doc.b;
|
|
17211
|
-
|
|
17212
|
-
function (
|
|
17213
|
-
|
|
17214
|
-
|
|
17215
|
-
|
|
17216
|
-
|
|
17217
|
-
|
|
17218
|
-
|
|
17339
|
+
var go = F2(
|
|
17340
|
+
function (queue, acc) {
|
|
17341
|
+
go:
|
|
17342
|
+
while (true) {
|
|
17343
|
+
if (!queue.b) {
|
|
17344
|
+
if (!acc.b) {
|
|
17345
|
+
return $the_sett$elm_pretty_printer$Internals$Empty;
|
|
17346
|
+
} else {
|
|
17347
|
+
var h = acc.a;
|
|
17348
|
+
var t = acc.b;
|
|
17349
|
+
return $elm$core$List$foldl$($the_sett$elm_pretty_printer$Internals$Concatenate, h, t);
|
|
17350
|
+
}
|
|
17351
|
+
} else {
|
|
17352
|
+
if (queue.a.$ === 'Concatenate') {
|
|
17353
|
+
var _v3 = queue.a;
|
|
17354
|
+
var h1 = _v3.a;
|
|
17355
|
+
var h2 = _v3.b;
|
|
17356
|
+
var t = queue.b;
|
|
17357
|
+
var $temp$queue = A2(
|
|
17358
|
+
$elm$core$List$cons,
|
|
17359
|
+
h1,
|
|
17360
|
+
A2($elm$core$List$cons, h2, t));
|
|
17361
|
+
queue = $temp$queue;
|
|
17362
|
+
continue go;
|
|
17363
|
+
} else {
|
|
17364
|
+
var h = queue.a;
|
|
17365
|
+
var t = queue.b;
|
|
17366
|
+
var $temp$queue = t,
|
|
17367
|
+
$temp$acc = A2(
|
|
17368
|
+
$elm$core$List$cons,
|
|
17369
|
+
$the_sett$elm_pretty_printer$Internals$flatten(h),
|
|
17370
|
+
acc);
|
|
17371
|
+
queue = $temp$queue;
|
|
17372
|
+
acc = $temp$acc;
|
|
17373
|
+
continue go;
|
|
17374
|
+
}
|
|
17375
|
+
}
|
|
17376
|
+
}
|
|
17219
17377
|
});
|
|
17378
|
+
return A2(
|
|
17379
|
+
go,
|
|
17380
|
+
_List_fromArray(
|
|
17381
|
+
[doc1, doc2]),
|
|
17382
|
+
_List_Nil);
|
|
17220
17383
|
case 'Nest':
|
|
17221
|
-
|
|
17222
|
-
|
|
17223
|
-
|
|
17224
|
-
|
|
17225
|
-
|
|
17226
|
-
|
|
17227
|
-
|
|
17228
|
-
|
|
17384
|
+
if (doc.b.$ === 'Nest') {
|
|
17385
|
+
var i = doc.a;
|
|
17386
|
+
var _v4 = doc.b;
|
|
17387
|
+
var j = _v4.a;
|
|
17388
|
+
var doc1 = _v4.b;
|
|
17389
|
+
var $temp$doc = $the_sett$elm_pretty_printer$Internals$Nest$(i + j, doc1);
|
|
17390
|
+
doc = $temp$doc;
|
|
17391
|
+
continue flatten;
|
|
17392
|
+
} else {
|
|
17393
|
+
var i = doc.a;
|
|
17394
|
+
var doc1 = doc.b;
|
|
17395
|
+
return $the_sett$elm_pretty_printer$Internals$Nest$(
|
|
17396
|
+
i,
|
|
17397
|
+
$the_sett$elm_pretty_printer$Internals$flatten(doc1));
|
|
17398
|
+
}
|
|
17229
17399
|
case 'Union':
|
|
17230
17400
|
var doc1 = doc.a;
|
|
17231
|
-
var doc2 = doc.b;
|
|
17232
17401
|
var $temp$doc = doc1;
|
|
17233
17402
|
doc = $temp$doc;
|
|
17234
17403
|
continue flatten;
|
|
17404
|
+
case 'FlatAlt':
|
|
17405
|
+
var flatDoc = doc.a;
|
|
17406
|
+
var $temp$doc = flatDoc;
|
|
17407
|
+
doc = $temp$doc;
|
|
17408
|
+
continue flatten;
|
|
17235
17409
|
case 'Line':
|
|
17236
17410
|
var hsep = doc.a;
|
|
17237
17411
|
return $the_sett$elm_pretty_printer$Internals$Text$(hsep, $elm$core$Maybe$Nothing);
|
|
@@ -17629,12 +17803,6 @@ var $mdgriffith$elm_codegen$Internal$Write$escapeChar = function (val) {
|
|
|
17629
17803
|
}
|
|
17630
17804
|
};
|
|
17631
17805
|
var $elm$core$String$fromFloat = _String_fromNumber;
|
|
17632
|
-
var $the_sett$elm_pretty_printer$Internals$copy$ = function (i, s) {
|
|
17633
|
-
return (!i) ? '' : _Utils_ap(
|
|
17634
|
-
s,
|
|
17635
|
-
$the_sett$elm_pretty_printer$Internals$copy$(i - 1, s));
|
|
17636
|
-
};
|
|
17637
|
-
var $the_sett$elm_pretty_printer$Internals$copy = F2($the_sett$elm_pretty_printer$Internals$copy$);
|
|
17638
17806
|
var $the_sett$elm_pretty_printer$Pretty$hang$ = function (spaces, doc) {
|
|
17639
17807
|
return $the_sett$elm_pretty_printer$Pretty$align(
|
|
17640
17808
|
$the_sett$elm_pretty_printer$Pretty$nest$(spaces, doc));
|
|
@@ -17645,7 +17813,7 @@ var $the_sett$elm_pretty_printer$Pretty$indent$ = function (spaces, doc) {
|
|
|
17645
17813
|
spaces,
|
|
17646
17814
|
$the_sett$elm_pretty_printer$Pretty$append$(
|
|
17647
17815
|
$the_sett$elm_pretty_printer$Pretty$string(
|
|
17648
|
-
$
|
|
17816
|
+
$elm$core$String$repeat$(spaces, ' ')),
|
|
17649
17817
|
doc));
|
|
17650
17818
|
};
|
|
17651
17819
|
var $the_sett$elm_pretty_printer$Pretty$indent = F2($the_sett$elm_pretty_printer$Pretty$indent$);
|
|
@@ -18918,58 +19086,57 @@ var $mdgriffith$elm_codegen$Internal$Write$prettyElmSyntaxDeclaration$ = functio
|
|
|
18918
19086
|
};
|
|
18919
19087
|
var $mdgriffith$elm_codegen$Internal$Write$prettyElmSyntaxDeclaration = F2($mdgriffith$elm_codegen$Internal$Write$prettyElmSyntaxDeclaration$);
|
|
18920
19088
|
var $mdgriffith$elm_codegen$Internal$Write$prettyDeclarations$ = function (aliases, decls) {
|
|
18921
|
-
return $elm$core$List$
|
|
19089
|
+
return $elm$core$List$foldr$(
|
|
18922
19090
|
$elm$core$Basics$apL,
|
|
18923
19091
|
$the_sett$elm_pretty_printer$Pretty$empty,
|
|
18924
|
-
$elm$core$List$
|
|
18925
|
-
|
|
18926
|
-
|
|
18927
|
-
$elm$core$List$
|
|
18928
|
-
|
|
18929
|
-
|
|
18930
|
-
|
|
18931
|
-
|
|
18932
|
-
|
|
18933
|
-
|
|
18934
|
-
|
|
18935
|
-
|
|
18936
|
-
|
|
18937
|
-
|
|
18938
|
-
|
|
18939
|
-
|
|
18940
|
-
|
|
18941
|
-
|
|
18942
|
-
|
|
18943
|
-
|
|
18944
|
-
|
|
18945
|
-
|
|
18946
|
-
|
|
18947
|
-
|
|
18948
|
-
|
|
19092
|
+
$elm$core$List$drop$(
|
|
19093
|
+
1,
|
|
19094
|
+
$elm$core$List$reverse(
|
|
19095
|
+
$elm$core$List$concatMap$(
|
|
19096
|
+
function (decl) {
|
|
19097
|
+
switch (decl.$) {
|
|
19098
|
+
case 'RenderedComment':
|
|
19099
|
+
var content = decl.a;
|
|
19100
|
+
return _List_fromArray(
|
|
19101
|
+
[
|
|
19102
|
+
$the_sett$elm_pretty_printer$Pretty$a(
|
|
19103
|
+
$the_sett$elm_pretty_printer$Pretty$string(content + '\n')),
|
|
19104
|
+
A2(
|
|
19105
|
+
$elm$core$Basics$composeR,
|
|
19106
|
+
$the_sett$elm_pretty_printer$Pretty$a($the_sett$elm_pretty_printer$Pretty$line),
|
|
19107
|
+
$the_sett$elm_pretty_printer$Pretty$a($the_sett$elm_pretty_printer$Pretty$line))
|
|
19108
|
+
]);
|
|
19109
|
+
case 'RenderedBlock':
|
|
19110
|
+
var source = decl.a;
|
|
19111
|
+
return _List_fromArray(
|
|
19112
|
+
[
|
|
19113
|
+
$the_sett$elm_pretty_printer$Pretty$a(
|
|
19114
|
+
$the_sett$elm_pretty_printer$Pretty$string(source)),
|
|
19115
|
+
A2(
|
|
19116
|
+
$elm$core$Basics$composeR,
|
|
19117
|
+
$the_sett$elm_pretty_printer$Pretty$a($the_sett$elm_pretty_printer$Pretty$line),
|
|
19118
|
+
A2(
|
|
18949
19119
|
$elm$core$Basics$composeR,
|
|
18950
19120
|
$the_sett$elm_pretty_printer$Pretty$a($the_sett$elm_pretty_printer$Pretty$line),
|
|
18951
|
-
|
|
18952
|
-
|
|
18953
|
-
|
|
18954
|
-
|
|
18955
|
-
|
|
18956
|
-
|
|
18957
|
-
|
|
18958
|
-
|
|
18959
|
-
|
|
18960
|
-
|
|
18961
|
-
|
|
18962
|
-
|
|
19121
|
+
$the_sett$elm_pretty_printer$Pretty$a($the_sett$elm_pretty_printer$Pretty$line)))
|
|
19122
|
+
]);
|
|
19123
|
+
default:
|
|
19124
|
+
var innerDecl = decl.a;
|
|
19125
|
+
return _List_fromArray(
|
|
19126
|
+
[
|
|
19127
|
+
$the_sett$elm_pretty_printer$Pretty$a(
|
|
19128
|
+
$mdgriffith$elm_codegen$Internal$Write$prettyElmSyntaxDeclaration$(aliases, innerDecl)),
|
|
19129
|
+
A2(
|
|
19130
|
+
$elm$core$Basics$composeR,
|
|
19131
|
+
$the_sett$elm_pretty_printer$Pretty$a($the_sett$elm_pretty_printer$Pretty$line),
|
|
19132
|
+
A2(
|
|
18963
19133
|
$elm$core$Basics$composeR,
|
|
18964
19134
|
$the_sett$elm_pretty_printer$Pretty$a($the_sett$elm_pretty_printer$Pretty$line),
|
|
18965
|
-
|
|
18966
|
-
|
|
18967
|
-
|
|
18968
|
-
|
|
18969
|
-
|
|
18970
|
-
}
|
|
18971
|
-
},
|
|
18972
|
-
decls)))));
|
|
19135
|
+
$the_sett$elm_pretty_printer$Pretty$a($the_sett$elm_pretty_printer$Pretty$line)))
|
|
19136
|
+
]);
|
|
19137
|
+
}
|
|
19138
|
+
},
|
|
19139
|
+
decls))));
|
|
18973
19140
|
};
|
|
18974
19141
|
var $mdgriffith$elm_codegen$Internal$Write$prettyDeclarations = F2($mdgriffith$elm_codegen$Internal$Write$prettyDeclarations$);
|
|
18975
19142
|
var $mdgriffith$elm_codegen$Internal$Comments$delimeters = function (doc) {
|
|
@@ -19117,188 +19284,227 @@ var $mdgriffith$elm_codegen$Internal$Comments$layoutTags$ = function (width, par
|
|
|
19117
19284
|
$mdgriffith$elm_codegen$Internal$Comments$mergeDocTags(parts));
|
|
19118
19285
|
};
|
|
19119
19286
|
var $mdgriffith$elm_codegen$Internal$Comments$layoutTags = F2($mdgriffith$elm_codegen$Internal$Comments$layoutTags$);
|
|
19120
|
-
var $the_sett$elm_pretty_printer$Internals$
|
|
19121
|
-
return {$: '
|
|
19287
|
+
var $the_sett$elm_pretty_printer$Internals$LLine$ = function (a, b, c) {
|
|
19288
|
+
return {$: 'LLine', a: a, b: b, c: c};
|
|
19122
19289
|
};
|
|
19123
|
-
var $the_sett$elm_pretty_printer$Internals$
|
|
19290
|
+
var $the_sett$elm_pretty_printer$Internals$LLine = F3($the_sett$elm_pretty_printer$Internals$LLine$);
|
|
19291
|
+
var $the_sett$elm_pretty_printer$Internals$LText$ = function (a, b, c) {
|
|
19292
|
+
return {$: 'LText', a: a, b: b, c: c};
|
|
19293
|
+
};
|
|
19294
|
+
var $the_sett$elm_pretty_printer$Internals$LText = F3($the_sett$elm_pretty_printer$Internals$LText$);
|
|
19124
19295
|
var $the_sett$elm_pretty_printer$Internals$NNil = {$: 'NNil'};
|
|
19125
19296
|
var $the_sett$elm_pretty_printer$Internals$NText$ = function (a, b, c) {
|
|
19126
19297
|
return {$: 'NText', a: a, b: b, c: c};
|
|
19127
19298
|
};
|
|
19128
19299
|
var $the_sett$elm_pretty_printer$Internals$NText = F3($the_sett$elm_pretty_printer$Internals$NText$);
|
|
19129
|
-
var $the_sett$elm_pretty_printer$Internals$fits$ = function (w,
|
|
19130
|
-
|
|
19131
|
-
|
|
19132
|
-
|
|
19133
|
-
|
|
19134
|
-
|
|
19135
|
-
|
|
19136
|
-
|
|
19137
|
-
|
|
19138
|
-
|
|
19139
|
-
|
|
19140
|
-
|
|
19141
|
-
|
|
19142
|
-
|
|
19143
|
-
|
|
19144
|
-
|
|
19145
|
-
|
|
19146
|
-
|
|
19147
|
-
|
|
19148
|
-
|
|
19300
|
+
var $the_sett$elm_pretty_printer$Internals$fits$ = function (w, norm) {
|
|
19301
|
+
if (w < 0) {
|
|
19302
|
+
return _Utils_Tuple2(false, norm);
|
|
19303
|
+
} else {
|
|
19304
|
+
switch (norm.$) {
|
|
19305
|
+
case 'NNil':
|
|
19306
|
+
return _Utils_Tuple2(true, norm);
|
|
19307
|
+
case 'NText':
|
|
19308
|
+
var text = norm.a;
|
|
19309
|
+
var norm1 = norm.b;
|
|
19310
|
+
var tag = norm.c;
|
|
19311
|
+
var _v1 = $the_sett$elm_pretty_printer$Internals$fits$(
|
|
19312
|
+
w - $elm$core$String$length(text),
|
|
19313
|
+
norm1);
|
|
19314
|
+
var b = _v1.a;
|
|
19315
|
+
var rest = _v1.b;
|
|
19316
|
+
return _Utils_Tuple2(
|
|
19317
|
+
b,
|
|
19318
|
+
$the_sett$elm_pretty_printer$Internals$NText$(text, rest, tag));
|
|
19319
|
+
case 'LText':
|
|
19320
|
+
var text = norm.a;
|
|
19321
|
+
var thunk = norm.b;
|
|
19322
|
+
var tag = norm.c;
|
|
19323
|
+
var norm1 = thunk(_Utils_Tuple0);
|
|
19324
|
+
var _v2 = $the_sett$elm_pretty_printer$Internals$fits$(
|
|
19325
|
+
w - $elm$core$String$length(text),
|
|
19326
|
+
norm1);
|
|
19327
|
+
var b = _v2.a;
|
|
19328
|
+
var rest = _v2.b;
|
|
19329
|
+
return _Utils_Tuple2(
|
|
19330
|
+
b,
|
|
19331
|
+
$the_sett$elm_pretty_printer$Internals$NText$(text, rest, tag));
|
|
19332
|
+
case 'NLine':
|
|
19333
|
+
return _Utils_Tuple2(true, norm);
|
|
19334
|
+
default:
|
|
19335
|
+
return _Utils_Tuple2(true, norm);
|
|
19149
19336
|
}
|
|
19150
19337
|
}
|
|
19151
19338
|
};
|
|
19152
19339
|
var $the_sett$elm_pretty_printer$Internals$fits = F2($the_sett$elm_pretty_printer$Internals$fits$);
|
|
19153
|
-
var $
|
|
19154
|
-
return
|
|
19340
|
+
var $elm$core$Basics$min$ = function (x, y) {
|
|
19341
|
+
return (_Utils_cmp(x, y) < 0) ? x : y;
|
|
19342
|
+
};
|
|
19343
|
+
var $elm$core$Basics$min = F2($elm$core$Basics$min$);
|
|
19344
|
+
var $the_sett$elm_pretty_printer$Internals$better$ = function (w, r, i, k, norm, thunk) {
|
|
19345
|
+
var effectiveWidth = $elm$core$Basics$min$(w, i + r);
|
|
19346
|
+
var _v0 = $the_sett$elm_pretty_printer$Internals$fits$(effectiveWidth - k, norm);
|
|
19347
|
+
if (_v0.a) {
|
|
19348
|
+
var norm1 = _v0.b;
|
|
19349
|
+
return norm1;
|
|
19350
|
+
} else {
|
|
19351
|
+
return thunk(_Utils_Tuple0);
|
|
19352
|
+
}
|
|
19155
19353
|
};
|
|
19156
|
-
var $the_sett$elm_pretty_printer$Internals$better =
|
|
19157
|
-
var $the_sett$elm_pretty_printer$Internals$
|
|
19158
|
-
|
|
19159
|
-
|
|
19160
|
-
|
|
19161
|
-
|
|
19162
|
-
|
|
19163
|
-
|
|
19164
|
-
|
|
19165
|
-
|
|
19166
|
-
|
|
19167
|
-
|
|
19168
|
-
|
|
19169
|
-
|
|
19170
|
-
|
|
19171
|
-
|
|
19172
|
-
|
|
19173
|
-
|
|
19174
|
-
|
|
19175
|
-
|
|
19176
|
-
|
|
19177
|
-
|
|
19178
|
-
|
|
19179
|
-
|
|
19180
|
-
|
|
19181
|
-
|
|
19182
|
-
|
|
19183
|
-
|
|
19184
|
-
|
|
19185
|
-
|
|
19186
|
-
|
|
19187
|
-
|
|
19188
|
-
|
|
19189
|
-
|
|
19190
|
-
|
|
19191
|
-
|
|
19192
|
-
|
|
19193
|
-
|
|
19194
|
-
|
|
19195
|
-
|
|
19196
|
-
|
|
19197
|
-
|
|
19198
|
-
|
|
19199
|
-
|
|
19200
|
-
|
|
19201
|
-
|
|
19202
|
-
|
|
19203
|
-
|
|
19204
|
-
|
|
19205
|
-
|
|
19354
|
+
var $the_sett$elm_pretty_printer$Internals$better = F6($the_sett$elm_pretty_printer$Internals$better$);
|
|
19355
|
+
var $the_sett$elm_pretty_printer$Internals$be$ = function (w, r, k, docs) {
|
|
19356
|
+
be:
|
|
19357
|
+
while (true) {
|
|
19358
|
+
if (!docs.b) {
|
|
19359
|
+
return $the_sett$elm_pretty_printer$Internals$NNil;
|
|
19360
|
+
} else {
|
|
19361
|
+
switch (docs.a.b.$) {
|
|
19362
|
+
case 'Empty':
|
|
19363
|
+
var _v1 = docs.a;
|
|
19364
|
+
var i = _v1.a;
|
|
19365
|
+
var _v2 = _v1.b;
|
|
19366
|
+
var ds = docs.b;
|
|
19367
|
+
var $temp$docs = ds;
|
|
19368
|
+
docs = $temp$docs;
|
|
19369
|
+
continue be;
|
|
19370
|
+
case 'Concatenate':
|
|
19371
|
+
var _v3 = docs.a;
|
|
19372
|
+
var i = _v3.a;
|
|
19373
|
+
var _v4 = _v3.b;
|
|
19374
|
+
var doc1 = _v4.a;
|
|
19375
|
+
var doc2 = _v4.b;
|
|
19376
|
+
var ds = docs.b;
|
|
19377
|
+
var $temp$docs = A2(
|
|
19378
|
+
$elm$core$List$cons,
|
|
19379
|
+
_Utils_Tuple2(i, doc1),
|
|
19380
|
+
A2(
|
|
19381
|
+
$elm$core$List$cons,
|
|
19382
|
+
_Utils_Tuple2(i, doc2),
|
|
19383
|
+
ds));
|
|
19384
|
+
docs = $temp$docs;
|
|
19385
|
+
continue be;
|
|
19386
|
+
case 'Nest':
|
|
19387
|
+
var _v5 = docs.a;
|
|
19388
|
+
var i = _v5.a;
|
|
19389
|
+
var _v6 = _v5.b;
|
|
19390
|
+
var j = _v6.a;
|
|
19391
|
+
var doc = _v6.b;
|
|
19392
|
+
var ds = docs.b;
|
|
19393
|
+
var $temp$docs = A2(
|
|
19394
|
+
$elm$core$List$cons,
|
|
19395
|
+
_Utils_Tuple2(i + j, doc),
|
|
19396
|
+
ds);
|
|
19397
|
+
docs = $temp$docs;
|
|
19398
|
+
continue be;
|
|
19399
|
+
case 'Text':
|
|
19400
|
+
var _v7 = docs.a;
|
|
19401
|
+
var i = _v7.a;
|
|
19402
|
+
var _v8 = _v7.b;
|
|
19403
|
+
var text = _v8.a;
|
|
19404
|
+
var maybeTag = _v8.b;
|
|
19405
|
+
var ds = docs.b;
|
|
19406
|
+
return $the_sett$elm_pretty_printer$Internals$LText$(
|
|
19407
|
+
text,
|
|
19408
|
+
function (_v9) {
|
|
19409
|
+
return $the_sett$elm_pretty_printer$Internals$be$(
|
|
19410
|
+
w,
|
|
19411
|
+
r,
|
|
19412
|
+
k + $elm$core$String$length(text),
|
|
19206
19413
|
ds);
|
|
19207
|
-
|
|
19208
|
-
|
|
19209
|
-
|
|
19210
|
-
|
|
19211
|
-
|
|
19212
|
-
|
|
19213
|
-
|
|
19214
|
-
|
|
19215
|
-
|
|
19216
|
-
|
|
19217
|
-
|
|
19218
|
-
|
|
19219
|
-
|
|
19220
|
-
be,
|
|
19221
|
-
w,
|
|
19222
|
-
k + $elm$core$String$length(text),
|
|
19223
|
-
ds);
|
|
19224
|
-
},
|
|
19225
|
-
maybeTag);
|
|
19226
|
-
case 'Line':
|
|
19227
|
-
var _v10 = docs.a;
|
|
19228
|
-
var i = _v10.a;
|
|
19229
|
-
var _v11 = _v10.b;
|
|
19230
|
-
var vsep = _v11.b;
|
|
19231
|
-
var ds = docs.b;
|
|
19232
|
-
return $the_sett$elm_pretty_printer$Internals$NLine$(
|
|
19233
|
-
i,
|
|
19234
|
-
vsep,
|
|
19235
|
-
function (_v12) {
|
|
19236
|
-
return A3(
|
|
19237
|
-
be,
|
|
19238
|
-
w,
|
|
19239
|
-
i + $elm$core$String$length(vsep),
|
|
19240
|
-
ds);
|
|
19241
|
-
});
|
|
19242
|
-
case 'Union':
|
|
19243
|
-
var _v13 = docs.a;
|
|
19244
|
-
var i = _v13.a;
|
|
19245
|
-
var _v14 = _v13.b;
|
|
19246
|
-
var doc = _v14.a;
|
|
19247
|
-
var doc2 = _v14.b;
|
|
19248
|
-
var ds = docs.b;
|
|
19249
|
-
return $the_sett$elm_pretty_printer$Internals$better$(
|
|
19414
|
+
},
|
|
19415
|
+
maybeTag);
|
|
19416
|
+
case 'Line':
|
|
19417
|
+
var _v10 = docs.a;
|
|
19418
|
+
var i = _v10.a;
|
|
19419
|
+
var _v11 = _v10.b;
|
|
19420
|
+
var vsep = _v11.b;
|
|
19421
|
+
var ds = docs.b;
|
|
19422
|
+
return $the_sett$elm_pretty_printer$Internals$LLine$(
|
|
19423
|
+
i,
|
|
19424
|
+
vsep,
|
|
19425
|
+
function (_v12) {
|
|
19426
|
+
return $the_sett$elm_pretty_printer$Internals$be$(
|
|
19250
19427
|
w,
|
|
19251
|
-
|
|
19252
|
-
|
|
19253
|
-
be,
|
|
19254
|
-
w,
|
|
19255
|
-
k,
|
|
19256
|
-
A2(
|
|
19257
|
-
$elm$core$List$cons,
|
|
19258
|
-
_Utils_Tuple2(i, doc),
|
|
19259
|
-
ds)),
|
|
19260
|
-
function (_v15) {
|
|
19261
|
-
return A3(
|
|
19262
|
-
be,
|
|
19263
|
-
w,
|
|
19264
|
-
k,
|
|
19265
|
-
A2(
|
|
19266
|
-
$elm$core$List$cons,
|
|
19267
|
-
_Utils_Tuple2(i, doc2),
|
|
19268
|
-
ds));
|
|
19269
|
-
});
|
|
19270
|
-
case 'Nesting':
|
|
19271
|
-
var _v16 = docs.a;
|
|
19272
|
-
var i = _v16.a;
|
|
19273
|
-
var fn = _v16.b.a;
|
|
19274
|
-
var ds = docs.b;
|
|
19275
|
-
var $temp$docs = A2(
|
|
19276
|
-
$elm$core$List$cons,
|
|
19277
|
-
_Utils_Tuple2(
|
|
19278
|
-
i,
|
|
19279
|
-
fn(i)),
|
|
19428
|
+
r,
|
|
19429
|
+
i + $elm$core$String$length(vsep),
|
|
19280
19430
|
ds);
|
|
19281
|
-
|
|
19282
|
-
|
|
19283
|
-
|
|
19284
|
-
|
|
19285
|
-
|
|
19286
|
-
|
|
19287
|
-
|
|
19288
|
-
|
|
19431
|
+
});
|
|
19432
|
+
case 'Union':
|
|
19433
|
+
var _v13 = docs.a;
|
|
19434
|
+
var i = _v13.a;
|
|
19435
|
+
var _v14 = _v13.b;
|
|
19436
|
+
var doc1 = _v14.a;
|
|
19437
|
+
var doc2 = _v14.b;
|
|
19438
|
+
var ds = docs.b;
|
|
19439
|
+
return $the_sett$elm_pretty_printer$Internals$better$(
|
|
19440
|
+
w,
|
|
19441
|
+
r,
|
|
19442
|
+
i,
|
|
19443
|
+
k,
|
|
19444
|
+
$the_sett$elm_pretty_printer$Internals$be$(
|
|
19445
|
+
w,
|
|
19446
|
+
r,
|
|
19447
|
+
k,
|
|
19448
|
+
A2(
|
|
19289
19449
|
$elm$core$List$cons,
|
|
19290
|
-
_Utils_Tuple2(
|
|
19291
|
-
|
|
19292
|
-
|
|
19293
|
-
|
|
19294
|
-
|
|
19295
|
-
|
|
19296
|
-
|
|
19297
|
-
|
|
19450
|
+
_Utils_Tuple2(i, doc1),
|
|
19451
|
+
ds)),
|
|
19452
|
+
function (_v15) {
|
|
19453
|
+
return $the_sett$elm_pretty_printer$Internals$be$(
|
|
19454
|
+
w,
|
|
19455
|
+
r,
|
|
19456
|
+
k,
|
|
19457
|
+
A2(
|
|
19458
|
+
$elm$core$List$cons,
|
|
19459
|
+
_Utils_Tuple2(i, doc2),
|
|
19460
|
+
ds));
|
|
19461
|
+
});
|
|
19462
|
+
case 'FlatAlt':
|
|
19463
|
+
var _v16 = docs.a;
|
|
19464
|
+
var i = _v16.a;
|
|
19465
|
+
var _v17 = _v16.b;
|
|
19466
|
+
var brokenDoc = _v17.b;
|
|
19467
|
+
var ds = docs.b;
|
|
19468
|
+
var $temp$docs = A2(
|
|
19469
|
+
$elm$core$List$cons,
|
|
19470
|
+
_Utils_Tuple2(i, brokenDoc),
|
|
19471
|
+
ds);
|
|
19472
|
+
docs = $temp$docs;
|
|
19473
|
+
continue be;
|
|
19474
|
+
case 'Nesting':
|
|
19475
|
+
var _v18 = docs.a;
|
|
19476
|
+
var i = _v18.a;
|
|
19477
|
+
var fn = _v18.b.a;
|
|
19478
|
+
var ds = docs.b;
|
|
19479
|
+
var $temp$docs = A2(
|
|
19480
|
+
$elm$core$List$cons,
|
|
19481
|
+
_Utils_Tuple2(
|
|
19482
|
+
i,
|
|
19483
|
+
fn(i)),
|
|
19484
|
+
ds);
|
|
19485
|
+
docs = $temp$docs;
|
|
19486
|
+
continue be;
|
|
19487
|
+
default:
|
|
19488
|
+
var _v19 = docs.a;
|
|
19489
|
+
var i = _v19.a;
|
|
19490
|
+
var fn = _v19.b.a;
|
|
19491
|
+
var ds = docs.b;
|
|
19492
|
+
var $temp$docs = A2(
|
|
19493
|
+
$elm$core$List$cons,
|
|
19494
|
+
_Utils_Tuple2(
|
|
19495
|
+
i,
|
|
19496
|
+
fn(k)),
|
|
19497
|
+
ds);
|
|
19498
|
+
docs = $temp$docs;
|
|
19499
|
+
continue be;
|
|
19298
19500
|
}
|
|
19299
|
-
}
|
|
19300
|
-
|
|
19301
|
-
|
|
19501
|
+
}
|
|
19502
|
+
}
|
|
19503
|
+
};
|
|
19504
|
+
var $the_sett$elm_pretty_printer$Internals$be = F4($the_sett$elm_pretty_printer$Internals$be$);
|
|
19505
|
+
var $the_sett$elm_pretty_printer$Internals$best$ = function (width, startCol, x) {
|
|
19506
|
+
return $the_sett$elm_pretty_printer$Internals$be$(
|
|
19507
|
+
width,
|
|
19302
19508
|
width,
|
|
19303
19509
|
startCol,
|
|
19304
19510
|
_List_fromArray(
|
|
@@ -19317,29 +19523,57 @@ var $the_sett$elm_pretty_printer$Internals$layout = function (normal) {
|
|
|
19317
19523
|
return acc;
|
|
19318
19524
|
case 'NText':
|
|
19319
19525
|
var text = normal2.a;
|
|
19320
|
-
var
|
|
19321
|
-
var
|
|
19322
|
-
|
|
19526
|
+
var norm = normal2.b;
|
|
19527
|
+
var $temp$normal2 = norm,
|
|
19528
|
+
$temp$acc = A2($elm$core$List$cons, text, acc);
|
|
19529
|
+
normal2 = $temp$normal2;
|
|
19530
|
+
acc = $temp$acc;
|
|
19531
|
+
continue layoutInner;
|
|
19532
|
+
case 'LText':
|
|
19533
|
+
var text = normal2.a;
|
|
19534
|
+
var thunk = normal2.b;
|
|
19535
|
+
var norm = thunk(_Utils_Tuple0);
|
|
19536
|
+
var $temp$normal2 = norm,
|
|
19323
19537
|
$temp$acc = A2($elm$core$List$cons, text, acc);
|
|
19324
19538
|
normal2 = $temp$normal2;
|
|
19325
19539
|
acc = $temp$acc;
|
|
19326
19540
|
continue layoutInner;
|
|
19541
|
+
case 'NLine':
|
|
19542
|
+
var i = normal2.a;
|
|
19543
|
+
var sep = normal2.b;
|
|
19544
|
+
var norm = normal2.c;
|
|
19545
|
+
if (norm.$ === 'NLine') {
|
|
19546
|
+
var $temp$normal2 = norm,
|
|
19547
|
+
$temp$acc = A2($elm$core$List$cons, '\n' + sep, acc);
|
|
19548
|
+
normal2 = $temp$normal2;
|
|
19549
|
+
acc = $temp$acc;
|
|
19550
|
+
continue layoutInner;
|
|
19551
|
+
} else {
|
|
19552
|
+
var $temp$normal2 = norm,
|
|
19553
|
+
$temp$acc = A2(
|
|
19554
|
+
$elm$core$List$cons,
|
|
19555
|
+
'\n' + ($elm$core$String$repeat$(i, ' ') + sep),
|
|
19556
|
+
acc);
|
|
19557
|
+
normal2 = $temp$normal2;
|
|
19558
|
+
acc = $temp$acc;
|
|
19559
|
+
continue layoutInner;
|
|
19560
|
+
}
|
|
19327
19561
|
default:
|
|
19328
19562
|
var i = normal2.a;
|
|
19329
19563
|
var sep = normal2.b;
|
|
19330
|
-
var
|
|
19331
|
-
var norm =
|
|
19564
|
+
var thunk = normal2.c;
|
|
19565
|
+
var norm = thunk(_Utils_Tuple0);
|
|
19332
19566
|
if (norm.$ === 'NLine') {
|
|
19333
|
-
var $temp$normal2 =
|
|
19567
|
+
var $temp$normal2 = norm,
|
|
19334
19568
|
$temp$acc = A2($elm$core$List$cons, '\n' + sep, acc);
|
|
19335
19569
|
normal2 = $temp$normal2;
|
|
19336
19570
|
acc = $temp$acc;
|
|
19337
19571
|
continue layoutInner;
|
|
19338
19572
|
} else {
|
|
19339
|
-
var $temp$normal2 =
|
|
19573
|
+
var $temp$normal2 = norm,
|
|
19340
19574
|
$temp$acc = A2(
|
|
19341
19575
|
$elm$core$List$cons,
|
|
19342
|
-
'\n' + ($
|
|
19576
|
+
'\n' + ($elm$core$String$repeat$(i, ' ') + sep),
|
|
19343
19577
|
acc);
|
|
19344
19578
|
normal2 = $temp$normal2;
|
|
19345
19579
|
acc = $temp$acc;
|
|
@@ -19403,6 +19637,77 @@ var $mdgriffith$elm_codegen$Internal$Comments$prettyFileComment$ = function (wid
|
|
|
19403
19637
|
splits);
|
|
19404
19638
|
};
|
|
19405
19639
|
var $mdgriffith$elm_codegen$Internal$Comments$prettyFileComment = F2($mdgriffith$elm_codegen$Internal$Comments$prettyFileComment$);
|
|
19640
|
+
var $elm$core$Basics$ge = _Utils_ge;
|
|
19641
|
+
var $mdgriffith$elm_codegen$Internal$Write$checkIfIsIndented$ = function (tll, count) {
|
|
19642
|
+
checkIfIsIndented:
|
|
19643
|
+
while (true) {
|
|
19644
|
+
if (count >= 5) {
|
|
19645
|
+
return true;
|
|
19646
|
+
} else {
|
|
19647
|
+
if (!tll.b) {
|
|
19648
|
+
return false;
|
|
19649
|
+
} else {
|
|
19650
|
+
var _v1 = tll.a;
|
|
19651
|
+
var range = _v1.a;
|
|
19652
|
+
var xs = tll.b;
|
|
19653
|
+
if (range.start.row > 0) {
|
|
19654
|
+
return true;
|
|
19655
|
+
} else {
|
|
19656
|
+
var $temp$tll = xs,
|
|
19657
|
+
$temp$count = count + 1;
|
|
19658
|
+
tll = $temp$tll;
|
|
19659
|
+
count = $temp$count;
|
|
19660
|
+
continue checkIfIsIndented;
|
|
19661
|
+
}
|
|
19662
|
+
}
|
|
19663
|
+
}
|
|
19664
|
+
}
|
|
19665
|
+
};
|
|
19666
|
+
var $mdgriffith$elm_codegen$Internal$Write$checkIfIsIndented = F2($mdgriffith$elm_codegen$Internal$Write$checkIfIsIndented$);
|
|
19667
|
+
var $mdgriffith$elm_codegen$Internal$Write$prettyGroupedExposing$ = function (_v0, rendered) {
|
|
19668
|
+
var range = _v0.a;
|
|
19669
|
+
var exposedElement = _v0.b;
|
|
19670
|
+
var renderedTopElement = $mdgriffith$elm_codegen$Internal$Write$prettyTopLevelExpose(exposedElement);
|
|
19671
|
+
var currentRow = range.start.row;
|
|
19672
|
+
var newRow = (!_Utils_eq(currentRow, rendered.previousRow)) || (rendered.rowCount > 5);
|
|
19673
|
+
var newRendered = rendered.firstIteration ? renderedTopElement : (newRow ? $the_sett$elm_pretty_printer$Pretty$append$(
|
|
19674
|
+
$the_sett$elm_pretty_printer$Pretty$string('\n , '),
|
|
19675
|
+
renderedTopElement) : $the_sett$elm_pretty_printer$Pretty$append$(
|
|
19676
|
+
$the_sett$elm_pretty_printer$Pretty$string(', '),
|
|
19677
|
+
renderedTopElement));
|
|
19678
|
+
return {
|
|
19679
|
+
firstIteration: false,
|
|
19680
|
+
previousRow: currentRow,
|
|
19681
|
+
rendered: $the_sett$elm_pretty_printer$Pretty$append$(rendered.rendered, newRendered),
|
|
19682
|
+
rowCount: newRow ? 0 : (rendered.rowCount + 1)
|
|
19683
|
+
};
|
|
19684
|
+
};
|
|
19685
|
+
var $mdgriffith$elm_codegen$Internal$Write$prettyGroupedExposing = F2($mdgriffith$elm_codegen$Internal$Write$prettyGroupedExposing$);
|
|
19686
|
+
var $mdgriffith$elm_codegen$Internal$Write$prettyModuleExposing = function (exposing_) {
|
|
19687
|
+
var exposings = function () {
|
|
19688
|
+
if (exposing_.$ === 'All') {
|
|
19689
|
+
return $the_sett$elm_pretty_printer$Pretty$surround$(
|
|
19690
|
+
$the_sett$elm_pretty_printer$Pretty$string(' ('),
|
|
19691
|
+
$the_sett$elm_pretty_printer$Pretty$string(')'),
|
|
19692
|
+
$the_sett$elm_pretty_printer$Pretty$string('..'));
|
|
19693
|
+
} else {
|
|
19694
|
+
var tll = exposing_.a;
|
|
19695
|
+
var isIndented = $mdgriffith$elm_codegen$Internal$Write$checkIfIsIndented$(tll, 0);
|
|
19696
|
+
var start = isIndented ? $the_sett$elm_pretty_printer$Pretty$string('\n ( ') : $the_sett$elm_pretty_printer$Pretty$string(' ( ');
|
|
19697
|
+
var end = isIndented ? $the_sett$elm_pretty_printer$Pretty$string('\n )') : $the_sett$elm_pretty_printer$Pretty$string(' )');
|
|
19698
|
+
return $the_sett$elm_pretty_printer$Pretty$append$(
|
|
19699
|
+
$elm$core$List$foldr$(
|
|
19700
|
+
$mdgriffith$elm_codegen$Internal$Write$prettyGroupedExposing,
|
|
19701
|
+
{firstIteration: true, previousRow: 0, rendered: start, rowCount: 0},
|
|
19702
|
+
tll).rendered,
|
|
19703
|
+
end);
|
|
19704
|
+
}
|
|
19705
|
+
}();
|
|
19706
|
+
return A2(
|
|
19707
|
+
$the_sett$elm_pretty_printer$Pretty$a,
|
|
19708
|
+
exposings,
|
|
19709
|
+
$the_sett$elm_pretty_printer$Pretty$string('exposing'));
|
|
19710
|
+
};
|
|
19406
19711
|
var $mdgriffith$elm_codegen$Internal$Write$prettyDefaultModuleData = function (moduleData) {
|
|
19407
19712
|
return $the_sett$elm_pretty_printer$Pretty$words(
|
|
19408
19713
|
_List_fromArray(
|
|
@@ -19410,7 +19715,7 @@ var $mdgriffith$elm_codegen$Internal$Write$prettyDefaultModuleData = function (m
|
|
|
19410
19715
|
$the_sett$elm_pretty_printer$Pretty$string('module'),
|
|
19411
19716
|
$mdgriffith$elm_codegen$Internal$Write$prettyModuleName(
|
|
19412
19717
|
$mdgriffith$elm_codegen$Internal$Compiler$denode(moduleData.moduleName)),
|
|
19413
|
-
$mdgriffith$elm_codegen$Internal$Write$
|
|
19718
|
+
$mdgriffith$elm_codegen$Internal$Write$prettyModuleExposing(
|
|
19414
19719
|
$mdgriffith$elm_codegen$Internal$Compiler$denode(moduleData.exposingList))
|
|
19415
19720
|
]));
|
|
19416
19721
|
};
|
|
@@ -19476,7 +19781,7 @@ var $mdgriffith$elm_codegen$Internal$Write$prettyEffectModuleData = function (mo
|
|
|
19476
19781
|
prettyCmdAndSub,
|
|
19477
19782
|
$mdgriffith$elm_codegen$Internal$Compiler$denodeMaybe(moduleData.command),
|
|
19478
19783
|
$mdgriffith$elm_codegen$Internal$Compiler$denodeMaybe(moduleData.subscription))),
|
|
19479
|
-
$mdgriffith$elm_codegen$Internal$Write$
|
|
19784
|
+
$mdgriffith$elm_codegen$Internal$Write$prettyModuleExposing(
|
|
19480
19785
|
$mdgriffith$elm_codegen$Internal$Compiler$denode(moduleData.exposingList))
|
|
19481
19786
|
]));
|
|
19482
19787
|
};
|
|
@@ -19487,7 +19792,7 @@ var $mdgriffith$elm_codegen$Internal$Write$prettyPortModuleData = function (modu
|
|
|
19487
19792
|
$the_sett$elm_pretty_printer$Pretty$string('port module'),
|
|
19488
19793
|
$mdgriffith$elm_codegen$Internal$Write$prettyModuleName(
|
|
19489
19794
|
$mdgriffith$elm_codegen$Internal$Compiler$denode(moduleData.moduleName)),
|
|
19490
|
-
$mdgriffith$elm_codegen$Internal$Write$
|
|
19795
|
+
$mdgriffith$elm_codegen$Internal$Write$prettyModuleExposing(
|
|
19491
19796
|
$mdgriffith$elm_codegen$Internal$Compiler$denode(moduleData.exposingList))
|
|
19492
19797
|
]));
|
|
19493
19798
|
};
|
|
@@ -19549,7 +19854,15 @@ var $mdgriffith$elm_codegen$Internal$Write$write = $mdgriffith$elm_codegen$Inter
|
|
|
19549
19854
|
var $mdgriffith$elm_codegen$Internal$Render$render$ = function (initialDocs, fileDetails) {
|
|
19550
19855
|
var rendered = $elm$core$List$foldl$(
|
|
19551
19856
|
$mdgriffith$elm_codegen$Internal$Render$renderDecls(fileDetails),
|
|
19552
|
-
{
|
|
19857
|
+
{
|
|
19858
|
+
declarations: _List_Nil,
|
|
19859
|
+
exposePath: _List_fromArray(
|
|
19860
|
+
[0]),
|
|
19861
|
+
exposed: _List_Nil,
|
|
19862
|
+
hasPorts: false,
|
|
19863
|
+
imports: _List_Nil,
|
|
19864
|
+
warnings: _List_Nil
|
|
19865
|
+
},
|
|
19553
19866
|
fileDetails.declarations);
|
|
19554
19867
|
var body = $mdgriffith$elm_codegen$Internal$Write$write(
|
|
19555
19868
|
{
|
|
@@ -19587,7 +19900,8 @@ var $mdgriffith$elm_codegen$Internal$Render$render$ = function (initialDocs, fil
|
|
|
19587
19900
|
} else {
|
|
19588
19901
|
return $mdgriffith$elm_codegen$Internal$Compiler$nodify(
|
|
19589
19902
|
$stil4m$elm_syntax$Elm$Syntax$Exposing$Explicit(
|
|
19590
|
-
$
|
|
19903
|
+
$elm$core$List$concat(
|
|
19904
|
+
$elm$core$List$indexedMap$($mdgriffith$elm_codegen$Internal$Render$groupExposedItems, rendered.exposed))));
|
|
19591
19905
|
}
|
|
19592
19906
|
}(),
|
|
19593
19907
|
moduleName: $mdgriffith$elm_codegen$Internal$Compiler$nodify(fileDetails.moduleName)
|
|
@@ -20221,20 +20535,27 @@ var $mdgriffith$elm_codegen$Elm$Case$combineInferences$ = function (infs, infRes
|
|
|
20221
20535
|
}
|
|
20222
20536
|
};
|
|
20223
20537
|
var $mdgriffith$elm_codegen$Elm$Case$combineInferences = F2($mdgriffith$elm_codegen$Elm$Case$combineInferences$);
|
|
20224
|
-
var $mdgriffith$elm_codegen$Internal$Compiler$unifyOn$ = function (_v0, res) {
|
|
20538
|
+
var $mdgriffith$elm_codegen$Internal$Compiler$unifyOn$ = function (index, _v0, res) {
|
|
20225
20539
|
var annDetails = _v0.a;
|
|
20226
20540
|
if (res.$ === 'Err') {
|
|
20227
20541
|
return res;
|
|
20228
20542
|
} else {
|
|
20229
20543
|
var inf = res.a;
|
|
20230
|
-
var _v2 = $mdgriffith$elm_codegen$Internal$Compiler$unifiable$(
|
|
20544
|
+
var _v2 = $mdgriffith$elm_codegen$Internal$Compiler$unifiable$(
|
|
20545
|
+
inf.aliases,
|
|
20546
|
+
inf.inferences,
|
|
20547
|
+
annDetails.annotation(index),
|
|
20548
|
+
inf.type_);
|
|
20231
20549
|
var newInferences = _v2.a;
|
|
20232
20550
|
var finalResult = _v2.b;
|
|
20233
20551
|
if (finalResult.$ === 'Ok') {
|
|
20234
20552
|
var finalType = finalResult.a;
|
|
20235
20553
|
return $elm$core$Result$Ok(
|
|
20236
20554
|
{
|
|
20237
|
-
aliases: A2(
|
|
20555
|
+
aliases: A2(
|
|
20556
|
+
$mdgriffith$elm_codegen$Internal$Compiler$mergeAliases,
|
|
20557
|
+
annDetails.aliases(index),
|
|
20558
|
+
inf.aliases),
|
|
20238
20559
|
inferences: newInferences,
|
|
20239
20560
|
type_: finalType
|
|
20240
20561
|
});
|
|
@@ -20246,9 +20567,10 @@ var $mdgriffith$elm_codegen$Internal$Compiler$unifyOn$ = function (_v0, res) {
|
|
|
20246
20567
|
}
|
|
20247
20568
|
}
|
|
20248
20569
|
};
|
|
20249
|
-
var $mdgriffith$elm_codegen$Internal$Compiler$unifyOn =
|
|
20570
|
+
var $mdgriffith$elm_codegen$Internal$Compiler$unifyOn = F3($mdgriffith$elm_codegen$Internal$Compiler$unifyOn$);
|
|
20250
20571
|
var $mdgriffith$elm_codegen$Elm$Case$captureCaseHelper$ = function (mainCaseExpressionModule, _v0, accum) {
|
|
20251
20572
|
var toBranch = _v0.a;
|
|
20573
|
+
var newIndex = $mdgriffith$elm_codegen$Internal$Index$next(accum.index);
|
|
20252
20574
|
var _v1 = toBranch(
|
|
20253
20575
|
$mdgriffith$elm_codegen$Internal$Index$dive(accum.index));
|
|
20254
20576
|
var branchIndex = _v1.a;
|
|
@@ -20281,8 +20603,17 @@ var $mdgriffith$elm_codegen$Elm$Case$captureCaseHelper$ = function (mainCaseExpr
|
|
|
20281
20603
|
var gatheredAnnotation = _v3.a.a;
|
|
20282
20604
|
return $elm$core$Maybe$Just(
|
|
20283
20605
|
$mdgriffith$elm_codegen$Internal$Compiler$unifyOn$(
|
|
20606
|
+
newIndex,
|
|
20284
20607
|
$mdgriffith$elm_codegen$Internal$Compiler$Annotation(
|
|
20285
|
-
{
|
|
20608
|
+
{
|
|
20609
|
+
aliases: function (_v4) {
|
|
20610
|
+
return gatheredAnnotation.aliases;
|
|
20611
|
+
},
|
|
20612
|
+
annotation: function (_v5) {
|
|
20613
|
+
return gatheredAnnotation.type_;
|
|
20614
|
+
},
|
|
20615
|
+
imports: _List_Nil
|
|
20616
|
+
}),
|
|
20286
20617
|
$mdgriffith$elm_codegen$Elm$Case$combineInferences$(gatheredAnnotation.inferences, exp.annotation)));
|
|
20287
20618
|
} else {
|
|
20288
20619
|
var err = _v3.a;
|
|
@@ -20297,7 +20628,7 @@ var $mdgriffith$elm_codegen$Elm$Case$captureCaseHelper$ = function (mainCaseExpr
|
|
|
20297
20628
|
$mdgriffith$elm_codegen$Internal$Compiler$nodify(exp.expression)),
|
|
20298
20629
|
accum.cases),
|
|
20299
20630
|
imports: _Utils_ap(accum.imports, exp.imports),
|
|
20300
|
-
index:
|
|
20631
|
+
index: newIndex
|
|
20301
20632
|
};
|
|
20302
20633
|
};
|
|
20303
20634
|
var $mdgriffith$elm_codegen$Elm$Case$captureCaseHelper = F3($mdgriffith$elm_codegen$Elm$Case$captureCaseHelper$);
|
|
@@ -20344,9 +20675,9 @@ var $mdgriffith$elm_codegen$Elm$Case$captureCase$ = function (mainExpression, ma
|
|
|
20344
20675
|
}));
|
|
20345
20676
|
};
|
|
20346
20677
|
var $mdgriffith$elm_codegen$Elm$Case$captureCase = F4($mdgriffith$elm_codegen$Elm$Case$captureCase$);
|
|
20347
|
-
var $mdgriffith$elm_codegen$Internal$Compiler$getTypeModule = function (_v0) {
|
|
20678
|
+
var $mdgriffith$elm_codegen$Internal$Compiler$getTypeModule$ = function (index, _v0) {
|
|
20348
20679
|
var annotation = _v0.a;
|
|
20349
|
-
var _v1 = annotation.annotation;
|
|
20680
|
+
var _v1 = annotation.annotation(index);
|
|
20350
20681
|
if (_v1.$ === 'Typed') {
|
|
20351
20682
|
var _v2 = _v1.a;
|
|
20352
20683
|
var _v3 = _v2.b;
|
|
@@ -20356,6 +20687,7 @@ var $mdgriffith$elm_codegen$Internal$Compiler$getTypeModule = function (_v0) {
|
|
|
20356
20687
|
return _List_Nil;
|
|
20357
20688
|
}
|
|
20358
20689
|
};
|
|
20690
|
+
var $mdgriffith$elm_codegen$Internal$Compiler$getTypeModule = F2($mdgriffith$elm_codegen$Internal$Compiler$getTypeModule$);
|
|
20359
20691
|
var $mdgriffith$elm_codegen$Elm$withType$ = function (ann, _v0) {
|
|
20360
20692
|
var annDetails = ann.a;
|
|
20361
20693
|
var toExp = _v0.a;
|
|
@@ -20366,7 +20698,7 @@ var $mdgriffith$elm_codegen$Elm$withType$ = function (ann, _v0) {
|
|
|
20366
20698
|
exp,
|
|
20367
20699
|
{
|
|
20368
20700
|
annotation: function () {
|
|
20369
|
-
var _v1 = $mdgriffith$elm_codegen$Internal$Compiler$unifyOn$(ann, exp.annotation);
|
|
20701
|
+
var _v1 = $mdgriffith$elm_codegen$Internal$Compiler$unifyOn$(index, ann, exp.annotation);
|
|
20370
20702
|
if (_v1.$ === 'Ok') {
|
|
20371
20703
|
var unified = _v1.a;
|
|
20372
20704
|
return $elm$core$Result$Ok(unified);
|
|
@@ -20375,10 +20707,18 @@ var $mdgriffith$elm_codegen$Elm$withType$ = function (ann, _v0) {
|
|
|
20375
20707
|
if (_v2.$ === 'Ok') {
|
|
20376
20708
|
var expressionAnnotation = _v2.a;
|
|
20377
20709
|
return $elm$core$Result$Ok(
|
|
20378
|
-
{
|
|
20710
|
+
{
|
|
20711
|
+
aliases: expressionAnnotation.aliases,
|
|
20712
|
+
inferences: expressionAnnotation.inferences,
|
|
20713
|
+
type_: annDetails.annotation(index)
|
|
20714
|
+
});
|
|
20379
20715
|
} else {
|
|
20380
20716
|
return $elm$core$Result$Ok(
|
|
20381
|
-
{
|
|
20717
|
+
{
|
|
20718
|
+
aliases: $mdgriffith$elm_codegen$Internal$Compiler$emptyAliases,
|
|
20719
|
+
inferences: $elm$core$Dict$empty,
|
|
20720
|
+
type_: annDetails.annotation(index)
|
|
20721
|
+
});
|
|
20382
20722
|
}
|
|
20383
20723
|
}
|
|
20384
20724
|
}(),
|
|
@@ -20393,7 +20733,7 @@ var $mdgriffith$elm_codegen$Elm$Case$custom$ = function (mainExpression, annotat
|
|
|
20393
20733
|
var myMain = $mdgriffith$elm_codegen$Elm$withType$(annotation, mainExpression);
|
|
20394
20734
|
var _v0 = $mdgriffith$elm_codegen$Elm$Case$captureCase$(
|
|
20395
20735
|
myMain,
|
|
20396
|
-
$mdgriffith$elm_codegen$Internal$Compiler$getTypeModule(annotation),
|
|
20736
|
+
$mdgriffith$elm_codegen$Internal$Compiler$getTypeModule$(index, annotation),
|
|
20397
20737
|
$mdgriffith$elm_codegen$Internal$Index$dive(index),
|
|
20398
20738
|
branches);
|
|
20399
20739
|
var expr = _v0.a;
|
|
@@ -20430,15 +20770,22 @@ var $mdgriffith$elm_codegen$Internal$Types$custom$ = function (mod_, name, vars)
|
|
|
20430
20770
|
$elm$core$List$map$($mdgriffith$elm_codegen$Internal$Types$nodify, vars));
|
|
20431
20771
|
};
|
|
20432
20772
|
var $mdgriffith$elm_codegen$Internal$Types$custom = F3($mdgriffith$elm_codegen$Internal$Types$custom$);
|
|
20433
|
-
var $mdgriffith$elm_codegen$Internal$Arg$
|
|
20773
|
+
var $mdgriffith$elm_codegen$Internal$Arg$customTypeWith$ = function (details, toType) {
|
|
20774
|
+
var variantName = details.variantName;
|
|
20775
|
+
var typeName = details.typeName;
|
|
20434
20776
|
return $mdgriffith$elm_codegen$Internal$Arg$Arg(
|
|
20435
20777
|
function (index) {
|
|
20436
|
-
var
|
|
20778
|
+
var importFrom = $mdgriffith$elm_codegen$Internal$Index$getImport$(index, details.importFrom);
|
|
20779
|
+
var imports = $elm$core$List$isEmpty(importFrom) ? _List_Nil : _List_fromArray(
|
|
20780
|
+
[importFrom]);
|
|
20437
20781
|
var annotation = $elm$core$Result$Ok(
|
|
20438
20782
|
{
|
|
20439
20783
|
aliases: $mdgriffith$elm_codegen$Internal$Compiler$emptyAliases,
|
|
20440
20784
|
inferences: $elm$core$Dict$empty,
|
|
20441
|
-
type_: $mdgriffith$elm_codegen$Internal$Types$custom$(
|
|
20785
|
+
type_: $mdgriffith$elm_codegen$Internal$Types$custom$(
|
|
20786
|
+
importFrom,
|
|
20787
|
+
$mdgriffith$elm_codegen$Internal$Format$formatType(typeName),
|
|
20788
|
+
_List_Nil)
|
|
20442
20789
|
});
|
|
20443
20790
|
return {
|
|
20444
20791
|
details: {
|
|
@@ -20446,7 +20793,10 @@ var $mdgriffith$elm_codegen$Internal$Arg$customType$ = function (name, toType) {
|
|
|
20446
20793
|
imports: imports,
|
|
20447
20794
|
pattern: $mdgriffith$elm_codegen$Internal$Compiler$nodify(
|
|
20448
20795
|
$stil4m$elm_syntax$Elm$Syntax$Pattern$NamedPattern$(
|
|
20449
|
-
{
|
|
20796
|
+
{
|
|
20797
|
+
moduleName: importFrom,
|
|
20798
|
+
name: $mdgriffith$elm_codegen$Internal$Format$formatType(variantName)
|
|
20799
|
+
},
|
|
20450
20800
|
_List_Nil))
|
|
20451
20801
|
},
|
|
20452
20802
|
index: $mdgriffith$elm_codegen$Internal$Index$dive(index),
|
|
@@ -20454,6 +20804,16 @@ var $mdgriffith$elm_codegen$Internal$Arg$customType$ = function (name, toType) {
|
|
|
20454
20804
|
};
|
|
20455
20805
|
});
|
|
20456
20806
|
};
|
|
20807
|
+
var $mdgriffith$elm_codegen$Internal$Arg$customTypeWith = F2($mdgriffith$elm_codegen$Internal$Arg$customTypeWith$);
|
|
20808
|
+
var $mdgriffith$elm_codegen$Internal$Arg$customType$ = function (name, toType) {
|
|
20809
|
+
return $mdgriffith$elm_codegen$Internal$Arg$customTypeWith$(
|
|
20810
|
+
{
|
|
20811
|
+
importFrom: _List_Nil,
|
|
20812
|
+
typeName: $mdgriffith$elm_codegen$Internal$Format$formatValue(name),
|
|
20813
|
+
variantName: name
|
|
20814
|
+
},
|
|
20815
|
+
toType);
|
|
20816
|
+
};
|
|
20457
20817
|
var $mdgriffith$elm_codegen$Internal$Arg$customType = F2($mdgriffith$elm_codegen$Internal$Arg$customType$);
|
|
20458
20818
|
var $mdgriffith$elm_codegen$Elm$Arg$customType = $mdgriffith$elm_codegen$Internal$Arg$customType;
|
|
20459
20819
|
var $stil4m$elm_syntax$Elm$Syntax$Pattern$ListPattern = function (a) {
|
|
@@ -20732,30 +21092,34 @@ var $author$project$Gen$Tuple$first = function (firstArg_) {
|
|
|
20732
21092
|
var $mdgriffith$elm_codegen$Elm$Annotation$record = function (fields) {
|
|
20733
21093
|
return $mdgriffith$elm_codegen$Internal$Compiler$Annotation(
|
|
20734
21094
|
{
|
|
20735
|
-
aliases:
|
|
20736
|
-
|
|
20737
|
-
|
|
20738
|
-
|
|
20739
|
-
|
|
20740
|
-
|
|
20741
|
-
|
|
20742
|
-
|
|
20743
|
-
|
|
20744
|
-
|
|
20745
|
-
|
|
20746
|
-
|
|
20747
|
-
|
|
20748
|
-
|
|
20749
|
-
|
|
20750
|
-
|
|
20751
|
-
|
|
20752
|
-
|
|
20753
|
-
|
|
20754
|
-
|
|
20755
|
-
|
|
20756
|
-
$mdgriffith$elm_codegen$Internal$Compiler$
|
|
20757
|
-
|
|
20758
|
-
|
|
21095
|
+
aliases: function (index) {
|
|
21096
|
+
return $elm$core$List$foldl$(
|
|
21097
|
+
F2(
|
|
21098
|
+
function (_v0, aliases) {
|
|
21099
|
+
var ann = _v0.b;
|
|
21100
|
+
return A2(
|
|
21101
|
+
$mdgriffith$elm_codegen$Internal$Compiler$mergeAliases,
|
|
21102
|
+
$mdgriffith$elm_codegen$Elm$Annotation$getAliases$(index, ann),
|
|
21103
|
+
aliases);
|
|
21104
|
+
}),
|
|
21105
|
+
$mdgriffith$elm_codegen$Internal$Compiler$emptyAliases,
|
|
21106
|
+
fields);
|
|
21107
|
+
},
|
|
21108
|
+
annotation: function (index) {
|
|
21109
|
+
return $stil4m$elm_syntax$Elm$Syntax$TypeAnnotation$Record(
|
|
21110
|
+
$mdgriffith$elm_codegen$Internal$Compiler$nodifyAll(
|
|
21111
|
+
$elm$core$List$map$(
|
|
21112
|
+
function (_v1) {
|
|
21113
|
+
var name = _v1.a;
|
|
21114
|
+
var ann = _v1.b;
|
|
21115
|
+
return _Utils_Tuple2(
|
|
21116
|
+
$mdgriffith$elm_codegen$Internal$Compiler$nodify(
|
|
21117
|
+
$mdgriffith$elm_codegen$Internal$Format$formatValue(name)),
|
|
21118
|
+
$mdgriffith$elm_codegen$Internal$Compiler$nodify(
|
|
21119
|
+
$mdgriffith$elm_codegen$Internal$Compiler$getInnerAnnotation$(index, ann)));
|
|
21120
|
+
},
|
|
21121
|
+
fields)));
|
|
21122
|
+
},
|
|
20759
21123
|
imports: $elm$core$List$concatMap$(
|
|
20760
21124
|
A2($elm$core$Basics$composeR, $elm$core$Tuple$second, $mdgriffith$elm_codegen$Internal$Compiler$getAnnotationImports),
|
|
20761
21125
|
fields)
|
|
@@ -23224,13 +23588,6 @@ var $author$project$Pages$Internal$RoutePattern$endingToVariantName = function (
|
|
|
23224
23588
|
$mdgriffith$elm_codegen$Elm$Annotation$list($mdgriffith$elm_codegen$Elm$Annotation$string))));
|
|
23225
23589
|
}
|
|
23226
23590
|
};
|
|
23227
|
-
var $elm$core$List$isEmpty = function (xs) {
|
|
23228
|
-
if (!xs.b) {
|
|
23229
|
-
return true;
|
|
23230
|
-
} else {
|
|
23231
|
-
return false;
|
|
23232
|
-
}
|
|
23233
|
-
};
|
|
23234
23591
|
var $mdgriffith$elm_codegen$Elm$Variant$ = function (a, b) {
|
|
23235
23592
|
return {$: 'Variant', a: a, b: b};
|
|
23236
23593
|
};
|
|
@@ -23587,7 +23944,7 @@ var $mdgriffith$elm_codegen$Elm$aliasWith$ = function (name, generics, innerAnno
|
|
|
23587
23944
|
exposed: $mdgriffith$elm_codegen$Internal$Compiler$NotExposed,
|
|
23588
23945
|
imports: $mdgriffith$elm_codegen$Internal$Compiler$getAnnotationImports(innerAnnotation),
|
|
23589
23946
|
name: name,
|
|
23590
|
-
toBody: function (
|
|
23947
|
+
toBody: function (index) {
|
|
23591
23948
|
return {
|
|
23592
23949
|
additionalImports: _List_Nil,
|
|
23593
23950
|
declaration: $stil4m$elm_syntax$Elm$Syntax$Declaration$AliasDeclaration(
|
|
@@ -23596,13 +23953,13 @@ var $mdgriffith$elm_codegen$Elm$aliasWith$ = function (name, generics, innerAnno
|
|
|
23596
23953
|
generics: $mdgriffith$elm_codegen$Elm$getGenerics(
|
|
23597
23954
|
{
|
|
23598
23955
|
keepExtra: false,
|
|
23599
|
-
needed: $mdgriffith$elm_codegen$Internal$Compiler$getGenerics(innerAnnotation),
|
|
23956
|
+
needed: $mdgriffith$elm_codegen$Internal$Compiler$getGenerics$(index, innerAnnotation),
|
|
23600
23957
|
requested: generics
|
|
23601
23958
|
}),
|
|
23602
23959
|
name: $mdgriffith$elm_codegen$Internal$Compiler$nodify(
|
|
23603
23960
|
$mdgriffith$elm_codegen$Internal$Format$formatType(name)),
|
|
23604
23961
|
typeAnnotation: $mdgriffith$elm_codegen$Internal$Compiler$nodify(
|
|
23605
|
-
$mdgriffith$elm_codegen$Internal$Compiler$getInnerAnnotation(innerAnnotation))
|
|
23962
|
+
$mdgriffith$elm_codegen$Internal$Compiler$getInnerAnnotation$(index, innerAnnotation))
|
|
23606
23963
|
}),
|
|
23607
23964
|
warning: $elm$core$Maybe$Nothing
|
|
23608
23965
|
};
|
|
@@ -24111,21 +24468,25 @@ var $author$project$Gen$Pages$Internal$Platform$moduleName_ = _List_fromArray(
|
|
|
24111
24468
|
var $mdgriffith$elm_codegen$Elm$Annotation$triple$ = function (one, two, three) {
|
|
24112
24469
|
return $mdgriffith$elm_codegen$Internal$Compiler$Annotation(
|
|
24113
24470
|
{
|
|
24114
|
-
aliases:
|
|
24115
|
-
|
|
24116
|
-
A2(
|
|
24471
|
+
aliases: function (index) {
|
|
24472
|
+
return A2(
|
|
24117
24473
|
$mdgriffith$elm_codegen$Internal$Compiler$mergeAliases,
|
|
24118
|
-
|
|
24119
|
-
|
|
24120
|
-
|
|
24121
|
-
|
|
24122
|
-
|
|
24123
|
-
|
|
24124
|
-
|
|
24125
|
-
|
|
24126
|
-
|
|
24127
|
-
|
|
24128
|
-
|
|
24474
|
+
A2(
|
|
24475
|
+
$mdgriffith$elm_codegen$Internal$Compiler$mergeAliases,
|
|
24476
|
+
$mdgriffith$elm_codegen$Elm$Annotation$getAliases$(index, one),
|
|
24477
|
+
$mdgriffith$elm_codegen$Elm$Annotation$getAliases$(index, two)),
|
|
24478
|
+
$mdgriffith$elm_codegen$Elm$Annotation$getAliases$(index, three));
|
|
24479
|
+
},
|
|
24480
|
+
annotation: function (index) {
|
|
24481
|
+
return $stil4m$elm_syntax$Elm$Syntax$TypeAnnotation$Tupled(
|
|
24482
|
+
$mdgriffith$elm_codegen$Internal$Compiler$nodifyAll(
|
|
24483
|
+
_List_fromArray(
|
|
24484
|
+
[
|
|
24485
|
+
$mdgriffith$elm_codegen$Internal$Compiler$getInnerAnnotation$(index, one),
|
|
24486
|
+
$mdgriffith$elm_codegen$Internal$Compiler$getInnerAnnotation$(index, two),
|
|
24487
|
+
$mdgriffith$elm_codegen$Internal$Compiler$getInnerAnnotation$(index, three)
|
|
24488
|
+
])));
|
|
24489
|
+
},
|
|
24129
24490
|
imports: _Utils_ap(
|
|
24130
24491
|
$mdgriffith$elm_codegen$Internal$Compiler$getAnnotationImports(one),
|
|
24131
24492
|
_Utils_ap(
|
|
@@ -25260,7 +25621,15 @@ var $author$project$Gen$Api$call_ = {
|
|
|
25260
25621
|
})
|
|
25261
25622
|
};
|
|
25262
25623
|
var $mdgriffith$elm_codegen$Elm$Annotation$unit = $mdgriffith$elm_codegen$Internal$Compiler$Annotation(
|
|
25263
|
-
{
|
|
25624
|
+
{
|
|
25625
|
+
aliases: function (_v0) {
|
|
25626
|
+
return $mdgriffith$elm_codegen$Internal$Compiler$emptyAliases;
|
|
25627
|
+
},
|
|
25628
|
+
annotation: function (_v1) {
|
|
25629
|
+
return $stil4m$elm_syntax$Elm$Syntax$TypeAnnotation$Unit;
|
|
25630
|
+
},
|
|
25631
|
+
imports: _List_Nil
|
|
25632
|
+
});
|
|
25264
25633
|
var $author$project$Gen$BackendTask$call_ = {
|
|
25265
25634
|
allowFatal: function (allowFatalArg_) {
|
|
25266
25635
|
return $mdgriffith$elm_codegen$Elm$apply$(
|
|
@@ -29264,9 +29633,13 @@ var $mdgriffith$elm_codegen$Elm$function$ = function (initialArgList, toFullExpr
|
|
|
29264
29633
|
var argType = $elm$core$Maybe$withDefault$(
|
|
29265
29634
|
$mdgriffith$elm_codegen$Internal$Compiler$Annotation(
|
|
29266
29635
|
{
|
|
29267
|
-
aliases:
|
|
29268
|
-
|
|
29269
|
-
|
|
29636
|
+
aliases: function (_v7) {
|
|
29637
|
+
return $mdgriffith$elm_codegen$Internal$Compiler$emptyAliases;
|
|
29638
|
+
},
|
|
29639
|
+
annotation: function (_v8) {
|
|
29640
|
+
return $stil4m$elm_syntax$Elm$Syntax$TypeAnnotation$GenericType(
|
|
29641
|
+
$mdgriffith$elm_codegen$Internal$Index$protectTypeName$(nameBase, found.index));
|
|
29642
|
+
},
|
|
29270
29643
|
imports: _List_Nil
|
|
29271
29644
|
}),
|
|
29272
29645
|
maybeType);
|
|
@@ -29285,7 +29658,7 @@ var $mdgriffith$elm_codegen$Elm$function$ = function (initialArgList, toFullExpr
|
|
|
29285
29658
|
names: A2($elm$core$List$cons, name, found.names),
|
|
29286
29659
|
types: A2(
|
|
29287
29660
|
$elm$core$List$cons,
|
|
29288
|
-
$mdgriffith$elm_codegen$Internal$Compiler$getInnerAnnotation(argType),
|
|
29661
|
+
$mdgriffith$elm_codegen$Internal$Compiler$getInnerAnnotation$(newIndex, argType),
|
|
29289
29662
|
found.types)
|
|
29290
29663
|
};
|
|
29291
29664
|
}),
|
|
@@ -29317,7 +29690,7 @@ var $mdgriffith$elm_codegen$Elm$function$ = function (initialArgList, toFullExpr
|
|
|
29317
29690
|
var ann = maybeAnn.a;
|
|
29318
29691
|
return A2(
|
|
29319
29692
|
$mdgriffith$elm_codegen$Internal$Compiler$mergeAliases,
|
|
29320
|
-
$mdgriffith$elm_codegen$Internal$Compiler$getAliases(ann),
|
|
29693
|
+
$mdgriffith$elm_codegen$Internal$Compiler$getAliases$(index, ann),
|
|
29321
29694
|
aliases);
|
|
29322
29695
|
}
|
|
29323
29696
|
}),
|
|
@@ -30202,12 +30575,6 @@ var $author$project$Gen$Server$Response$plainText = function (plainTextArg_) {
|
|
|
30202
30575
|
var $stil4m$elm_syntax$Elm$Syntax$Declaration$PortDeclaration = function (a) {
|
|
30203
30576
|
return {$: 'PortDeclaration', a: a};
|
|
30204
30577
|
};
|
|
30205
|
-
var $mdgriffith$elm_codegen$Elm$groupAnn = function (ann) {
|
|
30206
|
-
return $mdgriffith$elm_codegen$Internal$Compiler$nodify(
|
|
30207
|
-
$stil4m$elm_syntax$Elm$Syntax$TypeAnnotation$Tupled(
|
|
30208
|
-
_List_fromArray(
|
|
30209
|
-
[ann])));
|
|
30210
|
-
};
|
|
30211
30578
|
var $mdgriffith$elm_codegen$Elm$sub = $stil4m$elm_syntax$Elm$Syntax$TypeAnnotation$Typed$(
|
|
30212
30579
|
$mdgriffith$elm_codegen$Internal$Compiler$nodify(
|
|
30213
30580
|
_Utils_Tuple2(_List_Nil, 'Sub')),
|
|
@@ -30216,38 +30583,29 @@ var $mdgriffith$elm_codegen$Elm$sub = $stil4m$elm_syntax$Elm$Syntax$TypeAnnotati
|
|
|
30216
30583
|
$mdgriffith$elm_codegen$Internal$Compiler$nodify(
|
|
30217
30584
|
$stil4m$elm_syntax$Elm$Syntax$TypeAnnotation$GenericType('msg'))
|
|
30218
30585
|
]));
|
|
30219
|
-
var $mdgriffith$elm_codegen$Elm$portIncoming$ = function (nameStr,
|
|
30586
|
+
var $mdgriffith$elm_codegen$Elm$portIncoming$ = function (nameStr, arg) {
|
|
30220
30587
|
var name = $mdgriffith$elm_codegen$Internal$Format$formatDeclarationName(nameStr);
|
|
30221
30588
|
return $mdgriffith$elm_codegen$Internal$Compiler$Declaration(
|
|
30222
30589
|
{
|
|
30223
30590
|
docs: $elm$core$Maybe$Nothing,
|
|
30224
30591
|
exposed: $mdgriffith$elm_codegen$Internal$Compiler$NotExposed,
|
|
30225
|
-
imports: $
|
|
30592
|
+
imports: $mdgriffith$elm_codegen$Internal$Compiler$getAnnotationImports(arg),
|
|
30226
30593
|
name: name,
|
|
30227
|
-
toBody: function (
|
|
30594
|
+
toBody: function (index) {
|
|
30228
30595
|
return {
|
|
30229
30596
|
additionalImports: _List_Nil,
|
|
30230
30597
|
declaration: $stil4m$elm_syntax$Elm$Syntax$Declaration$PortDeclaration(
|
|
30231
30598
|
{
|
|
30232
30599
|
name: $mdgriffith$elm_codegen$Internal$Compiler$nodify(name),
|
|
30233
30600
|
typeAnnotation: $mdgriffith$elm_codegen$Internal$Compiler$nodify(
|
|
30234
|
-
|
|
30235
|
-
|
|
30236
|
-
|
|
30601
|
+
$stil4m$elm_syntax$Elm$Syntax$TypeAnnotation$FunctionTypeAnnotation$(
|
|
30602
|
+
$mdgriffith$elm_codegen$Internal$Compiler$nodify(
|
|
30603
|
+
$stil4m$elm_syntax$Elm$Syntax$TypeAnnotation$FunctionTypeAnnotation$(
|
|
30237
30604
|
$mdgriffith$elm_codegen$Internal$Compiler$nodify(
|
|
30238
|
-
$
|
|
30239
|
-
$mdgriffith$elm_codegen$Internal$Compiler$nodify(
|
|
30240
|
-
|
|
30241
|
-
|
|
30242
|
-
$mdgriffith$elm_codegen$Elm$groupAnn(
|
|
30243
|
-
$mdgriffith$elm_codegen$Internal$Compiler$nodify(
|
|
30244
|
-
$mdgriffith$elm_codegen$Internal$Compiler$getInnerAnnotation(
|
|
30245
|
-
$mdgriffith$elm_codegen$Elm$Annotation$function$(
|
|
30246
|
-
args,
|
|
30247
|
-
$mdgriffith$elm_codegen$Elm$Annotation$var('msg'))))),
|
|
30248
|
-
$mdgriffith$elm_codegen$Internal$Compiler$nodify($mdgriffith$elm_codegen$Elm$sub));
|
|
30249
|
-
}
|
|
30250
|
-
}())
|
|
30605
|
+
$mdgriffith$elm_codegen$Internal$Compiler$getInnerAnnotation$(index, arg)),
|
|
30606
|
+
$mdgriffith$elm_codegen$Internal$Compiler$nodify(
|
|
30607
|
+
$stil4m$elm_syntax$Elm$Syntax$TypeAnnotation$GenericType('msg')))),
|
|
30608
|
+
$mdgriffith$elm_codegen$Internal$Compiler$nodify($mdgriffith$elm_codegen$Elm$sub)))
|
|
30251
30609
|
}),
|
|
30252
30610
|
warning: $elm$core$Maybe$Nothing
|
|
30253
30611
|
};
|
|
@@ -30271,7 +30629,7 @@ var $mdgriffith$elm_codegen$Elm$portOutgoing$ = function (nameStr, ann) {
|
|
|
30271
30629
|
exposed: $mdgriffith$elm_codegen$Internal$Compiler$NotExposed,
|
|
30272
30630
|
imports: $mdgriffith$elm_codegen$Internal$Compiler$getAnnotationImports(ann),
|
|
30273
30631
|
name: name,
|
|
30274
|
-
toBody: function (
|
|
30632
|
+
toBody: function (index) {
|
|
30275
30633
|
return {
|
|
30276
30634
|
additionalImports: _List_Nil,
|
|
30277
30635
|
declaration: $stil4m$elm_syntax$Elm$Syntax$Declaration$PortDeclaration(
|
|
@@ -30280,7 +30638,7 @@ var $mdgriffith$elm_codegen$Elm$portOutgoing$ = function (nameStr, ann) {
|
|
|
30280
30638
|
typeAnnotation: $mdgriffith$elm_codegen$Internal$Compiler$nodify(
|
|
30281
30639
|
$stil4m$elm_syntax$Elm$Syntax$TypeAnnotation$FunctionTypeAnnotation$(
|
|
30282
30640
|
$mdgriffith$elm_codegen$Internal$Compiler$nodify(
|
|
30283
|
-
$mdgriffith$elm_codegen$Internal$Compiler$getInnerAnnotation(ann)),
|
|
30641
|
+
$mdgriffith$elm_codegen$Internal$Compiler$getInnerAnnotation$(index, ann)),
|
|
30284
30642
|
$mdgriffith$elm_codegen$Internal$Compiler$nodify($mdgriffith$elm_codegen$Elm$cmd)))
|
|
30285
30643
|
}),
|
|
30286
30644
|
warning: $elm$core$Maybe$Nothing
|
|
@@ -31053,7 +31411,15 @@ var $elm$core$Result$map3$ = function (func, ra, rb, rc) {
|
|
|
31053
31411
|
var $elm$core$Result$map3 = F4($elm$core$Result$map3$);
|
|
31054
31412
|
var $mdgriffith$elm_codegen$Internal$Compiler$noImports = function (tipe) {
|
|
31055
31413
|
return $mdgriffith$elm_codegen$Internal$Compiler$Annotation(
|
|
31056
|
-
{
|
|
31414
|
+
{
|
|
31415
|
+
aliases: function (_v0) {
|
|
31416
|
+
return $mdgriffith$elm_codegen$Internal$Compiler$emptyAliases;
|
|
31417
|
+
},
|
|
31418
|
+
annotation: function (_v1) {
|
|
31419
|
+
return tipe;
|
|
31420
|
+
},
|
|
31421
|
+
imports: _List_Nil
|
|
31422
|
+
});
|
|
31057
31423
|
};
|
|
31058
31424
|
var $mdgriffith$elm_codegen$Elm$triple$ = function (oneExp, twoExp, threeExp) {
|
|
31059
31425
|
return $mdgriffith$elm_codegen$Internal$Compiler$Expression(
|
|
@@ -31078,7 +31444,8 @@ var $mdgriffith$elm_codegen$Elm$triple$ = function (oneExp, twoExp, threeExp) {
|
|
|
31078
31444
|
inferences: $mdgriffith$elm_codegen$Internal$Compiler$mergeInferences$(
|
|
31079
31445
|
threeA.inferences,
|
|
31080
31446
|
$mdgriffith$elm_codegen$Internal$Compiler$mergeInferences$(twoA.inferences, oneA.inferences)),
|
|
31081
|
-
type_: $mdgriffith$elm_codegen$Internal$Compiler$getInnerAnnotation(
|
|
31447
|
+
type_: $mdgriffith$elm_codegen$Internal$Compiler$getInnerAnnotation$(
|
|
31448
|
+
index,
|
|
31082
31449
|
$mdgriffith$elm_codegen$Elm$Annotation$triple$(
|
|
31083
31450
|
$mdgriffith$elm_codegen$Internal$Compiler$noImports(oneA.type_),
|
|
31084
31451
|
$mdgriffith$elm_codegen$Internal$Compiler$noImports(twoA.type_),
|
|
@@ -31343,26 +31710,25 @@ var $stil4m$elm_syntax$Elm$Syntax$Expression$RecordUpdateExpression = F2($stil4m
|
|
|
31343
31710
|
var $mdgriffith$elm_codegen$Internal$Compiler$RecordUpdateIncorrectFields = function (a) {
|
|
31344
31711
|
return {$: 'RecordUpdateIncorrectFields', a: a};
|
|
31345
31712
|
};
|
|
31346
|
-
var $mdgriffith$elm_codegen$Elm$presentAndMatching$ = function (fieldName,
|
|
31713
|
+
var $mdgriffith$elm_codegen$Elm$presentAndMatching$ = function (fieldName, existingFields) {
|
|
31347
31714
|
return $elm$core$List$any$(
|
|
31348
|
-
function (
|
|
31349
|
-
var
|
|
31350
|
-
var
|
|
31351
|
-
var existingFieldName =
|
|
31715
|
+
function (_v0) {
|
|
31716
|
+
var _v1 = _v0.b;
|
|
31717
|
+
var _v2 = _v1.a;
|
|
31718
|
+
var existingFieldName = _v2.b;
|
|
31352
31719
|
return _Utils_eq(fieldName, existingFieldName);
|
|
31353
31720
|
},
|
|
31354
31721
|
existingFields);
|
|
31355
31722
|
};
|
|
31356
|
-
var $mdgriffith$elm_codegen$Elm$presentAndMatching =
|
|
31723
|
+
var $mdgriffith$elm_codegen$Elm$presentAndMatching = F2($mdgriffith$elm_codegen$Elm$presentAndMatching$);
|
|
31357
31724
|
var $mdgriffith$elm_codegen$Elm$verifyFieldsHelper$ = function (existingFields, updatedFields) {
|
|
31358
31725
|
if (!updatedFields.b) {
|
|
31359
31726
|
return true;
|
|
31360
31727
|
} else {
|
|
31361
31728
|
var _v1 = updatedFields.a;
|
|
31362
31729
|
var fieldName = _v1.a;
|
|
31363
|
-
var fieldInference = _v1.b;
|
|
31364
31730
|
var remain = updatedFields.b;
|
|
31365
|
-
return $mdgriffith$elm_codegen$Elm$presentAndMatching$(fieldName,
|
|
31731
|
+
return $mdgriffith$elm_codegen$Elm$presentAndMatching$(fieldName, existingFields) && $mdgriffith$elm_codegen$Elm$verifyFieldsHelper$(existingFields, remain);
|
|
31366
31732
|
}
|
|
31367
31733
|
};
|
|
31368
31734
|
var $mdgriffith$elm_codegen$Elm$verifyFieldsHelper = F2($mdgriffith$elm_codegen$Elm$verifyFieldsHelper$);
|
|
@@ -36409,19 +36775,10 @@ var $author$project$GenerateMain$otherFile$ = function (routes, phaseString) {
|
|
|
36409
36775
|
encodeResponse.declaration,
|
|
36410
36776
|
pathPatterns.declaration,
|
|
36411
36777
|
decodeResponse.declaration,
|
|
36412
|
-
$mdgriffith$elm_codegen$Elm$portIncoming$(
|
|
36413
|
-
'hotReloadData',
|
|
36414
|
-
_List_fromArray(
|
|
36415
|
-
[$author$project$Gen$Bytes$annotation_.bytes])),
|
|
36778
|
+
$mdgriffith$elm_codegen$Elm$portIncoming$('hotReloadData', $author$project$Gen$Bytes$annotation_.bytes),
|
|
36416
36779
|
$mdgriffith$elm_codegen$Elm$portOutgoing$('toJsPort', $author$project$Gen$Json$Encode$annotation_.value),
|
|
36417
|
-
$mdgriffith$elm_codegen$Elm$portIncoming$(
|
|
36418
|
-
'
|
|
36419
|
-
_List_fromArray(
|
|
36420
|
-
[$author$project$Gen$Json$Decode$annotation_.value])),
|
|
36421
|
-
$mdgriffith$elm_codegen$Elm$portIncoming$(
|
|
36422
|
-
'gotBatchSub',
|
|
36423
|
-
_List_fromArray(
|
|
36424
|
-
[$author$project$Gen$Json$Decode$annotation_.value]))
|
|
36780
|
+
$mdgriffith$elm_codegen$Elm$portIncoming$('fromJsPort', $author$project$Gen$Json$Decode$annotation_.value),
|
|
36781
|
+
$mdgriffith$elm_codegen$Elm$portIncoming$('gotBatchSub', $author$project$Gen$Json$Decode$annotation_.value)
|
|
36425
36782
|
]));
|
|
36426
36783
|
};
|
|
36427
36784
|
var $author$project$GenerateMain$otherFile = F2($author$project$GenerateMain$otherFile$);
|