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

Add ghc-lib flag to force use ghc-lib-parser even if ghc is supported #402

Merged
merged 3 commits into from
Apr 27, 2022

Conversation

July541
Copy link
Contributor

@July541 July541 commented Apr 27, 2022

Hello, this pr adds a ghc-lib flag to force use ghc-lib-parser even if ghc is supported. HLS will benefit a lot since we can support hls-stylish-haskell-plugin and hls-hlint-plugin on ghc9.2 simultaneously. I would appreciate it if this pr is accepted with a new release. Thanks in advance.

The necessity is here haskell/haskell-language-server#2854 (comment)

Copy link
Member

@jaspervdj jaspervdj left a comment

Choose a reason for hiding this comment

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

This is excellent, I was looking into supporting both ghc9 and ghc9.2 but the API differences turned out to be more than I expected. Thanks a lot! I'm happy to release this today.

Just one minor nitpick: can we remove the version bump? I prefer to do this in a separate commit since I have a bunch of scripts for this.

stylish-haskell.cabal Outdated Show resolved Hide resolved
Co-authored-by: Jasper Van der Jeugt <[email protected]>
@jaspervdj jaspervdj merged commit a617127 into haskell:main Apr 27, 2022
@July541
Copy link
Contributor Author

July541 commented Apr 27, 2022

FYI, I have a branch on ghc9.0 https://github.com/July541/stylish-haskell/tree/ghc-9.0

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