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

Illegal variable name 'type' #12

Open
ocramz opened this issue Oct 9, 2022 · 0 comments
Open

Illegal variable name 'type' #12

ocramz opened this issue Oct 9, 2022 · 0 comments

Comments

@ocramz
Copy link

ocramz commented Oct 9, 2022

Some FlatBuffers field names clash with Haskell reserved words, as in the Apache Arrow schema :

https://github.com/apache/arrow/blob/master/format/Schema.fbs#L471

The problem is that 'type' (and possibly others) are legal field names in FlatBuffers, but as of now this package re-uses the schema field names in the code generator without checking against a list of reserved Haskell keywords.

This test showcases this behaviour : https://app.travis-ci.com/github/dcastro/haskell-flatbuffers/builds/256468847#L8589

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

1 participant