-
-
Notifications
You must be signed in to change notification settings - Fork 387
[GHC 9.0] No need to parse without Haddocks #1892
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
Comments
@pepeiborra |
I think the expected behaviour is the same but we can remove the double parsing for ghc >= 9.0.1, as haddock will not throw error for those ghc versions here: haskell-language-server/ghcide/src/Development/IDE/Core/Rules.hs Lines 893 to 900 in 229faac
and here haskell-language-server/ghcide/src/Development/IDE/Core/Rules.hs Lines 197 to 250 in 229faac
(and maybe in more code call sites?) |
liftIO $ (fmap.fmap.fmap.fmap) wonderful 😅 |
Then, perhaps also adding a regression test with erroneous Haddock comment(s) would make sense to ensure that HLS doesn't suffer from such malformed Haddock comments. |
Hmm i think the linked test already does it: the haddock error is converted in a warning. So if it is reported incorrectly as an error the test would fail afaiu. |
Thinking in this twice it is unfortunate that we are losing the haddock diagnostics for ghc >= 9.0as maybe some users find them useful, before they hit the error when building docs. |
We can close this? @pepeiborra @jneira |
Yeah! many thanks for fixing it |
Haddock markup parse errors are flagged as warnings in 9.0 (no longer errors) so there's no longer a need to parse twice
The text was updated successfully, but these errors were encountered: