Skip to content

Restore haddock error reporting for ghc >= 9.0 #2336

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

Closed
jneira opened this issue Nov 9, 2021 · 0 comments
Closed

Restore haddock error reporting for ghc >= 9.0 #2336

jneira opened this issue Nov 9, 2021 · 0 comments
Labels
type: enhancement New feature or request

Comments

@jneira
Copy link
Member

jneira commented Nov 9, 2021

  • From [GHC 9.0] No need to parse without Haddocks #1892 (comment)
  • For ghc >= 9.0 we are losing the haddock errors as warnings, as ghc does not report them directly anymore (for good reasons)
  • But it is unfortunate that we are losing them as maybe some users find them useful, before they hit the error when building docs.
  • Maybe we should restore those diagnostics, but not in ghcide, where are not necessary but in the hls-haddock-plugin itself:

https://github.com/haskell/haskell-language-server/blob/master/plugins/hls-haddock-comments-plugin/src/Ide/Plugin/HaddockComments.hs

I would add a option to make them errors or warnings though

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant