Skip to content
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
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

jmikedupont2
Copy link

@jmikedupont2 jmikedupont2 commented Jul 23, 2023

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
| ^^^^^^^^^

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
    |       ^^^^^^^^^
@jmikedupont2
Copy link
Author

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.

@nalchevanidze
Copy link
Member

no. worries. i will look on it (but cant promise it will be soon)

@jmikedupont2
Copy link
Author

jmikedupont2 commented Jul 27, 2023 via email

@jmikedupont2
Copy link
Author

jmikedupont2 commented Jun 11, 2024 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants