elm-pages 3.0.0-beta.27 → 3.0.0-beta.29

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.
@@ -14934,7 +14934,7 @@ var $author$project$Gen$Path$call_ = {
14934
14934
  $author$project$Elm$Annotation$function,
14935
14935
  _List_fromArray(
14936
14936
  [
14937
- $author$project$Elm$Annotation$list($author$project$Elm$Annotation$string)
14937
+ A3($author$project$Elm$Annotation$namedWith, _List_Nil, 'Path', _List_Nil)
14938
14938
  ]),
14939
14939
  A3($author$project$Elm$Annotation$namedWith, _List_Nil, 'Path', _List_Nil))),
14940
14940
  importFrom: _List_fromArray(
@@ -14993,9 +14993,7 @@ var $author$project$Gen$Path$call_ = {
14993
14993
  A2(
14994
14994
  $author$project$Elm$Annotation$function,
14995
14995
  _List_fromArray(
14996
- [
14997
- A3($author$project$Elm$Annotation$namedWith, _List_Nil, 'Path', _List_Nil)
14998
- ]),
14996
+ [$author$project$Elm$Annotation$string]),
14999
14997
  $author$project$Elm$Annotation$list($author$project$Elm$Annotation$string))),
15000
14998
  importFrom: _List_fromArray(
15001
14999
  ['Path']),
@@ -24669,13 +24667,73 @@ var $author$project$Generate$segmentsToRoute = function (routes) {
24669
24667
  ])))))));
24670
24668
  });
24671
24669
  };
24670
+ var $author$project$Internal$Compiler$addAlias = F4(
24671
+ function (mod, name, ann, aliasCache) {
24672
+ var annDetails = ann.a;
24673
+ return A3(
24674
+ $elm$core$Dict$insert,
24675
+ A2($author$project$Internal$Compiler$formatAliasKey, mod, name),
24676
+ {
24677
+ target: annDetails.annotation,
24678
+ variables: $author$project$Internal$Compiler$getGenerics(ann)
24679
+ },
24680
+ aliasCache);
24681
+ });
24682
+ var $author$project$Internal$Compiler$getAliases = function (_v0) {
24683
+ var ann = _v0.a;
24684
+ return ann.aliases;
24685
+ };
24686
+ var $author$project$Elm$Annotation$alias = F4(
24687
+ function (mod, name, vars, target) {
24688
+ return $author$project$Internal$Compiler$Annotation(
24689
+ {
24690
+ aliases: A4(
24691
+ $author$project$Internal$Compiler$addAlias,
24692
+ mod,
24693
+ name,
24694
+ target,
24695
+ A3(
24696
+ $elm$core$List$foldl,
24697
+ F2(
24698
+ function (ann, aliases) {
24699
+ return A2(
24700
+ $author$project$Internal$Compiler$mergeAliases,
24701
+ $author$project$Internal$Compiler$getAliases(ann),
24702
+ aliases);
24703
+ }),
24704
+ $author$project$Internal$Compiler$getAliases(target),
24705
+ vars)),
24706
+ annotation: A2(
24707
+ $stil4m$elm_syntax$Elm$Syntax$TypeAnnotation$Typed,
24708
+ $author$project$Internal$Compiler$nodify(
24709
+ _Utils_Tuple2(
24710
+ mod,
24711
+ $author$project$Internal$Format$formatType(name))),
24712
+ A2(
24713
+ $elm$core$List$map,
24714
+ A2($elm$core$Basics$composeL, $author$project$Internal$Compiler$nodify, $author$project$Internal$Compiler$getInnerAnnotation),
24715
+ vars)),
24716
+ imports: function () {
24717
+ if (!mod.b) {
24718
+ return A2($elm$core$List$concatMap, $author$project$Internal$Compiler$getAnnotationImports, vars);
24719
+ } else {
24720
+ return _Utils_ap(
24721
+ _List_fromArray(
24722
+ [mod]),
24723
+ A2($elm$core$List$concatMap, $author$project$Internal$Compiler$getAnnotationImports, vars));
24724
+ }
24725
+ }()
24726
+ });
24727
+ });
24728
+ var $author$project$Gen$Path$moduleName_ = _List_fromArray(
24729
+ ['Path']);
24672
24730
  var $author$project$Gen$Path$annotation_ = {
24673
- path: A3(
24674
- $author$project$Elm$Annotation$namedWith,
24675
- _List_fromArray(
24676
- ['Path']),
24731
+ path: A4(
24732
+ $author$project$Elm$Annotation$alias,
24733
+ $author$project$Gen$Path$moduleName_,
24677
24734
  'Path',
24678
- _List_Nil)
24735
+ _List_Nil,
24736
+ $author$project$Elm$Annotation$list($author$project$Elm$Annotation$string))
24679
24737
  };
24680
24738
  var $author$project$Internal$Types$bool = A2(
24681
24739
  $stil4m$elm_syntax$Elm$Syntax$TypeAnnotation$Typed,
@@ -24823,10 +24881,6 @@ var $author$project$Pages$Internal$RoutePattern$toVariant = function (pattern) {
24823
24881
  noArgsOrNonEmptyRecordArg);
24824
24882
  }
24825
24883
  };
24826
- var $author$project$Internal$Compiler$getAliases = function (_v0) {
24827
- var ann = _v0.a;
24828
- return ann.aliases;
24829
- };
24830
24884
  var $author$project$Elm$function = F2(
24831
24885
  function (initialArgList, toFullExpression) {
24832
24886
  if (!initialArgList.b) {
@@ -25485,60 +25539,6 @@ var $author$project$Gen$Maybe$andThen = F2(
25485
25539
  andThenArg0
25486
25540
  ]));
25487
25541
  });
25488
- var $author$project$Internal$Compiler$addAlias = F4(
25489
- function (mod, name, ann, aliasCache) {
25490
- var annDetails = ann.a;
25491
- return A3(
25492
- $elm$core$Dict$insert,
25493
- A2($author$project$Internal$Compiler$formatAliasKey, mod, name),
25494
- {
25495
- target: annDetails.annotation,
25496
- variables: $author$project$Internal$Compiler$getGenerics(ann)
25497
- },
25498
- aliasCache);
25499
- });
25500
- var $author$project$Elm$Annotation$alias = F4(
25501
- function (mod, name, vars, target) {
25502
- return $author$project$Internal$Compiler$Annotation(
25503
- {
25504
- aliases: A4(
25505
- $author$project$Internal$Compiler$addAlias,
25506
- mod,
25507
- name,
25508
- target,
25509
- A3(
25510
- $elm$core$List$foldl,
25511
- F2(
25512
- function (ann, aliases) {
25513
- return A2(
25514
- $author$project$Internal$Compiler$mergeAliases,
25515
- $author$project$Internal$Compiler$getAliases(ann),
25516
- aliases);
25517
- }),
25518
- $author$project$Internal$Compiler$getAliases(target),
25519
- vars)),
25520
- annotation: A2(
25521
- $stil4m$elm_syntax$Elm$Syntax$TypeAnnotation$Typed,
25522
- $author$project$Internal$Compiler$nodify(
25523
- _Utils_Tuple2(
25524
- mod,
25525
- $author$project$Internal$Format$formatType(name))),
25526
- A2(
25527
- $elm$core$List$map,
25528
- A2($elm$core$Basics$composeL, $author$project$Internal$Compiler$nodify, $author$project$Internal$Compiler$getInnerAnnotation),
25529
- vars)),
25530
- imports: function () {
25531
- if (!mod.b) {
25532
- return A2($elm$core$List$concatMap, $author$project$Internal$Compiler$getAnnotationImports, vars);
25533
- } else {
25534
- return _Utils_ap(
25535
- _List_fromArray(
25536
- [mod]),
25537
- A2($elm$core$List$concatMap, $author$project$Internal$Compiler$getAnnotationImports, vars));
25538
- }
25539
- }()
25540
- });
25541
- });
25542
25542
  var $author$project$Gen$ApiRoute$moduleName_ = _List_fromArray(
25543
25543
  ['ApiRoute']);
25544
25544
  var $author$project$Gen$ApiRoute$annotation_ = {
@@ -26333,17 +26333,6 @@ var $author$project$Gen$PagesMsg$annotation_ = {
26333
26333
  ])));
26334
26334
  }
26335
26335
  };
26336
- var $author$project$Gen$Platform$Sub$annotation_ = {
26337
- sub: function (subArg0) {
26338
- return A3(
26339
- $author$project$Elm$Annotation$namedWith,
26340
- _List_fromArray(
26341
- ['Sub']),
26342
- 'Sub',
26343
- _List_fromArray(
26344
- [subArg0]));
26345
- }
26346
- };
26347
26336
  var $author$project$Gen$Server$Response$moduleName_ = _List_fromArray(
26348
26337
  ['Server', 'Response']);
26349
26338
  var $author$project$Gen$Server$Response$annotation_ = {
@@ -26960,43 +26949,6 @@ var $author$project$GenerateMain$applyIdentityTo = function (to) {
26960
26949
  _List_fromArray(
26961
26950
  [$author$project$Gen$Basics$values_.identity]));
26962
26951
  };
26963
- var $author$project$Gen$Platform$Sub$batch = function (batchArg) {
26964
- return A2(
26965
- $author$project$Elm$apply,
26966
- $author$project$Elm$value(
26967
- {
26968
- annotation: $elm$core$Maybe$Just(
26969
- A2(
26970
- $author$project$Elm$Annotation$function,
26971
- _List_fromArray(
26972
- [
26973
- $author$project$Elm$Annotation$list(
26974
- A3(
26975
- $author$project$Elm$Annotation$namedWith,
26976
- _List_Nil,
26977
- 'Sub',
26978
- _List_fromArray(
26979
- [
26980
- $author$project$Elm$Annotation$var('msg')
26981
- ])))
26982
- ]),
26983
- A3(
26984
- $author$project$Elm$Annotation$namedWith,
26985
- _List_Nil,
26986
- 'Sub',
26987
- _List_fromArray(
26988
- [
26989
- $author$project$Elm$Annotation$var('msg')
26990
- ])))),
26991
- importFrom: _List_fromArray(
26992
- ['Sub']),
26993
- name: 'batch'
26994
- }),
26995
- _List_fromArray(
26996
- [
26997
- $author$project$Elm$list(batchArg)
26998
- ]));
26999
- };
27000
26952
  var $author$project$Gen$BackendTask$call_ = {
27001
26953
  allowFatal: function (allowFatalArg) {
27002
26954
  return A2(
@@ -29720,8 +29672,8 @@ var $author$project$Gen$PagesMsg$call_ = {
29720
29672
  [mapArg, mapArg0]));
29721
29673
  })
29722
29674
  };
29723
- var $author$project$Gen$Platform$Sub$call_ = {
29724
- batch: function (batchArg) {
29675
+ var $author$project$Gen$QueryParams$call_ = {
29676
+ fromString: function (fromStringArg) {
29725
29677
  return A2(
29726
29678
  $author$project$Elm$apply,
29727
29679
  $author$project$Elm$value(
@@ -29730,34 +29682,70 @@ var $author$project$Gen$Platform$Sub$call_ = {
29730
29682
  A2(
29731
29683
  $author$project$Elm$Annotation$function,
29732
29684
  _List_fromArray(
29733
- [
29734
- $author$project$Elm$Annotation$list(
29735
- A3(
29736
- $author$project$Elm$Annotation$namedWith,
29737
- _List_Nil,
29738
- 'Sub',
29739
- _List_fromArray(
29740
- [
29741
- $author$project$Elm$Annotation$var('msg')
29742
- ])))
29743
- ]),
29685
+ [$author$project$Elm$Annotation$string]),
29744
29686
  A3(
29745
29687
  $author$project$Elm$Annotation$namedWith,
29746
29688
  _List_Nil,
29747
- 'Sub',
29689
+ 'Dict',
29748
29690
  _List_fromArray(
29749
29691
  [
29750
- $author$project$Elm$Annotation$var('msg')
29692
+ $author$project$Elm$Annotation$string,
29693
+ $author$project$Elm$Annotation$list($author$project$Elm$Annotation$string)
29751
29694
  ])))),
29752
29695
  importFrom: _List_fromArray(
29753
- ['Sub']),
29754
- name: 'batch'
29696
+ ['QueryParams']),
29697
+ name: 'fromString'
29755
29698
  }),
29756
29699
  _List_fromArray(
29757
- [batchArg]));
29700
+ [fromStringArg]));
29758
29701
  },
29759
- map: F2(
29760
- function (mapArg, mapArg0) {
29702
+ toString: function (toStringArg) {
29703
+ return A2(
29704
+ $author$project$Elm$apply,
29705
+ $author$project$Elm$value(
29706
+ {
29707
+ annotation: $elm$core$Maybe$Just(
29708
+ A2(
29709
+ $author$project$Elm$Annotation$function,
29710
+ _List_fromArray(
29711
+ [
29712
+ A3($author$project$Elm$Annotation$namedWith, _List_Nil, 'QueryParams', _List_Nil)
29713
+ ]),
29714
+ $author$project$Elm$Annotation$string)),
29715
+ importFrom: _List_fromArray(
29716
+ ['QueryParams']),
29717
+ name: 'toString'
29718
+ }),
29719
+ _List_fromArray(
29720
+ [toStringArg]));
29721
+ }
29722
+ };
29723
+ var $author$project$Gen$Tuple$call_ = {
29724
+ first: function (firstArg) {
29725
+ return A2(
29726
+ $author$project$Elm$apply,
29727
+ $author$project$Elm$value(
29728
+ {
29729
+ annotation: $elm$core$Maybe$Just(
29730
+ A2(
29731
+ $author$project$Elm$Annotation$function,
29732
+ _List_fromArray(
29733
+ [
29734
+ A2(
29735
+ $author$project$Elm$Annotation$tuple,
29736
+ $author$project$Elm$Annotation$var('a'),
29737
+ $author$project$Elm$Annotation$var('b'))
29738
+ ]),
29739
+ $author$project$Elm$Annotation$var('a'))),
29740
+ importFrom: _List_fromArray(
29741
+ ['Tuple']),
29742
+ name: 'first'
29743
+ }),
29744
+ _List_fromArray(
29745
+ [firstArg]));
29746
+ },
29747
+ mapBoth: F3(
29748
+ function (mapBothArg, mapBothArg0, mapBothArg1) {
29761
29749
  return A2(
29762
29750
  $author$project$Elm$apply,
29763
29751
  $author$project$Elm$value(
@@ -29773,490 +29761,18 @@ var $author$project$Gen$Platform$Sub$call_ = {
29773
29761
  [
29774
29762
  $author$project$Elm$Annotation$var('a')
29775
29763
  ]),
29776
- $author$project$Elm$Annotation$var('msg')),
29777
- A3(
29778
- $author$project$Elm$Annotation$namedWith,
29779
- _List_Nil,
29780
- 'Sub',
29764
+ $author$project$Elm$Annotation$var('x')),
29765
+ A2(
29766
+ $author$project$Elm$Annotation$function,
29781
29767
  _List_fromArray(
29782
29768
  [
29783
- $author$project$Elm$Annotation$var('a')
29784
- ]))
29785
- ]),
29786
- A3(
29787
- $author$project$Elm$Annotation$namedWith,
29788
- _List_Nil,
29789
- 'Sub',
29790
- _List_fromArray(
29791
- [
29792
- $author$project$Elm$Annotation$var('msg')
29793
- ])))),
29794
- importFrom: _List_fromArray(
29795
- ['Sub']),
29796
- name: 'map'
29797
- }),
29798
- _List_fromArray(
29799
- [mapArg, mapArg0]));
29800
- })
29801
- };
29802
- var $author$project$Gen$QueryParams$call_ = {
29803
- andThen: F2(
29804
- function (andThenArg, andThenArg0) {
29805
- return A2(
29806
- $author$project$Elm$apply,
29807
- $author$project$Elm$value(
29808
- {
29809
- annotation: $elm$core$Maybe$Just(
29810
- A2(
29811
- $author$project$Elm$Annotation$function,
29812
- _List_fromArray(
29813
- [
29814
- A2(
29815
- $author$project$Elm$Annotation$function,
29816
- _List_fromArray(
29817
- [
29818
- $author$project$Elm$Annotation$var('a')
29819
- ]),
29820
- A3(
29821
- $author$project$Elm$Annotation$namedWith,
29822
- _List_Nil,
29823
- 'Parser',
29824
- _List_fromArray(
29825
- [
29826
- $author$project$Elm$Annotation$var('b')
29827
- ]))),
29828
- A3(
29829
- $author$project$Elm$Annotation$namedWith,
29830
- _List_Nil,
29831
- 'Parser',
29832
- _List_fromArray(
29833
- [
29834
- $author$project$Elm$Annotation$var('a')
29835
- ]))
29836
- ]),
29837
- A3(
29838
- $author$project$Elm$Annotation$namedWith,
29839
- _List_Nil,
29840
- 'Parser',
29841
- _List_fromArray(
29842
- [
29843
- $author$project$Elm$Annotation$var('b')
29844
- ])))),
29845
- importFrom: _List_fromArray(
29846
- ['QueryParams']),
29847
- name: 'andThen'
29848
- }),
29849
- _List_fromArray(
29850
- [andThenArg, andThenArg0]));
29851
- }),
29852
- fail: function (failArg) {
29853
- return A2(
29854
- $author$project$Elm$apply,
29855
- $author$project$Elm$value(
29856
- {
29857
- annotation: $elm$core$Maybe$Just(
29858
- A2(
29859
- $author$project$Elm$Annotation$function,
29860
- _List_fromArray(
29861
- [$author$project$Elm$Annotation$string]),
29862
- A3(
29863
- $author$project$Elm$Annotation$namedWith,
29864
- _List_Nil,
29865
- 'Parser',
29866
- _List_fromArray(
29867
- [
29868
- $author$project$Elm$Annotation$var('a')
29869
- ])))),
29870
- importFrom: _List_fromArray(
29871
- ['QueryParams']),
29872
- name: 'fail'
29873
- }),
29874
- _List_fromArray(
29875
- [failArg]));
29876
- },
29877
- fromResult: function (fromResultArg) {
29878
- return A2(
29879
- $author$project$Elm$apply,
29880
- $author$project$Elm$value(
29881
- {
29882
- annotation: $elm$core$Maybe$Just(
29883
- A2(
29884
- $author$project$Elm$Annotation$function,
29885
- _List_fromArray(
29886
- [
29887
- A3(
29888
- $author$project$Elm$Annotation$namedWith,
29889
- _List_Nil,
29890
- 'Result',
29891
- _List_fromArray(
29892
- [
29893
- $author$project$Elm$Annotation$string,
29894
- $author$project$Elm$Annotation$var('a')
29895
- ]))
29896
- ]),
29897
- A3(
29898
- $author$project$Elm$Annotation$namedWith,
29899
- _List_Nil,
29900
- 'Parser',
29901
- _List_fromArray(
29902
- [
29903
- $author$project$Elm$Annotation$var('a')
29904
- ])))),
29905
- importFrom: _List_fromArray(
29906
- ['QueryParams']),
29907
- name: 'fromResult'
29908
- }),
29909
- _List_fromArray(
29910
- [fromResultArg]));
29911
- },
29912
- fromString: function (fromStringArg) {
29913
- return A2(
29914
- $author$project$Elm$apply,
29915
- $author$project$Elm$value(
29916
- {
29917
- annotation: $elm$core$Maybe$Just(
29918
- A2(
29919
- $author$project$Elm$Annotation$function,
29920
- _List_fromArray(
29921
- [$author$project$Elm$Annotation$string]),
29922
- A3($author$project$Elm$Annotation$namedWith, _List_Nil, 'QueryParams', _List_Nil))),
29923
- importFrom: _List_fromArray(
29924
- ['QueryParams']),
29925
- name: 'fromString'
29926
- }),
29927
- _List_fromArray(
29928
- [fromStringArg]));
29929
- },
29930
- map2: F3(
29931
- function (map2Arg, map2Arg0, map2Arg1) {
29932
- return A2(
29933
- $author$project$Elm$apply,
29934
- $author$project$Elm$value(
29935
- {
29936
- annotation: $elm$core$Maybe$Just(
29937
- A2(
29938
- $author$project$Elm$Annotation$function,
29939
- _List_fromArray(
29940
- [
29941
- A2(
29942
- $author$project$Elm$Annotation$function,
29943
- _List_fromArray(
29944
- [
29945
- $author$project$Elm$Annotation$var('a'),
29946
- $author$project$Elm$Annotation$var('b')
29947
- ]),
29948
- $author$project$Elm$Annotation$var('combined')),
29949
- A3(
29950
- $author$project$Elm$Annotation$namedWith,
29951
- _List_Nil,
29952
- 'Parser',
29953
- _List_fromArray(
29954
- [
29955
- $author$project$Elm$Annotation$var('a')
29956
- ])),
29957
- A3(
29958
- $author$project$Elm$Annotation$namedWith,
29959
- _List_Nil,
29960
- 'Parser',
29961
- _List_fromArray(
29962
- [
29963
- $author$project$Elm$Annotation$var('b')
29964
- ]))
29965
- ]),
29966
- A3(
29967
- $author$project$Elm$Annotation$namedWith,
29968
- _List_Nil,
29969
- 'Parser',
29970
- _List_fromArray(
29971
- [
29972
- $author$project$Elm$Annotation$var('combined')
29973
- ])))),
29974
- importFrom: _List_fromArray(
29975
- ['QueryParams']),
29976
- name: 'map2'
29977
- }),
29978
- _List_fromArray(
29979
- [map2Arg, map2Arg0, map2Arg1]));
29980
- }),
29981
- oneOf: function (oneOfArg) {
29982
- return A2(
29983
- $author$project$Elm$apply,
29984
- $author$project$Elm$value(
29985
- {
29986
- annotation: $elm$core$Maybe$Just(
29987
- A2(
29988
- $author$project$Elm$Annotation$function,
29989
- _List_fromArray(
29990
- [
29991
- $author$project$Elm$Annotation$list(
29992
- A3(
29993
- $author$project$Elm$Annotation$namedWith,
29994
- _List_Nil,
29995
- 'Parser',
29996
- _List_fromArray(
29997
- [
29998
- $author$project$Elm$Annotation$var('a')
29999
- ])))
30000
- ]),
30001
- A3(
30002
- $author$project$Elm$Annotation$namedWith,
30003
- _List_Nil,
30004
- 'Parser',
30005
- _List_fromArray(
30006
- [
30007
- $author$project$Elm$Annotation$var('a')
30008
- ])))),
30009
- importFrom: _List_fromArray(
30010
- ['QueryParams']),
30011
- name: 'oneOf'
30012
- }),
30013
- _List_fromArray(
30014
- [oneOfArg]));
30015
- },
30016
- optionalString: function (optionalStringArg) {
30017
- return A2(
30018
- $author$project$Elm$apply,
30019
- $author$project$Elm$value(
30020
- {
30021
- annotation: $elm$core$Maybe$Just(
30022
- A2(
30023
- $author$project$Elm$Annotation$function,
30024
- _List_fromArray(
30025
- [$author$project$Elm$Annotation$string]),
30026
- A3(
30027
- $author$project$Elm$Annotation$namedWith,
30028
- _List_Nil,
30029
- 'Parser',
30030
- _List_fromArray(
30031
- [
30032
- A3(
30033
- $author$project$Elm$Annotation$namedWith,
30034
- _List_Nil,
30035
- 'Maybe',
30036
- _List_fromArray(
30037
- [$author$project$Elm$Annotation$string]))
30038
- ])))),
30039
- importFrom: _List_fromArray(
30040
- ['QueryParams']),
30041
- name: 'optionalString'
30042
- }),
30043
- _List_fromArray(
30044
- [optionalStringArg]));
30045
- },
30046
- parse: F2(
30047
- function (parseArg, parseArg0) {
30048
- return A2(
30049
- $author$project$Elm$apply,
30050
- $author$project$Elm$value(
30051
- {
30052
- annotation: $elm$core$Maybe$Just(
30053
- A2(
30054
- $author$project$Elm$Annotation$function,
30055
- _List_fromArray(
30056
- [
30057
- A3(
30058
- $author$project$Elm$Annotation$namedWith,
30059
- _List_Nil,
30060
- 'Parser',
30061
- _List_fromArray(
30062
- [
30063
- $author$project$Elm$Annotation$var('a')
30064
- ])),
30065
- A3($author$project$Elm$Annotation$namedWith, _List_Nil, 'QueryParams', _List_Nil)
30066
- ]),
30067
- A3(
30068
- $author$project$Elm$Annotation$namedWith,
30069
- _List_Nil,
30070
- 'Result',
30071
- _List_fromArray(
30072
- [
30073
- $author$project$Elm$Annotation$string,
30074
- $author$project$Elm$Annotation$var('a')
30075
- ])))),
30076
- importFrom: _List_fromArray(
30077
- ['QueryParams']),
30078
- name: 'parse'
30079
- }),
30080
- _List_fromArray(
30081
- [parseArg, parseArg0]));
30082
- }),
30083
- string: function (stringArg) {
30084
- return A2(
30085
- $author$project$Elm$apply,
30086
- $author$project$Elm$value(
30087
- {
30088
- annotation: $elm$core$Maybe$Just(
30089
- A2(
30090
- $author$project$Elm$Annotation$function,
30091
- _List_fromArray(
30092
- [$author$project$Elm$Annotation$string]),
30093
- A3(
30094
- $author$project$Elm$Annotation$namedWith,
30095
- _List_Nil,
30096
- 'Parser',
30097
- _List_fromArray(
30098
- [$author$project$Elm$Annotation$string])))),
30099
- importFrom: _List_fromArray(
30100
- ['QueryParams']),
30101
- name: 'string'
30102
- }),
30103
- _List_fromArray(
30104
- [stringArg]));
30105
- },
30106
- strings: function (stringsArg) {
30107
- return A2(
30108
- $author$project$Elm$apply,
30109
- $author$project$Elm$value(
30110
- {
30111
- annotation: $elm$core$Maybe$Just(
30112
- A2(
30113
- $author$project$Elm$Annotation$function,
30114
- _List_fromArray(
30115
- [$author$project$Elm$Annotation$string]),
30116
- A3(
30117
- $author$project$Elm$Annotation$namedWith,
30118
- _List_Nil,
30119
- 'Parser',
30120
- _List_fromArray(
30121
- [
30122
- $author$project$Elm$Annotation$list($author$project$Elm$Annotation$string)
30123
- ])))),
30124
- importFrom: _List_fromArray(
30125
- ['QueryParams']),
30126
- name: 'strings'
30127
- }),
30128
- _List_fromArray(
30129
- [stringsArg]));
30130
- },
30131
- succeed: function (succeedArg) {
30132
- return A2(
30133
- $author$project$Elm$apply,
30134
- $author$project$Elm$value(
30135
- {
30136
- annotation: $elm$core$Maybe$Just(
30137
- A2(
30138
- $author$project$Elm$Annotation$function,
30139
- _List_fromArray(
30140
- [
30141
- $author$project$Elm$Annotation$var('a')
30142
- ]),
30143
- A3(
30144
- $author$project$Elm$Annotation$namedWith,
30145
- _List_Nil,
30146
- 'Parser',
30147
- _List_fromArray(
30148
- [
30149
- $author$project$Elm$Annotation$var('a')
30150
- ])))),
30151
- importFrom: _List_fromArray(
30152
- ['QueryParams']),
30153
- name: 'succeed'
30154
- }),
30155
- _List_fromArray(
30156
- [succeedArg]));
30157
- },
30158
- toDict: function (toDictArg) {
30159
- return A2(
30160
- $author$project$Elm$apply,
30161
- $author$project$Elm$value(
30162
- {
30163
- annotation: $elm$core$Maybe$Just(
30164
- A2(
30165
- $author$project$Elm$Annotation$function,
30166
- _List_fromArray(
30167
- [
30168
- A3($author$project$Elm$Annotation$namedWith, _List_Nil, 'QueryParams', _List_Nil)
30169
- ]),
30170
- A3(
30171
- $author$project$Elm$Annotation$namedWith,
30172
- _List_Nil,
30173
- 'Dict',
30174
- _List_fromArray(
30175
- [
30176
- $author$project$Elm$Annotation$string,
30177
- $author$project$Elm$Annotation$list($author$project$Elm$Annotation$string)
30178
- ])))),
30179
- importFrom: _List_fromArray(
30180
- ['QueryParams']),
30181
- name: 'toDict'
30182
- }),
30183
- _List_fromArray(
30184
- [toDictArg]));
30185
- },
30186
- toString: function (toStringArg) {
30187
- return A2(
30188
- $author$project$Elm$apply,
30189
- $author$project$Elm$value(
30190
- {
30191
- annotation: $elm$core$Maybe$Just(
30192
- A2(
30193
- $author$project$Elm$Annotation$function,
30194
- _List_fromArray(
30195
- [
30196
- A3($author$project$Elm$Annotation$namedWith, _List_Nil, 'QueryParams', _List_Nil)
30197
- ]),
30198
- $author$project$Elm$Annotation$string)),
30199
- importFrom: _List_fromArray(
30200
- ['QueryParams']),
30201
- name: 'toString'
30202
- }),
30203
- _List_fromArray(
30204
- [toStringArg]));
30205
- }
30206
- };
30207
- var $author$project$Gen$Tuple$call_ = {
30208
- first: function (firstArg) {
30209
- return A2(
30210
- $author$project$Elm$apply,
30211
- $author$project$Elm$value(
30212
- {
30213
- annotation: $elm$core$Maybe$Just(
30214
- A2(
30215
- $author$project$Elm$Annotation$function,
30216
- _List_fromArray(
30217
- [
30218
- A2(
30219
- $author$project$Elm$Annotation$tuple,
30220
- $author$project$Elm$Annotation$var('a'),
30221
- $author$project$Elm$Annotation$var('b'))
30222
- ]),
30223
- $author$project$Elm$Annotation$var('a'))),
30224
- importFrom: _List_fromArray(
30225
- ['Tuple']),
30226
- name: 'first'
30227
- }),
30228
- _List_fromArray(
30229
- [firstArg]));
30230
- },
30231
- mapBoth: F3(
30232
- function (mapBothArg, mapBothArg0, mapBothArg1) {
30233
- return A2(
30234
- $author$project$Elm$apply,
30235
- $author$project$Elm$value(
30236
- {
30237
- annotation: $elm$core$Maybe$Just(
30238
- A2(
30239
- $author$project$Elm$Annotation$function,
30240
- _List_fromArray(
30241
- [
30242
- A2(
30243
- $author$project$Elm$Annotation$function,
30244
- _List_fromArray(
30245
- [
30246
- $author$project$Elm$Annotation$var('a')
30247
- ]),
30248
- $author$project$Elm$Annotation$var('x')),
30249
- A2(
30250
- $author$project$Elm$Annotation$function,
30251
- _List_fromArray(
30252
- [
30253
- $author$project$Elm$Annotation$var('b')
30254
- ]),
30255
- $author$project$Elm$Annotation$var('y')),
30256
- A2(
30257
- $author$project$Elm$Annotation$tuple,
30258
- $author$project$Elm$Annotation$var('a'),
30259
- $author$project$Elm$Annotation$var('b'))
29769
+ $author$project$Elm$Annotation$var('b')
29770
+ ]),
29771
+ $author$project$Elm$Annotation$var('y')),
29772
+ A2(
29773
+ $author$project$Elm$Annotation$tuple,
29774
+ $author$project$Elm$Annotation$var('a'),
29775
+ $author$project$Elm$Annotation$var('b'))
30260
29776
  ]),
30261
29777
  A2(
30262
29778
  $author$project$Elm$Annotation$tuple,
@@ -31869,21 +31385,6 @@ var $author$project$Gen$Basics$never = function (neverArg) {
31869
31385
  _List_fromArray(
31870
31386
  [neverArg]));
31871
31387
  };
31872
- var $author$project$Gen$Platform$Sub$none = $author$project$Elm$value(
31873
- {
31874
- annotation: $elm$core$Maybe$Just(
31875
- A3(
31876
- $author$project$Elm$Annotation$namedWith,
31877
- _List_Nil,
31878
- 'Sub',
31879
- _List_fromArray(
31880
- [
31881
- $author$project$Elm$Annotation$var('msg')
31882
- ]))),
31883
- importFrom: _List_fromArray(
31884
- ['Sub']),
31885
- name: 'none'
31886
- });
31887
31388
  var $author$project$Elm$nothing = $author$project$Elm$maybe($elm$core$Maybe$Nothing);
31888
31389
  var $author$project$Gen$Json$Encode$object = function (objectArg) {
31889
31390
  return A2(
@@ -32652,6 +32153,79 @@ var $author$project$Gen$ApiRoute$single = function (singleArg) {
32652
32153
  _List_fromArray(
32653
32154
  [singleArg]));
32654
32155
  };
32156
+ var $author$project$GenerateMain$subType = function (inner) {
32157
+ return A3(
32158
+ $author$project$Elm$Annotation$namedWith,
32159
+ _List_fromArray(
32160
+ ['Platform', 'Sub']),
32161
+ 'Sub',
32162
+ _List_fromArray(
32163
+ [inner]));
32164
+ };
32165
+ var $author$project$GenerateMain$subBatch = function (batchArg) {
32166
+ return A2(
32167
+ $author$project$Elm$apply,
32168
+ $author$project$Elm$value(
32169
+ {
32170
+ annotation: $elm$core$Maybe$Just(
32171
+ A2(
32172
+ $author$project$Elm$Annotation$function,
32173
+ _List_fromArray(
32174
+ [
32175
+ $author$project$Elm$Annotation$list(
32176
+ $author$project$GenerateMain$subType(
32177
+ $author$project$Elm$Annotation$var('msg')))
32178
+ ]),
32179
+ $author$project$GenerateMain$subType(
32180
+ $author$project$Elm$Annotation$var('msg')))),
32181
+ importFrom: _List_fromArray(
32182
+ ['Platform', 'Sub']),
32183
+ name: 'batch'
32184
+ }),
32185
+ _List_fromArray(
32186
+ [
32187
+ $author$project$Elm$list(batchArg)
32188
+ ]));
32189
+ };
32190
+ var $author$project$GenerateMain$subMap = F2(
32191
+ function (mapArg, mapArg0) {
32192
+ return A2(
32193
+ $author$project$Elm$apply,
32194
+ $author$project$Elm$value(
32195
+ {
32196
+ annotation: $elm$core$Maybe$Just(
32197
+ A2(
32198
+ $author$project$Elm$Annotation$function,
32199
+ _List_fromArray(
32200
+ [
32201
+ A2(
32202
+ $author$project$Elm$Annotation$function,
32203
+ _List_fromArray(
32204
+ [
32205
+ $author$project$Elm$Annotation$var('a')
32206
+ ]),
32207
+ $author$project$Elm$Annotation$var('msg')),
32208
+ $author$project$GenerateMain$subType(
32209
+ $author$project$Elm$Annotation$var('a'))
32210
+ ]),
32211
+ $author$project$GenerateMain$subType(
32212
+ $author$project$Elm$Annotation$var('msg')))),
32213
+ importFrom: _List_fromArray(
32214
+ ['Platform', 'Sub']),
32215
+ name: 'map'
32216
+ }),
32217
+ _List_fromArray(
32218
+ [mapArg, mapArg0]));
32219
+ });
32220
+ var $author$project$GenerateMain$subNone = $author$project$Elm$value(
32221
+ {
32222
+ annotation: $elm$core$Maybe$Just(
32223
+ $author$project$GenerateMain$subType(
32224
+ $author$project$Elm$Annotation$var('msg'))),
32225
+ importFrom: _List_fromArray(
32226
+ ['Platform', 'Sub']),
32227
+ name: 'none'
32228
+ });
32655
32229
  var $author$project$Gen$ApiRoute$succeed = function (succeedArg) {
32656
32230
  return A2(
32657
32231
  $author$project$Elm$apply,
@@ -36151,7 +35725,6 @@ var $author$project$GenerateMain$otherFile = F2(
36151
35725
  A2($author$project$GenerateMain$routeTemplateFunction, 'view', route),
36152
35726
  _List_fromArray(
36153
35727
  [
36154
- maybePageUrl,
36155
35728
  A2($author$project$Elm$get, 'global', model),
36156
35729
  subModel,
36157
35730
  $author$project$Elm$record(
@@ -36171,6 +35744,7 @@ var $author$project$GenerateMain$otherFile = F2(
36171
35744
  _Utils_Tuple2(
36172
35745
  'path',
36173
35746
  A2($author$project$Elm$get, 'path', page)),
35747
+ _Utils_Tuple2('url', maybePageUrl),
36174
35748
  _Utils_Tuple2(
36175
35749
  'submit',
36176
35750
  A2(
@@ -36234,6 +35808,7 @@ var $author$project$GenerateMain$otherFile = F2(
36234
35808
  _Utils_Tuple2(
36235
35809
  'path',
36236
35810
  A2($author$project$Elm$get, 'path', page)),
35811
+ _Utils_Tuple2('url', $author$project$Elm$nothing),
36237
35812
  _Utils_Tuple2(
36238
35813
  'submit',
36239
35814
  A2(
@@ -36633,10 +36208,6 @@ var $author$project$GenerateMain$otherFile = F2(
36633
36208
  })),
36634
36209
  _List_fromArray(
36635
36210
  [
36636
- A2(
36637
- $author$project$Gen$Maybe$andThen,
36638
- $author$project$Elm$get('pageUrl'),
36639
- maybePagePath),
36640
36211
  sharedModel,
36641
36212
  $author$project$Elm$record(
36642
36213
  _List_fromArray(
@@ -36682,6 +36253,12 @@ var $author$project$GenerateMain$otherFile = F2(
36682
36253
  $author$project$Gen$Tuple$second(justRouteAndPath)
36683
36254
  ]))),
36684
36255
  _Utils_Tuple2(
36256
+ 'url',
36257
+ A2(
36258
+ $author$project$Gen$Maybe$andThen,
36259
+ $author$project$Elm$get('pageUrl'),
36260
+ maybePagePath)),
36261
+ _Utils_Tuple2(
36685
36262
  'submit',
36686
36263
  A2(
36687
36264
  $author$project$Elm$apply,
@@ -37339,9 +36916,12 @@ var $author$project$GenerateMain$otherFile = F2(
37339
36916
  _Utils_Tuple2(
37340
36917
  'query',
37341
36918
  A2(
37342
- $author$project$Gen$Maybe$map,
37343
- $author$project$Gen$QueryParams$call_.fromString,
37344
- A2($author$project$Elm$get, 'query', record))),
36919
+ $author$project$Gen$Maybe$withDefault,
36920
+ $author$project$Gen$Dict$empty,
36921
+ A2(
36922
+ $author$project$Gen$Maybe$map,
36923
+ $author$project$Gen$QueryParams$call_.fromString,
36924
+ A2($author$project$Elm$get, 'query', record)))),
37345
36925
  _Utils_Tuple2(
37346
36926
  'fragment',
37347
36927
  A2($author$project$Elm$get, 'fragment', record))
@@ -37530,7 +37110,6 @@ var $author$project$GenerateMain$otherFile = F2(
37530
37110
  })),
37531
37111
  _List_fromArray(
37532
37112
  [
37533
- pageUrl,
37534
37113
  $author$project$Elm$record(
37535
37114
  _List_fromArray(
37536
37115
  [
@@ -37547,6 +37126,9 @@ var $author$project$GenerateMain$otherFile = F2(
37547
37126
  'path',
37548
37127
  A2($author$project$Elm$get, 'path', justPage)),
37549
37128
  _Utils_Tuple2(
37129
+ 'url',
37130
+ $author$project$Elm$just(pageUrl)),
37131
+ _Utils_Tuple2(
37550
37132
  'submit',
37551
37133
  A2(
37552
37134
  $author$project$Elm$fn,
@@ -38175,7 +37757,7 @@ var $author$project$GenerateMain$otherFile = F2(
38175
37757
  function (maybeRoute, path, model) {
38176
37758
  return A2(
38177
37759
  $author$project$Elm$withType,
38178
- $author$project$Gen$Platform$Sub$annotation_.sub(
37760
+ $author$project$GenerateMain$subType(
38179
37761
  A2($author$project$Elm$Annotation$named, _List_Nil, 'Msg')),
38180
37762
  A2(
38181
37763
  $author$project$Elm$Case$maybe,
@@ -38199,7 +37781,7 @@ var $author$project$GenerateMain$otherFile = F2(
38199
37781
  $author$project$Elm$Case$patternToBranch,
38200
37782
  function (templateModel) {
38201
37783
  return A2(
38202
- $author$project$Gen$Platform$Sub$call_.map,
37784
+ $author$project$GenerateMain$subMap,
38203
37785
  A2($author$project$GenerateMain$routeVariantExpression, $author$project$GenerateMain$Msg, route),
38204
37786
  A2(
38205
37787
  $author$project$Elm$apply,
@@ -38217,7 +37799,6 @@ var $author$project$GenerateMain$otherFile = F2(
38217
37799
  })),
38218
37800
  _List_fromArray(
38219
37801
  [
38220
- $author$project$Elm$nothing,
38221
37802
  A2(
38222
37803
  $elm$core$Maybe$withDefault,
38223
37804
  $author$project$Elm$record(_List_Nil),
@@ -38230,12 +37811,12 @@ var $author$project$GenerateMain$otherFile = F2(
38230
37811
  A3($author$project$GenerateMain$destructureRouteVariant, $author$project$GenerateMain$Model, 'templateModel', route)),
38231
37812
  $author$project$Elm$Case$otherwise(
38232
37813
  function (_v10) {
38233
- return $author$project$Gen$Platform$Sub$none;
37814
+ return $author$project$GenerateMain$subNone;
38234
37815
  })
38235
37816
  ]));
38236
37817
  }));
38237
37818
  }),
38238
- nothing: $author$project$Gen$Platform$Sub$none
37819
+ nothing: $author$project$GenerateMain$subNone
38239
37820
  }));
38240
37821
  }));
38241
37822
  var subscriptions = A5(
@@ -38266,13 +37847,13 @@ var $author$project$GenerateMain$otherFile = F2(
38266
37847
  function (route, path, model) {
38267
37848
  return A2(
38268
37849
  $author$project$Elm$withType,
38269
- $author$project$Gen$Platform$Sub$annotation_.sub(
37850
+ $author$project$GenerateMain$subType(
38270
37851
  A2($author$project$Elm$Annotation$named, _List_Nil, 'Msg')),
38271
- $author$project$Gen$Platform$Sub$batch(
37852
+ $author$project$GenerateMain$subBatch(
38272
37853
  _List_fromArray(
38273
37854
  [
38274
37855
  A2(
38275
- $author$project$Gen$Platform$Sub$call_.map,
37856
+ $author$project$GenerateMain$subMap,
38276
37857
  $author$project$Elm$val('MsgGlobal'),
38277
37858
  A2(
38278
37859
  $author$project$Elm$apply,
@@ -38590,7 +38171,7 @@ var $author$project$GenerateMain$otherFile = F2(
38590
38171
  }(),
38591
38172
  gotBatchSub: function () {
38592
38173
  if (phase.$ === 'Browser') {
38593
- return $author$project$Gen$Platform$Sub$none;
38174
+ return $author$project$GenerateMain$subNone;
38594
38175
  } else {
38595
38176
  return $author$project$GenerateMain$applyIdentityTo(
38596
38177
  $author$project$Elm$val('gotBatchSub'));