Skip to content

Add LibraryVisibility to InstalledPackageInfo #5815

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

Merged
merged 1 commit into from
Dec 27, 2018

Conversation

fgaz
Copy link
Member

@fgaz fgaz commented Dec 26, 2018

This pr only modifies the datatype. The field is not filled with the correct visibility info yet. We'll need a ghc-pkg compiled with this patch to actually record this information and properly test the visibility checks.

/cc @phadej @ezyang @23Skidoo


Please include the following checklist in your PR:

  • Patches conform to the coding conventions.
  • Any changes that could be relevant to users have been recorded in the changelog.
  • The documentation has been updated, if necessary.
  • If the change is docs-only, [ci skip] is used to avoid triggering the build bots.

Please also shortly describe how you tested your change. Bonus points for added tests!

This patch only modifies the datatype. The field is not filled with the
correct visibility info yet.
A ghc-pkg compiled with this patch is needed to actually record this
information and properly test the visibility checks.
@fgaz fgaz force-pushed the library-visibility-ipi branch from 5c88c7a to 9f2867c Compare December 26, 2018 18:18
@fgaz fgaz added this to the 3.0 milestone Dec 26, 2018
@phadej
Copy link
Collaborator

phadej commented Dec 26, 2018

I guess this needs #5812 and corrections to GHC to properly test, so I'm in favor of merging this eagerly.

If I read properly, the field isn't ever written with this change (as we never yet set it to not private), so this is safe to apply.

@phadej phadej merged commit 9f76d8f into haskell:master Dec 27, 2018
@23Skidoo
Copy link
Member

If I read properly, the field isn't ever written with this change (as we never yet set it to not private), so this is safe to apply.

OK. I assume it will be gated on the GHC version in the full implementation?

@phadej
Copy link
Collaborator

phadej commented Dec 28, 2018

@23Skidoo yes, in similar way we gate on e.g. different formats of license field. It's not difficult to do, and I'll watch after so it's done properly.

@fgaz fgaz deleted the library-visibility-ipi branch January 1, 2019 17:44
@fgaz fgaz restored the library-visibility-ipi branch September 3, 2020 11:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants