diff --git a/lib/GHCup/Utils.hs b/lib/GHCup/Utils.hs index 687fb0d..f780562 100644 --- a/lib/GHCup/Utils.hs +++ b/lib/GHCup/Utils.hs @@ -1270,11 +1270,13 @@ warnAboutHlsCompatibility = do case (currentGHC, currentHLS) of (Just gv, Just hv) | gv `notElem` supportedGHC -> do logWarn $ - "GHC " <> T.pack (prettyShow gv) <> " is not compatible with " <> - "Haskell Language Server " <> T.pack (prettyShow hv) <> "." <> "\n" <> - "Haskell IDE support may not work until this is fixed." <> "\n" <> - "Install a different HLS version, or install and set one of the following GHCs:" <> "\n" <> - T.pack (prettyShow supportedGHC) + "GHC-" <> T.pack (prettyShow gv) <> " appears to have no corresponding HLS-" <> T.pack (prettyShow hv) <> " binary." <> "\n" <> + "Haskell IDE support may not work." <> "\n" <> + "You can try to either: " <> "\n" <> + " 1. Install a different HLS version (e.g. downgrade for older GHCs)" <> "\n" <> + " 2. Install and set one of the following GHCs: " <> T.pack (prettyShow supportedGHC) <> "\n" <> + " 3. Let GHCup compile HLS for you, e.g. run: ghcup compile hls -g " <> T.pack (prettyShow hv) <> " --ghc " <> T.pack (prettyShow gv) <> " --cabal-update\n" <> + " (see https://www.haskell.org/ghcup/guide/#hls for more information)" _ -> return ()