Install Stack, GHC and Cabal to Windows Images (#874)

* install stack
* implement logic that gets 3 latest versions of ghc
This commit is contained in:
Dibir Magomedsaygitov
2020-05-15 15:01:45 +03:00
committed by GitHub
parent 89b403d60a
commit 5160bfa626
7 changed files with 196 additions and 1 deletions

View File

@@ -0,0 +1,27 @@
################################################################################
## File: Validate-Stack.ps1
## Desc: Validate Stack for Windows
################################################################################
if (Get-Command -Name 'stack')
{
Write-Host "stack is on the path"
}
else
{
Write-Host "stack is not on path."
exit 1
}
$StackVersion = stack --version --quiet
# Adding description of the software to Markdown
$SoftwareName = "Stack"
$Description = @"
_Version:_ $StackVersion<br/>
_Environment:_
* PATH: contains location of stack.exe
"@
Add-SoftwareDetailsToMarkdown -SoftwareName $SoftwareName -DescriptionMarkdown $Description