-
-
Notifications
You must be signed in to change notification settings - Fork 62
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Please Help ! This code does not compile #842
Open
jmikedupont2
wants to merge
1
commit into
morpheusgraphql:main
Choose a base branch
from
jmikedupont2:example/metacoq/introspector
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Please Help ! This code does not compile #842
jmikedupont2
wants to merge
1
commit into
morpheusgraphql:main
from
jmikedupont2:example/metacoq/introspector
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
this introduces the metacoq types but still not deriving. error is : -*- mode: compilation; default-directory: "/mnt/data1/2023/07/22/morpheus-graphql/examples/scotty/src/Server/Mythology/" -*- Compilation started at Sun Jul 23 09:47:23 stack build morpheus-graphql-examples-scotty> build (exe) Preprocessing executable 'scotty-server' for morpheus-graphql-examples-scotty-0.1.0.. Building executable 'scotty-server' for morpheus-graphql-examples-scotty-0.1.0.. [12 of 18] Compiling Server.Subscription.SimpleSubscription [Server.Mythology.Character changed] [15 of 18] Compiling Server.Mythology.API /mnt/data1/2023/07/22/morpheus-graphql/examples/scotty/src/Server/Mythology/API.hs:112:7: error: • No instance for (morpheus-graphql-server-0.27.3:Data.Morpheus.Server.Deriving.Utils.GRep.GRep GQLType (morpheus-graphql-server-0.27.3:Data.Morpheus.Server.Types.GQLType.GQLResolver (morpheus-graphql-app-0.27.3:Data.Morpheus.App.Internal.Resolving.Resolver.Resolver morpheus-graphql-core-0.27.3:Data.Morpheus.Types.Internal.AST.OperationType.QUERY () IO)) (morpheus-graphql-app-0.27.3:Data.Morpheus.App.Internal.Resolving.Resolver.Resolver morpheus-graphql-core-0.27.3:Data.Morpheus.Types.Internal.AST.OperationType.QUERY () IO (morpheus-graphql-app-0.27.3:Data.Morpheus.App.Internal.Resolving.Types.ResolverValue (morpheus-graphql-app-0.27.3:Data.Morpheus.App.Internal.Resolving.Resolver.Resolver morpheus-graphql-core-0.27.3:Data.Morpheus.Types.Internal.AST.OperationType.QUERY () IO))) (GHC.Generics.Rep (Prod Global_env Term))) arising from a use of ‘deriveApp’ • In the expression: deriveApp rootResolver In an equation for ‘app’: app = deriveApp rootResolver | 112 | app = deriveApp rootResolver | ^^^^^^^^^
Please do not merge, this is a request for help but I thought it would be easier to represent my question in the form of a PR. I am just learning this system please be patient with me. |
no. worries. i will look on it (but cant promise it will be soon) |
I have been working on resolving this by breaking down the types. I think
it has to do with product types of the form (Pair a b) where I have to add
rules to derive the code.
RIght now I am looking into using template haskell to build the right
things but I am still struggling on how to do this, it is quite the
advanced topic. any tips would be appreciated.
Essentially I want to generate a GQL from an existing inductive type
hierarchy and I would like to save it to a file. I know it should derive
automatically. right now I am digging into
https://github.com/vacationlabs/record-splicer in the hopes of slicing my
huge data types into smaller records that might be digestable.
Do you have a slack or irc channel or some other communication channel?
thanks,
mike
…On Thu, Jul 27, 2023, 10:48 David Nalchevanidze ***@***.***> wrote:
no. worries. i will look on it (but cant promise it will be soon)
—
Reply to this email directly, view it on GitHub
<#842 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AD5KQ2MHHKP4ULX4WFY2UA3XSJ5TJANCNFSM6AAAAAA2UR3NTE>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
Yeah guys is there any way that we can construct a graphql schema from a
template Haskell structure
…On Tue, Jun 11, 2024, 07:14 David Nalchevanidze ***@***.***> wrote:
Reopened #842
<#842>.
—
Reply to this email directly, view it on GitHub
<#842 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AD5KQ2LHTSSWN4YKBKY7YZTZG3L2FAVCNFSM6AAAAABJEDQRMKVHI2DSMVQWIX3LMV45UABCJFZXG5LFIV3GK3TUJZXXI2LGNFRWC5DJN5XDWMJTGEYTKNBXGU2TMOA>
.
You are receiving this because you authored the thread.Message ID:
***@***.***
com>
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
this introduces the metacoq types but still not deriving.
error is :
/mnt/data1/2023/07/22/morpheus-graphql/examples/scotty/src/Server/Mythology/API.hs:112:7: error:
• No instance for (morpheus-graphql-server-0.27.3:Data.Morpheus.Server.Deriving.Utils.GRep.GRep
GQLType
(morpheus-graphql-server-0.27.3:Data.Morpheus.Server.Types.GQLType.GQLResolver
(morpheus-graphql-app-0.27.3:Data.Morpheus.App.Internal.Resolving.Resolver.Resolver
morpheus-graphql-core-0.27.3:Data.Morpheus.Types.Internal.AST.OperationType.QUERY
()
IO))
(morpheus-graphql-app-0.27.3:Data.Morpheus.App.Internal.Resolving.Resolver.Resolver
morpheus-graphql-core-0.27.3:Data.Morpheus.Types.Internal.AST.OperationType.QUERY
()
IO
(morpheus-graphql-app-0.27.3:Data.Morpheus.App.Internal.Resolving.Types.ResolverValue
(morpheus-graphql-app-0.27.3:Data.Morpheus.App.Internal.Resolving.Resolver.Resolver
morpheus-graphql-core-0.27.3:Data.Morpheus.Types.Internal.AST.OperationType.QUERY
()
IO)))
(GHC.Generics.Rep (Prod Global_env Term)))
arising from a use of ‘deriveApp’
• In the expression: deriveApp rootResolver
In an equation for ‘app’: app = deriveApp rootResolver
|
112 | app = deriveApp rootResolver
| ^^^^^^^^^