-
Notifications
You must be signed in to change notification settings - Fork 60
Open
Description
Take for instance test files from test-files/ directory, if you compile them you get these Haskell modules:
TestProtoTestProtoImportTestProtoLeadingDotTestProtoNestedMessageTestProtoOneofTestProtoOneofImportTestProtoProtocPlugin
This pollutes top-level module namespace. It would be nice to provide an argument to put the generated Haskell file under some namespace. Sometime like this:
compile-proto-file --moduleNamespace 'Data.Proto.Model'And then all the modules would be named like this:
Data.Proto.Model.TestProtoData.Proto.Model.TestProtoImportData.Proto.Model.TestProtoLeadingDotData.Proto.Model.TestProtoNestedMessageData.Proto.Model.TestProtoOneofData.Proto.Model.TestProtoOneofImportData.Proto.Model.TestProtoProtocPlugin
And this would change only Haskell module names and nothing else.
P.S. I’ve tried to implement myself but I couldn’t come up with a good solution yet. I need to get deeper into the code. Maybe you have some ideas of how this can be done?
marshall-lee, carassius1014 and riz0id
Metadata
Metadata
Assignees
Labels
No labels