Skip to content

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

Merged
jaspervdj merged 3 commits intohaskell:mainfrom
July541:ghc-lib
Apr 27, 2022
Merged

Add ghc-lib flag to force use ghc-lib-parser even if ghc is supported#402
jaspervdj merged 3 commits intohaskell:mainfrom
July541:ghc-lib

Conversation

@July541
Copy link
Copy Markdown
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
Copy Markdown
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.

Co-authored-by: Jasper Van der Jeugt <jaspervdj@gmail.com>
@jaspervdj jaspervdj merged commit a617127 into haskell:main Apr 27, 2022
@July541
Copy link
Copy Markdown
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