@@ -42141,7 +42141,7 @@ var template2 = function(v) {
42141
42141
var enumImports = intercalate6("\n")(mapFlipped3(v.enums)(function(v1) {
42142
42142
return "import " + (v.modulePrefix + ("Schema." + (v.name + (".Enum." + (v1 + (" (" + (v1 + ")")))))));
42143
42143
}));
42144
- return "module " + (v.modulePrefix + ("Schema." + (v.name + (" where\n\nimport Data.Maybe (Maybe)\nimport Data.Newtype (class Newtype)\nimport GraphQL.Client.Args (class ArgGql, class RecordArg, NotNull)\nimport GraphQL.Client.Union (GqlUnion)\nimport " + (maybe("GraphQL.Client.ID (ID)")(getImport)(v.idImport) + ("\n" + (enumImports + ("\n\n" + (v.mainSchemaCode + "\n")))))))));
42144
+ return "module " + (v.modulePrefix + ("Schema." + (v.name + (" where\n\nimport Data.Maybe (Maybe)\nimport Data.Newtype (class Newtype)\nimport GraphQL.Client.Args (NotNull)\nimport GraphQL.Client.Union (GqlUnion)\nimport " + (maybe("GraphQL.Client.ID (ID)")(getImport)(v.idImport) + ("\n" + (enumImports + ("\n\n" + (v.mainSchemaCode + "\n")))))))));
42145
42145
};
42146
42146
42147
42147
// output/GraphQL.Client.CodeGen.Schema/index.js
@@ -42385,7 +42385,7 @@ var gqlToPursMainSchemaCode = function(v) {
42385
42385
return notNullTypeToPurs(v1.value0);
42386
42386
}
42387
42387
;
42388
- throw new Error("Failed pattern match at GraphQL.Client.CodeGen.Schema (line 429 , column 16 - line 432 , column 72): " + [v1.constructor.name]);
42388
+ throw new Error("Failed pattern match at GraphQL.Client.CodeGen.Schema (line 416 , column 16 - line 419 , column 72): " + [v1.constructor.name]);
42389
42389
};
42390
42390
var notNullTypeToPurs = function(v1) {
42391
42391
if (v1 instanceof NonNullType_NamedType) {
@@ -42396,7 +42396,7 @@ var gqlToPursMainSchemaCode = function(v) {
42396
42396
return listTypeToPurs(v1.value0);
42397
42397
}
42398
42398
;
42399
- throw new Error("Failed pattern match at GraphQL.Client.CodeGen.Schema (line 443 , column 23 - line 445 , column 51): " + [v1.constructor.name]);
42399
+ throw new Error("Failed pattern match at GraphQL.Client.CodeGen.Schema (line 430 , column 23 - line 432 , column 51): " + [v1.constructor.name]);
42400
42400
};
42401
42401
var listTypeToPursNullable = function(t) {
42402
42402
return wrapMaybe(listTypeToPurs(t));
@@ -42450,7 +42450,7 @@ var gqlToPursMainSchemaCode = function(v) {
42450
42450
return wrapNotNull(argNotNullTypeToPurs(v1.value0));
42451
42451
}
42452
42452
;
42453
- throw new Error("Failed pattern match at GraphQL.Client.CodeGen.Schema (line 413 , column 19 - line 416 , column 89): " + [v1.constructor.name]);
42453
+ throw new Error("Failed pattern match at GraphQL.Client.CodeGen.Schema (line 400 , column 19 - line 403 , column 89): " + [v1.constructor.name]);
42454
42454
};
42455
42455
var argNotNullTypeToPurs = function(v1) {
42456
42456
if (v1 instanceof NonNullType_NamedType) {
@@ -42461,7 +42461,7 @@ var gqlToPursMainSchemaCode = function(v) {
42461
42461
return argListTypeToPurs(v1.value0);
42462
42462
}
42463
42463
;
42464
- throw new Error("Failed pattern match at GraphQL.Client.CodeGen.Schema (line 419 , column 26 - line 421 , column 54): " + [v1.constructor.name]);
42464
+ throw new Error("Failed pattern match at GraphQL.Client.CodeGen.Schema (line 406 , column 26 - line 408 , column 54): " + [v1.constructor.name]);
42465
42465
};
42466
42466
var argListTypeToPurs = function(v1) {
42467
42467
return "(Array " + (argTypeToPurs(v1) + ")");
@@ -42486,7 +42486,7 @@ var gqlToPursMainSchemaCode = function(v) {
42486
42486
return v2.value0.moduleName + ("." + v2.value0.typeName);
42487
42487
}
42488
42488
;
42489
- throw new Error("Failed pattern match at GraphQL.Client.CodeGen.Schema (line 402 , column 10 - line 407 , column 53): " + [v2.constructor.name]);
42489
+ throw new Error("Failed pattern match at GraphQL.Client.CodeGen.Schema (line 389 , column 10 - line 394 , column 53): " + [v2.constructor.name]);
42490
42490
}()));
42491
42491
};
42492
42492
};
@@ -42499,7 +42499,7 @@ var gqlToPursMainSchemaCode = function(v) {
42499
42499
var tName = typeName_(v1.name);
42500
42500
return docComment3(v1.description) + ("newtype " + (tName + (" = " + (tName + (maybe("{}")(function(v2) {
42501
42501
return inputValueToFieldsDefinitionToPurs(tName)(v2);
42502
- })(v1.inputFieldsDefinition) + ("\nderive instance newtype" + (tName + (" :: Newtype " + (tName + ( " _" + ("\ninstance argToGql" + (tName + (" :: (Newtype " + (tName + (" {| p}, RecordArg p a u) => ArgGql " + (tName + " { | a }"))))))) )))))))));
42502
+ })(v1.inputFieldsDefinition) + ("\nderive instance newtype" + (tName + (" :: Newtype " + (tName + " _")))))))));
42503
42503
};
42504
42504
var inputValueDefinitionsToPurs = function(v1) {
42505
42505
return inlineComment(v1.description) + (safeFieldname(v1.name) + (" :: " + argTypeToPurs(v1.type)));
@@ -42527,7 +42527,7 @@ var gqlToPursMainSchemaCode = function(v) {
42527
42527
return wrapMaybe(v2.value0.moduleName + ("." + v2.value0.typeName));
42528
42528
}
42529
42529
;
42530
- throw new Error("Failed pattern match at GraphQL.Client.CodeGen.Schema (line 292 , column 10 - line 297 , column 65): " + [v2.constructor.name]);
42530
+ throw new Error("Failed pattern match at GraphQL.Client.CodeGen.Schema (line 285 , column 10 - line 290 , column 65): " + [v2.constructor.name]);
42531
42531
}())));
42532
42532
};
42533
42533
};
@@ -42540,7 +42540,7 @@ var gqlToPursMainSchemaCode = function(v) {
42540
42540
var tName = typeName_(v1.name);
42541
42541
return docComment3(v1.description) + function() {
42542
42542
if (v.useNewtypesForRecords) {
42543
- return "newtype " + (typeName_(v1.name) + (" = " + (typeName_(v1.name) + (" " + (maybe("{}")(fieldsDefinitionToPurs(tName))(v1.fieldsDefinition) + ("\nderive instance newtype" + (tName + (" :: Newtype " + (tName + ( " _" + ("\ninstance argToGql" + (tName + (" :: (Newtype " + (tName + (" {| p}, RecordArg p a u) => ArgGql " + (tName + " { | a }"))))))) )))))))));
42543
+ return "newtype " + (typeName_(v1.name) + (" = " + (typeName_(v1.name) + (" " + (maybe("{}")(fieldsDefinitionToPurs(tName))(v1.fieldsDefinition) + ("\nderive instance newtype" + (tName + (" :: Newtype " + (tName + " _")))))))));
42544
42544
}
42545
42545
;
42546
42546
return "type " + (typeName_(v1.name) + foldMap5(function(fd) {
0 commit comments