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

Generic instances #20

Open
jkarni opened this issue Dec 6, 2016 · 1 comment
Open

Generic instances #20

jkarni opened this issue Dec 6, 2016 · 1 comment

Comments

@jkarni
Copy link

jkarni commented Dec 6, 2016

I want to retrieve the list of types of Placeholders in a typechecked Statement. This would be significantly easier with a Generic instance for most datatypes.

I'm happy to send a PR with instances, though looking at the ag files has me a little confused: I'd have thought it to be just a question of adding deriving <Type>: <classes>, but it seems as though ScalarExpr has more instances than I can find in the source file.

@JakeWheat
Copy link
Owner

The instances are probably from this line which is using the uuagc syntax:
deriving AllNodes: Show,Eq,Typeable,Data
(hssqlppp/src/Database/HsSqlPpp/Internals/AstInternal.ag:1382)

AllNodes is defined just above this.

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