Skip to content

Commit

Permalink
bundle
Browse files Browse the repository at this point in the history
  • Loading branch information
roryc89 committed Apr 12, 2024
1 parent 27f5614 commit be15ace
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gen-schema-bundled.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -58945,7 +58945,7 @@ var template = function(modulePrefix) {
return "module " + (modulePrefix + ("Schema." + (v.schemaName + (".Enum." + (v.name + (" where\n\nimport Prelude\n\nimport Data.Argonaut.Decode (class DecodeJson, JsonDecodeError(..), decodeJson)\nimport Data.Argonaut.Encode (class EncodeJson, encodeJson)\nimport Data.Bounded (class Bounded)\nimport Data.Enum (class Enum, class BoundedEnum, Cardinality(..))\nimport Data.Either (Either(..))\nimport Data.Function (on)\nimport Data.Maybe (Maybe(..))\nimport GraphQL.Client.ToGqlString (class GqlArgString)\nimport GraphQL.Hasura.Decode (class DecodeHasura)\nimport GraphQL.Hasura.Encode (class EncodeHasura)\n" + (intercalate7("\n")(v.imports) + ("\n\n" + (docComment2(v.description) + ("data " + (v.name + (" \n = " + (enumCtrs + ("\n" + (v.customCode({
name: v.name,
values: valuesAndTransforms
}) + ("\n\ninstance eq" + (v.name + (" :: Eq " + (v.name + (" where \n eq = eq `on` show\n\ninstance ord" + (v.name + (" :: Ord " + (v.name + (" where\n compare = compare `on` show\n\ninstance gqlArgString" + (v.name + (" :: GqlArgString " + (v.name + (" where\n toGqlArgStringImpl = show\n\ninstance decodeJson" + (v.name + (" :: DecodeJson " + (v.name + (" where\n decodeJson = decodeJson >=> case _ of \n" + (decodeMember + ('\n s -> Left $ TypeMismatch $ "Not a ' + (v.name + (': " <> s\n\ninstance encodeJson' + (v.name + (" :: EncodeJson " + (v.name + (" where \n encodeJson = show >>> encodeJson\n\ninstance decdoeHasura" + (v.name + (" :: DecodeHasura " + (v.name + (" where \n decodeHasura = decodeJson\n\ninstance encodeHasura" + (v.name + (" :: EncodeHasura " + (v.name + (" where \n encodeHasura = encodeJson\n\ninstance show" + (v.name + (" :: Show " + (v.name + (" where\n show a = case a of \n" + (showMember + ("\n\ninstance enum" + (v.name + (" :: Enum " + (v.name + (" where\n succ a = case a of \n " + (succMembers + ("\n pred a = case a of \n " + (predMembers + ("\n\ninstance bounded" + (v.name + (" :: Bounded " + (v.name + (" where\n top = " + (enumValueName(v1.head) + ("\n bottom = " + (enumValueName(v2.last) + ("\n\ninstance boundedEnum" + (v.name + (" :: BoundedEnum " + (v.name + (" where\n cardinality = Cardinality " + (show4(length3(v.values)) + ("\n toEnum a = case a of\n " + (toEnumMembers + ("\n fromEnum a = case a of\n " + (fromEnumMembers + "\n\n")))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))));
}) + ("\n\ninstance eq" + (v.name + (" :: Eq " + (v.name + (" where \n eq = eq `on` show\n\ninstance ord" + (v.name + (" :: Ord " + (v.name + (" where\n compare = compare `on` show\n\ninstance gqlArgString" + (v.name + (" :: GqlArgString " + (v.name + (" where\n toGqlArgStringImpl = show\n\ninstance decodeJson" + (v.name + (" :: DecodeJson " + (v.name + (" where\n decodeJson = decodeJson >=> case _ of \n" + (decodeMember + ('\n s -> Left $ TypeMismatch $ "Not a ' + (v.name + (': " <> s\n\ninstance encodeJson' + (v.name + (" :: EncodeJson " + (v.name + (" where \n encodeJson = show >>> encodeJson\n\ninstance decdoeHasura" + (v.name + (" :: DecodeHasura " + (v.name + (" where \n decodeHasura = decodeJson\n\ninstance encodeHasura" + (v.name + (" :: EncodeHasura " + (v.name + (" where \n encodeHasura = encodeJson\n\ninstance show" + (v.name + (" :: Show " + (v.name + (" where\n show a = case a of \n" + (showMember + ("\n\ninstance enum" + (v.name + (" :: Enum " + (v.name + (" where\n succ a = case a of \n " + (succMembers + ("\n pred a = case a of \n " + (predMembers + ("\n\ninstance bounded" + (v.name + (" :: Bounded " + (v.name + (" where\n top = " + (enumValueName(v2.last) + ("\n bottom = " + (enumValueName(v1.head) + ("\n\ninstance boundedEnum" + (v.name + (" :: BoundedEnum " + (v.name + (" where\n cardinality = Cardinality " + (show4(length3(v.values)) + ("\n toEnum a = case a of\n " + (toEnumMembers + ("\n fromEnum a = case a of\n " + (fromEnumMembers + "\n\n")))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))));
};
};

Expand Down

0 comments on commit be15ace

Please sign in to comment.