+
Skip to content

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

点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载