Fix 'ghcup install hls -u' on windows

Fixes #716
This commit is contained in:
Julian Ospald 2023-01-01 23:27:37 +08:00
parent d1075987de
commit 2783b8f693
Signed by: hasufell
GPG Key ID: 3786C5262ECB4A3F
1 changed files with 1 additions and 1 deletions

View File

@ -452,7 +452,7 @@ install installCommand settings getAppState' runLogger = case installCommand of
(_tvVersion -> v, vi) <- liftE $ fromVersion instVer HLS
-- TODO: support legacy
liftE $ runBothE' (installHLSBindist
(DownloadInfo uri (Just $ RegexDir "haskell-language-server-*") "")
(DownloadInfo uri (if isWindows then Nothing else Just (RegexDir "haskell-language-server-*")) "")
v
(maybe GHCupInternal IsolateDir isolateDir)
forceInstall