Skip to content

simplify hlint plugin Cabal descriptor #2867

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Merged
merged 14 commits into from
May 1, 2022
Merged

simplify hlint plugin Cabal descriptor #2867

merged 14 commits into from
May 1, 2022

Conversation

pepeiborra
Copy link
Collaborator

@pepeiborra pepeiborra commented Apr 29, 2022

While working on #2866 I noticed that hls-hlint-pluginrequires per-ghc-version flags. This prevents cabal install haskell-language-server from working across ghc versions.

I think we can get rid of these flags:

  • the ghc-lib flag is unnecessary, there is no downside to using ghc-lib always for maximum compatibility
  • the hlint34 flag is unnecessary, cabal should be able to use the right version

@pepeiborra
Copy link
Collaborator Author

To make cabal install haskell-language-server truly possible, hlint needs to default to use ghc-lib consistently across ghc versions. I have opened ndmitchell/hlint#1376 for this

Copy link
Collaborator

@michaelpj michaelpj left a comment

Choose a reason for hiding this comment

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

Your reasoning sounds good to me. I'm confused about the ghc-lib comment, though. If there's no reason not to use ghc-lib instead of ghc, why isn't hlint doing that?

@michaelpj
Copy link
Collaborator

Ah, ignore the last comment, I just read the linked issue in hlint.

@pepeiborra pepeiborra marked this pull request as ready for review May 1, 2022 14:16
@pepeiborra pepeiborra enabled auto-merge (squash) May 1, 2022 17:55
@pepeiborra pepeiborra merged commit 2bd9ab4 into master May 1, 2022
sloorush pushed a commit to sloorush/haskell-language-server that referenced this pull request May 21, 2022
hololeap pushed a commit to hololeap/haskell-language-server that referenced this pull request Aug 26, 2022
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants