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

Support for referring to data types via their constructors #23

Open
srid opened this issue May 25, 2020 · 2 comments
Open

Support for referring to data types via their constructors #23

srid opened this issue May 25, 2020 · 2 comments

Comments

@srid
Copy link
Contributor

srid commented May 25, 2020

This,

data Query t r where
  Query_Foo :: Query String Int

deriveJSONGADT 'Query_Foo

gives:

tyConArity': Supplied name reified to something other than a data declaration: Neuron.Zettelkasten.Query.Type.Query_Foo
@cgibbard cgibbard changed the title Support for multiparam GADTs? Support for referring to data types via their constructors May 25, 2020
@cgibbard
Copy link
Contributor

We should make the task done by tyConArity' use th-abstraction instead, which is important to make this code write instances for data families.

@cgibbard
Copy link
Contributor

see also, #24

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

No branches or pull requests

2 participants