Fix Stack's installation path (#896)

* fix path

* fix naming

* add ghc to path
This commit is contained in:
Dibir Magomedsaygitov
2020-05-22 20:22:13 +03:00
committed by GitHub
parent d7a86d8500
commit 1877f7df5e
2 changed files with 9 additions and 2 deletions

View File

@@ -15,5 +15,10 @@ ForEach ($version in $VersionsList)
Choco-Install -PackageName ghc -ArgumentList "--version", $version, "-m"
}
# Add default version of GHC to path, because choco formula updates path on user level
$DefaultGhcVersion = $VersionsList | Select-Object -Last 1
$DefaultGhcPath = Join-Path $env:ChocolateyInstall "lib\ghc.$DefaultGhcVersion\tools\ghc-$DefaultGhcVersion\bin"
Add-MachinePathItem -PathItem $DefaultGhcPath
Write-Host "Installing cabal..."
Choco-Install -PackageName cabal