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

Pr 59 patches #210

Open
wants to merge 2 commits into
base: reflect-schema
Choose a base branch
from

Conversation

peterwicksstringfield
Copy link

@peterwicksstringfield peterwicksstringfield commented Oct 21, 2022

This is a PR on top of PR 59.

See #59 (comment)

…the schema in the generated code.

Formerly we were producing stuff like this:
foo :: TableSchema (Foo Name)
foo = TableSchema{name = "foo", schema = Just "foo", columns = Foo{[...]}}

Also remove redundant language pragma.
A somewhat awkward refactoring. Perhaps not worth it?

This avoids a gotcha, where someone tries to modify the rule for
mapping column names to field names, and they need to change it in
both places.
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.

1 participant