diff --git a/images/linux/scripts/SoftwareReport/SoftwareReport.Common.psm1 b/images/linux/scripts/SoftwareReport/SoftwareReport.Common.psm1 index 9388ded03..96cc4b562 100644 --- a/images/linux/scripts/SoftwareReport/SoftwareReport.Common.psm1 +++ b/images/linux/scripts/SoftwareReport/SoftwareReport.Common.psm1 @@ -251,7 +251,8 @@ function Build-PHPTable { function Get-GHCVersion { $(ghc --version) -match "version (?\d+\.\d+\.\d+)" | Out-Null $ghcVersion = $Matches.version - return "GHC $ghcVersion" + $aptSourceRepo = Get-AptSourceRepository -PackageName "ghc" + return "GHC $ghcVersion (apt source repository: $aptSourceRepo)" } function Get-GHCupVersion { diff --git a/images/linux/scripts/installers/haskell.sh b/images/linux/scripts/installers/haskell.sh index 725ab8bc5..2ab93c78a 100644 --- a/images/linux/scripts/installers/haskell.sh +++ b/images/linux/scripts/installers/haskell.sh @@ -49,4 +49,8 @@ ln -s "/opt/ghc/$defaultGHCVersion/bin/ghc" "/usr/bin/ghc" # Install the latest stable release of haskell stack curl -sSL https://get.haskellstack.org/ | sh -invoke_tests "Haskell" \ No newline at end of file +# remove PPA repo +echo "ghc ppa:hvr/ghc" >> $HELPER_SCRIPTS/apt-sources.txt +add-apt-repository --remove ppa:hvr/ghc + +invoke_tests "Haskell"