Skip to content

Pr 59 patches#210

Open
peterwicksstringfield wants to merge 2 commits intocircuithub:reflect-schemafrom
peterwicksstringfield:pr_59_patches
Open

Pr 59 patches#210
peterwicksstringfield wants to merge 2 commits intocircuithub:reflect-schemafrom
peterwicksstringfield:pr_59_patches

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