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

Reduce the API of proto-lens-protoc. #357

Merged
merged 2 commits into from
Oct 23, 2019
Merged

Reduce the API of proto-lens-protoc. #357

merged 2 commits into from
Oct 23, 2019

Conversation

judah
Copy link
Collaborator

@judah judah commented Oct 23, 2019

Previously we exposed most of the internals as a library, with the hope
that they'd be useful for plugins (i.e. for services). But now we're
exposing service information at the type level, and the library
continues to be unused. Removing most of it allows us to change
the internals without requiring a major version bump. For example,
with this change the migration to ghc-source-gen would have only
required a minor version bump.

Fixes #347. I think it's not feasible to completely remove the library
at this time, since we still want to share logic around module
names between proto-lens-protoc and proto-lens-setup.

Previously we exposed most of the internals as a library, with the hope
that they'd be useful for plugins (i.e. for services).  But now we're
exposing service information at the type level, and the library
continues to be unused.  Removing most of it allows us to change
the internals without requiring a major version bump.  For example,
with this change the migration to ghc-source-gen would have only
required a minor version bump.

Fixes #347.  I think it's not feasible to completely remove the library
at this time, since we still want to share logic around module
names between proto-lens-protoc and proto-lens-setup.
@blackgnezdo
Copy link
Collaborator

Did you search hackage for reverse deps to declare the library unused in practice?

@judah
Copy link
Collaborator Author

judah commented Oct 23, 2019

Yeah, they're all only using it for the codegen, not for libraries.
https://packdeps.haskellers.com/reverse/proto-lens-protoc

@judah judah merged commit 8a87ece into master Oct 23, 2019
@judah judah deleted the reduce-plp-api branch October 23, 2019 05:03
avdv pushed a commit to avdv/proto-lens that referenced this pull request Aug 9, 2023
Previously we exposed most of the internals as a library, with the hope
that they'd be useful for plugins (i.e. for services).  But now we're
exposing service information at the type level, and the library
continues to be unused.  Removing most of it allows us to change
the internals without requiring a major version bump.  For example,
with this change the migration to ghc-source-gen would have only
required a minor version bump.

Fixes google#347.  I think it's not feasible to completely remove the library
at this time, since we still want to share logic around module
names between proto-lens-protoc and proto-lens-setup.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Remove the library from proto-lens-protoc
3 participants