Skip to content

Commit

Permalink
wrapper: find exe named h-l-s-<ghcVersion>~<hlsVersion> like GHCUP na…
Browse files Browse the repository at this point in the history
…mes it
  • Loading branch information
adamse committed Dec 3, 2024
1 parent b8127f7 commit 9c8fb52
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion exe/Wrapper.hs
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,8 @@ launchHaskellLanguageServer recorder parsedArgs = do

let
hlsBin = "haskell-language-server-" ++ ghcVersion
candidates' = [hlsBin, "haskell-language-server"]
ghcupBin = "haskell-language-server-" ++ ghcVersion ++ "~" ++ hlsVersion
candidates' = [hlsBin, ghcupBin, "haskell-language-server"]
candidates = map (++ exeExtension) candidates'

liftIO $ hPutStrLn stderr $ "haskell-language-server exe candidates: " ++ show candidates
Expand Down

0 comments on commit 9c8fb52

Please sign in to comment.