@@ -41438,7 +41438,7 @@ var gqlToPursMainSchemaCode = function(v) {
41438
41438
return notNullTypeToPurs(v1.value0);
41439
41439
}
41440
41440
;
41441
- throw new Error("Failed pattern match at GraphQL.Client.CodeGen.Schema (line 445 , column 16 - line 448 , column 72): " + [v1.constructor.name]);
41441
+ throw new Error("Failed pattern match at GraphQL.Client.CodeGen.Schema (line 432 , column 16 - line 435 , column 72): " + [v1.constructor.name]);
41442
41442
};
41443
41443
var notNullTypeToPurs = function(v1) {
41444
41444
if (v1 instanceof NonNullType_NamedType) {
@@ -41449,7 +41449,7 @@ var gqlToPursMainSchemaCode = function(v) {
41449
41449
return listTypeToPurs(v1.value0);
41450
41450
}
41451
41451
;
41452
- throw new Error("Failed pattern match at GraphQL.Client.CodeGen.Schema (line 459 , column 23 - line 461 , column 51): " + [v1.constructor.name]);
41452
+ throw new Error("Failed pattern match at GraphQL.Client.CodeGen.Schema (line 446 , column 23 - line 448 , column 51): " + [v1.constructor.name]);
41453
41453
};
41454
41454
var listTypeToPursNullable = function(t) {
41455
41455
return wrapMaybe(listTypeToPurs(t));
@@ -41507,7 +41507,7 @@ var gqlToPursMainSchemaCode = function(v) {
41507
41507
return wrapNotNull2(argNotNullTypeToPurs2(v1.value0));
41508
41508
}
41509
41509
;
41510
- throw new Error("Failed pattern match at GraphQL.Client.CodeGen.Schema (line 427 , column 19 - line 430 , column 89): " + [v1.constructor.name]);
41510
+ throw new Error("Failed pattern match at GraphQL.Client.CodeGen.Schema (line 414 , column 19 - line 417 , column 89): " + [v1.constructor.name]);
41511
41511
};
41512
41512
var argNotNullTypeToPurs2 = function(v1) {
41513
41513
if (v1 instanceof NonNullType_NamedType) {
@@ -41518,7 +41518,7 @@ var gqlToPursMainSchemaCode = function(v) {
41518
41518
return argListTypeToPurs2(v1.value0);
41519
41519
}
41520
41520
;
41521
- throw new Error("Failed pattern match at GraphQL.Client.CodeGen.Schema (line 433 , column 26 - line 435 , column 54): " + [v1.constructor.name]);
41521
+ throw new Error("Failed pattern match at GraphQL.Client.CodeGen.Schema (line 420 , column 26 - line 422 , column 54): " + [v1.constructor.name]);
41522
41522
};
41523
41523
var argListTypeToPurs2 = function(v1) {
41524
41524
return "(Array " + (argTypeToPurs2(v1) + ")");
@@ -41543,7 +41543,7 @@ var gqlToPursMainSchemaCode = function(v) {
41543
41543
return v2.value0.moduleName + ("." + v2.value0.typeName);
41544
41544
}
41545
41545
;
41546
- throw new Error("Failed pattern match at GraphQL.Client.CodeGen.Schema (line 416 , column 10 - line 421 , column 53): " + [v2.constructor.name]);
41546
+ throw new Error("Failed pattern match at GraphQL.Client.CodeGen.Schema (line 403 , column 10 - line 408 , column 53): " + [v2.constructor.name]);
41547
41547
}()));
41548
41548
};
41549
41549
};
@@ -41556,7 +41556,7 @@ var gqlToPursMainSchemaCode = function(v) {
41556
41556
var tName = typeName_(v1.name);
41557
41557
return docComment3(v1.description) + ("newtype " + (tName + (" = " + (tName + (maybe("{}")(function(v2) {
41558
41558
return inputValueToFieldsDefinitionToPurs(tName)(v2);
41559
- })(v1.inputFieldsDefinition) + ("\nderive instance newtype" + (tName + (" :: Newtype " + (tName + ( " _" + ("\ninstance argToGql" + (tName + (" :: (Newtype " + (tName + (" {| p}, RecordArg p a u) => ArgGql " + (tName + " { | a }"))))))) )))))))));
41559
+ })(v1.inputFieldsDefinition) + ("\nderive instance newtype" + (tName + (" :: Newtype " + (tName + " _")))))))));
41560
41560
};
41561
41561
var inputValueDefinitionsToPurs3 = function(v1) {
41562
41562
return inlineComment2(v1.description) + (safeFieldname(v1.name) + (" :: " + argTypeToPurs2(v1.type)));
@@ -41584,7 +41584,7 @@ var gqlToPursMainSchemaCode = function(v) {
41584
41584
return wrapMaybe(v2.value0.moduleName + ("." + v2.value0.typeName));
41585
41585
}
41586
41586
;
41587
- throw new Error("Failed pattern match at GraphQL.Client.CodeGen.Schema (line 306 , column 10 - line 311 , column 65): " + [v2.constructor.name]);
41587
+ throw new Error("Failed pattern match at GraphQL.Client.CodeGen.Schema (line 299 , column 10 - line 304 , column 65): " + [v2.constructor.name]);
41588
41588
}())));
41589
41589
};
41590
41590
};
@@ -41597,7 +41597,7 @@ var gqlToPursMainSchemaCode = function(v) {
41597
41597
var tName = typeName_(v1.name);
41598
41598
return docComment3(v1.description) + function() {
41599
41599
if (v.useNewtypesForRecords) {
41600
- 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 }"))))))) ))))))));
41600
+ return "newtype " + (typeName_(v1.name) + (" = " + (typeName_(v1.name) + (maybe("{}")(fieldsDefinitionToPurs(tName))(v1.fieldsDefinition) + ("\nderive instance newtype" + (tName + (" :: Newtype " + (tName + " _"))))))));
41601
41601
}
41602
41602
;
41603
41603
return "type " + (typeName_(v1.name) + foldMap6(function(fd) {
0 commit comments