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

re-enable haddock #3015

Merged
merged 3 commits into from
Jul 5, 2022
Merged

re-enable haddock #3015

merged 3 commits into from
Jul 5, 2022

Conversation

kokobd
Copy link
Collaborator

@kokobd kokobd commented Jul 4, 2022

Currently, we disable -haddock option in cabal.project because ghc-lib 9.2 doesn't build on GHC 8.10.
For now, we can remove the dependency on ghc-lib in hls-hlint-plugin, using ghc-lib-parser instead. (actually hlint itself doesn't depend on ghc-lib) Meanwhile, I've opened an issue in ghc-lib, see: digital-asset/ghc-lib#391

@michaelpj
Copy link
Collaborator

We build hlint with +ghc-lib so it depends on ghc-lib, so I don't see how this can help us?

@kokobd
Copy link
Collaborator Author

kokobd commented Jul 4, 2022

so it depends on ghc-lib

@michaelpj hlint depends on ghc-lib-parser actually, see: https://hackage.haskell.org/package/hlint-3.4/hlint.cabal

@kokobd kokobd marked this pull request as ready for review July 4, 2022 09:11
@kokobd kokobd requested review from jneira and eddiemundo as code owners July 4, 2022 09:11
@kokobd kokobd requested review from pepeiborra and michaelpj July 4, 2022 09:11
@michaelpj
Copy link
Collaborator

So it does! Seems fine to me, but @pepeiborra might have thoughts since I know he did stuff in this area recently.

@pepeiborra
Copy link
Collaborator

Looks great to me

@kokobd kokobd added the merge me Label to trigger pull request merge label Jul 5, 2022
@kokobd
Copy link
Collaborator Author

kokobd commented Jul 5, 2022

@Mergifyio refresh

@mergify
Copy link
Contributor

mergify bot commented Jul 5, 2022

refresh

✅ Pull request refreshed

@mergify mergify bot merged commit 344323b into master Jul 5, 2022
@kokobd kokobd deleted the kokobd/haddock branch July 10, 2022 02:23
hololeap pushed a commit to hololeap/haskell-language-server that referenced this pull request Aug 26, 2022
* re-enable haddock

* fix it for old GHC

Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
RaoulHC added a commit to RaoulHC/haskell-language-server that referenced this pull request Aug 15, 2023
The ghc-lib flag was removed in haskell#3015, but it's still useful to be able
to compile hls-hlint-plugin using the GHC API if you've done so for
hlint and ghc-lib-parser-ex, rather than using ghc-lib-parser.
RaoulHC added a commit to RaoulHC/haskell-language-server that referenced this pull request Aug 15, 2023
The ghc-lib flag was removed in haskell#3015, but it's still useful to be able
to compile hls-hlint-plugin using the GHC API if you've done so for
hlint and ghc-lib-parser-ex, rather than using ghc-lib-parser.

Cleared out a lot of the HLINT_ON_GHC_LIB gated code which has probably
been bitrotting since this flag was removed, there shouldn't be a
difference in the API anyway.
RaoulHC added a commit to RaoulHC/haskell-language-server that referenced this pull request Aug 15, 2023
The ghc-lib flag was removed in haskell#3015, but it's still useful to be able
to compile hls-hlint-plugin using the GHC API if you've done so for
hlint and ghc-lib-parser-ex, rather than using ghc-lib-parser.

Cleared out a lot of the HLINT_ON_GHC_LIB gated code which has probably
been bitrotting since this flag was removed, there shouldn't be a
difference in the API anyway.
RaoulHC added a commit to RaoulHC/haskell-language-server that referenced this pull request Aug 15, 2023
The ghc-lib flag was removed in haskell#3015, but it's still useful to be able
to compile hls-hlint-plugin using the GHC API if you've done so for
hlint and ghc-lib-parser-ex, rather than using ghc-lib-parser.

Cleared out a lot of the HLINT_ON_GHC_LIB gated code which has probably
been bitrotting since this flag was removed, there shouldn't be a
difference in the API anyway.
RaoulHC added a commit to RaoulHC/haskell-language-server that referenced this pull request Aug 15, 2023
The ghc-lib flag was removed in haskell#3015, but it's still useful to be able
to compile hls-hlint-plugin using the GHC API if you've done so for
hlint and ghc-lib-parser-ex, rather than using ghc-lib-parser.

A lot of the HLINT_ON_GHC_LIB gated code which has probably been
bitrotting since this flag was removed has also been removed,
ghc-lib-parser API is exactly the same as GHC by design.
RaoulHC added a commit to RaoulHC/haskell-language-server that referenced this pull request Aug 15, 2023
The ghc-lib flag was removed in haskell#3015, but it's still useful to be able
to compile hls-hlint-plugin using the GHC API if you've done so for
hlint and ghc-lib-parser-ex, rather than using ghc-lib-parser.

A lot of the HLINT_ON_GHC_LIB gated code which has probably been
bitrotting since this flag was removed has also been removed,
ghc-lib-parser API is exactly the same as GHC by design.
RaoulHC added a commit to RaoulHC/haskell-language-server that referenced this pull request Aug 16, 2023
The ghc-lib flag was removed in haskell#3015, but it's still useful to be able
to compile hls-hlint-plugin using the GHC API if you've done so for
hlint and ghc-lib-parser-ex, rather than using ghc-lib-parser.

A lot of the HLINT_ON_GHC_LIB gated code which has probably been
bitrotting since this flag was removed has also been removed, and is
probably from when hlint used to work on haskell-src-exts. As
ghc-lib-parser has the same API as GHC itself, there's no need for code
to be cpp gated.
RaoulHC added a commit to RaoulHC/haskell-language-server that referenced this pull request Aug 16, 2023
The ghc-lib flag was removed in haskell#3015, but it's still useful to be able
to compile hls-hlint-plugin using the GHC API if you've done so for
hlint and ghc-lib-parser-ex, rather than using ghc-lib-parser.

A lot of the HLINT_ON_GHC_LIB gated code which has probably been
bitrotting since this flag was removed has also been removed, and is
probably from when hlint used to work on haskell-src-exts. As
ghc-lib-parser has the same API as GHC itself, there's no need for code
to be cpp gated.
RaoulHC added a commit to RaoulHC/haskell-language-server that referenced this pull request Aug 22, 2023
The ghc-lib flag was removed in haskell#3015, but it's still useful to be able
to compile hls-hlint-plugin using the GHC API if you've done so for
hlint and ghc-lib-parser-ex, rather than using ghc-lib-parser.

A lot of the HLINT_ON_GHC_LIB gated code which has probably been
bitrotting so this has been updated to allow hlint to work again
directly on the parsed AST.
RaoulHC added a commit to RaoulHC/haskell-language-server that referenced this pull request Aug 22, 2023
The ghc-lib flag was removed in haskell#3015, but it's still useful to be able
to compile hls-hlint-plugin using the GHC API if you've done so for
hlint and ghc-lib-parser-ex, rather than using ghc-lib-parser.

A lot of the HLINT_ON_GHC_LIB gated code which has probably been
bitrotting since this flag was removed has also been removed, and is
probably from when hlint used to work on haskell-src-exts. As
ghc-lib-parser has the same API as GHC itself, there's no need for code
to be cpp gated.
RaoulHC added a commit to RaoulHC/haskell-language-server that referenced this pull request Aug 22, 2023
The ghc-lib flag was removed in haskell#3015, but it's still useful to be able
to compile hls-hlint-plugin using the GHC API if you've done so for
hlint and ghc-lib-parser-ex, rather than using ghc-lib-parser.

A lot of the HLINT_ON_GHC_LIB gated code which has probably been
bitrotting since this flag was removed has also been removed, and is
probably from when hlint used to work on haskell-src-exts. As
ghc-lib-parser has the same API as GHC itself, there's no need for code
to be cpp gated.
RaoulHC added a commit to RaoulHC/haskell-language-server that referenced this pull request Sep 15, 2023
The ghc-lib flag was removed in haskell#3015, but it's still useful to be able
to compile hls-hlint-plugin using the GHC API if you've done so for
hlint and ghc-lib-parser-ex, rather than using ghc-lib-parser.

A lot of the HLINT_ON_GHC_LIB gated code which has probably been
bitrotting since this flag was removed has also been removed, and is
probably from when hlint used to work on haskell-src-exts. As
ghc-lib-parser has the same API as GHC itself, there's no need for code
to be cpp gated.
RaoulHC added a commit to RaoulHC/haskell-language-server that referenced this pull request Mar 6, 2024
The ghc-lib flag was removed in haskell#3015, but it's still useful to be able
to compile hls-hlint-plugin using the GHC API if you've done so for
hlint and ghc-lib-parser-ex, rather than using ghc-lib-parser.

A lot of the HLINT_ON_GHC_LIB gated code which has probably been
bitrotting since this flag was removed has also been removed, and is
probably from when hlint used to work on haskell-src-exts. As
ghc-lib-parser has the same API as GHC itself, there's no need for code
to be cpp gated.
RaoulHC added a commit to RaoulHC/haskell-language-server that referenced this pull request Mar 6, 2024
The ghc-lib flag was removed in haskell#3015, but it's still useful to be able
to compile hls-hlint-plugin using the GHC API if you've done so for
hlint and ghc-lib-parser-ex, rather than using ghc-lib-parser.

A lot of the HLINT_ON_GHC_LIB gated code which has probably been
bitrotting since this flag was removed has also been removed, and is
probably from when hlint used to work on haskell-src-exts. As
ghc-lib-parser has the same API as GHC itself, there's no need for code
to be cpp gated.
RaoulHC added a commit to RaoulHC/haskell-language-server that referenced this pull request Mar 7, 2024
The ghc-lib flag was removed in haskell#3015, but it's still useful to
be able to compile hls-hlint-plugin using the GHC API if you've done so
for hlint and ghc-lib-parser-ex, rather than using ghc-lib-parser as it
simplifies the build and dependencies.
RaoulHC added a commit to RaoulHC/haskell-language-server that referenced this pull request Mar 7, 2024
The ghc-lib flag was removed in haskell#3015, but it's still useful to
be able to compile hls-hlint-plugin using the GHC API if you've done so
for hlint and ghc-lib-parser-ex, rather than using ghc-lib-parser as it
simplifies the build and dependencies.
michaelpj pushed a commit that referenced this pull request Mar 7, 2024
* Remove bitrotted CPP gated code

A lot of the HLINT_ON_GHC_LIB gated code has been bitrotting since this
flag was removed. This could be reintroduced if we wanted to directly
work on the same parsed AST, but as the hlint ghc plugin showed this
may not make much difference: https://www.haskellforall.com/2023/09/ghc-plugin-for-hlint.html

* Reintroduce ghc-lib flag for hlint plugin

The ghc-lib flag was removed in #3015, but it's still useful to
be able to compile hls-hlint-plugin using the GHC API if you've done so
for hlint and ghc-lib-parser-ex, rather than using ghc-lib-parser as it
simplifies the build and dependencies.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
merge me Label to trigger pull request merge
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants