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

Fix the Haskell indexer on plugins with ghc-8.6. #94

Merged
merged 3 commits into from
Sep 21, 2019

Conversation

jinwoo
Copy link
Member

@jinwoo jinwoo commented Sep 20, 2019

Upstreaming a local change.

The GHC API changed and now requires explicitly loading plugins for each module.

Copy link
Collaborator

@robinp robinp left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks for the change!

@jinwoo
Copy link
Member Author

jinwoo commented Sep 20, 2019

Robin, this code works only for GHC >8.6. We have CI setups for many old GHC versions. Do we want to support those? Do I have to add version conditionals around this code?

@jinwoo jinwoo requested a review from robinp September 20, 2019 18:45
@jinwoo
Copy link
Member Author

jinwoo commented Sep 20, 2019

Added __GLASGOW_HASKELL__ >= 861 conditions.

@jinwoo
Copy link
Member Author

jinwoo commented Sep 20, 2019

This fixes #93.

@jinwoo
Copy link
Member Author

jinwoo commented Sep 20, 2019

This PR now sits on the top of #95.

Upstreaming a local change.

The GHC API changed and now requires explicitly loading plugins for each module.
@robinp
Copy link
Collaborator

robinp commented Sep 21, 2019

@jinwoo I'm not very concerned about supporting older GHCs, given the tool is not widespread. If it ever becomes a burden, feel free to remove non-recent configurations from CI and maybe the related conditionals in code.

Thanks for making it green! Eventually we can develop a more specific strategy about version support.

@jinwoo
Copy link
Member Author

jinwoo commented Sep 21, 2019

Thanks, @robinp . Now that the builds are fixed, there doesn't seem to be a big burden for maintaining the old versions for now. But longer term, we'll have to add newer GHCs (8.8.*) and remove older ones.

Merging now.

@jinwoo jinwoo merged commit d4c10b3 into google:master Sep 21, 2019
@jinwoo jinwoo deleted the plugins branch September 21, 2019 15:25
jinwoo added a commit to jinwoo/haskell-indexer that referenced this pull request Sep 23, 2019
Also fix the wrong __GLASGOW_HASKELL__ conditions from my
google#94. Its value for GHC
v8.6.1 is not 861 but 806 (ignoring the patch version).
jinwoo added a commit that referenced this pull request Sep 24, 2019
Generate v-names in one line, without newlines.

Upstreaming another local change.

This also removes excessive whitespaces in v-names.

Also delete unused imports and functions.

Also fix the wrong __GLASGOW_HASKELL__ conditions from my
#94. Its value for GHC
v8.6.1 is not 861 but 806 (ignoring the patch version).
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

Successfully merging this pull request may close these issues.

2 participants