[ubuntu] Document GHC apt repository (#3268)

This commit is contained in:
Sergey Dolin
2021-04-28 16:51:16 +05:00
committed by GitHub
parent 6d21bc3d1a
commit 552da81d13
2 changed files with 7 additions and 2 deletions

View File

@@ -251,7 +251,8 @@ function Build-PHPTable {
function Get-GHCVersion { function Get-GHCVersion {
$(ghc --version) -match "version (?<version>\d+\.\d+\.\d+)" | Out-Null $(ghc --version) -match "version (?<version>\d+\.\d+\.\d+)" | Out-Null
$ghcVersion = $Matches.version $ghcVersion = $Matches.version
return "GHC $ghcVersion" $aptSourceRepo = Get-AptSourceRepository -PackageName "ghc"
return "GHC $ghcVersion (apt source repository: $aptSourceRepo)"
} }
function Get-GHCupVersion { function Get-GHCupVersion {

View File

@@ -49,4 +49,8 @@ ln -s "/opt/ghc/$defaultGHCVersion/bin/ghc" "/usr/bin/ghc"
# Install the latest stable release of haskell stack # Install the latest stable release of haskell stack
curl -sSL https://get.haskellstack.org/ | sh curl -sSL https://get.haskellstack.org/ | sh
# remove PPA repo
echo "ghc ppa:hvr/ghc" >> $HELPER_SCRIPTS/apt-sources.txt
add-apt-repository --remove ppa:hvr/ghc
invoke_tests "Haskell" invoke_tests "Haskell"