-
Notifications
You must be signed in to change notification settings - Fork 56
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
Fix module renaming in compile-proto-file
#183
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Overall this looks good, but in addition to the few very minor issues mentioned below, could you please increase the version number to 0.5.0 because this is a breaking change? Users will have to modify their source code to expect the new module names.
Changes: 1. remove `-XBangPatterns` in `Proto3.Suite.DotProto.Generate` 2. bump package version `0.4.3` -> `0.5.0`
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the change, and for making those edits.
I added a unit test making sure that Testing code is overkill for what it's currently used for, but will make adding tests for other renaming functions in the future much easier. |
I got frustrated with trying to handle all of the edge cases (e.g. "A_") so I just rewrote |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
* preserve character casing in module names * bump package version `0.4.3` -> `0.5.0`
* preserve character casing in module names * bump package version `0.4.3` -> `0.5.0`
This PR changes the way
compile-proto-file
handles generating valid Haskell module names from protobuf files, fixes issue #182.