Downloads of v 8.4.1-alpha3:


Last Update:

07 Feb 2018

Package Maintainer(s):

Software Author(s):

  • GHC Team


ghc haskell


This is a prerelease version of GHC.

8.4.1-alpha3 | Updated: 07 Feb 2018



Downloads of v 8.4.1-alpha3:



Software Author(s):

  • GHC Team


ghc haskell

GHC 8.4.1-alpha3

This is a prerelease version of GHC.

All Checks are Passing

2 Passing Test

Validation Testing Passed

Verification Testing Passed


To install GHC, run the following command from the command line or from PowerShell:


To upgrade GHC, run the following command from the command line or from PowerShell:


To uninstall GHC, run the following command from the command line or from PowerShell:


NOTE: This applies to both open source and commercial editions of Chocolatey.

1. Ensure you are set for organizational deployment

Please see the organizational deployment guide

  • Open Source or Commercial:
    • Proxy Repository - Create a proxy nuget repository on Nexus, Artifactory Pro, or a proxy Chocolatey repository on ProGet. Point your upstream to Packages cache on first access automatically. Make sure your choco clients are using your proxy repository as a source and NOT the default community repository. See source command for more information.
    • You can also just download the package and push it to a repository Download

3. Enter your internal repository url

(this should look similar to

4. Choose your deployment method:

choco upgrade ghc -y --source="'STEP 3 URL'" [other options]

See options you can pass to upgrade.

See best practices for scripting.

Add this to a PowerShell script or use a Batch script with tools and in places where you are calling directly to Chocolatey. If you are integrating, keep in mind enhanced exit codes.

If you do use a PowerShell script, use the following to ensure bad exit codes are shown as failures:

choco upgrade ghc -y --source="'STEP 3 URL'"

Write-Verbose "Exit code was $exitCode"
$validExitCodes = @(0, 1605, 1614, 1641, 3010)
if ($validExitCodes -contains $exitCode) {
  Exit 0

Exit $exitCode

- name: Ensure ghc installed
    name: ghc
    state: present
    version: 8.4.1-alpha3
    source: STEP 3 URL

See docs at

Coming early 2020! Central Managment Reporting available now! More information...

chocolatey_package 'ghc' do
  action    :install
  version  '8.4.1-alpha3'
  source   'STEP 3 URL'

See docs at

    Name: ghc,
    Version: 8.4.1-alpha3,
    Source: STEP 3 URL

Requires Otter Chocolatey Extension. See docs at

cChocoPackageInstaller ghc
   Name     = 'ghc'
   Ensure   = 'Present'
   Version  = '8.4.1-alpha3'
   Source   = 'STEP 3 URL'

Requires cChoco DSC Resource. See docs at

package { 'ghc':
  provider => 'chocolatey',
  ensure   => '8.4.1-alpha3',
  source   => 'STEP 3 URL',

Requires Puppet Chocolatey Provider module. See docs at

salt '*' chocolatey.install ghc version="8.4.1-alpha3" source="STEP 3 URL"

See docs at

5. If applicable - Chocolatey configuration/installation

See infrastructure management matrix for Chocolatey configuration elements and examples.

This package was approved as a trusted package on 07 Feb 2018.


• GHC supports the entire Haskell 2010 language plus a wide variety of extensions.
• GHC has particularly good support for concurrency and parallelism, including support for Software Transactional Memory (STM).
• GHC generates fast code, particularly for concurrent programs. Take a look at GHC's performance on The Computer Language Benchmarks Game.
• GHC works on several platforms including Windows, Mac, Linux, most varieties of Unix, and several different processor architectures. There are detailed instructions for porting GHC to a new platform.
• GHC has extensive optimisation capabilities, including inter-module optimisation.
• GHC compiles Haskell code either directly to native code or using LLVM as a back-end. GHC can also generate C code as an intermediate target for porting to new platforms. The interactive environment compiles Haskell to bytecode, and supports execution of mixed bytecode/compiled programs.
• Profiling is supported, both by time/allocation and various kinds of heap profiling.
• GHC comes with several libraries, and thousands more are available on Hackage.

$version     = ''
$packageName = 'ghc'
$url         = ''
$url64       = ''

$binRoot         = $(Split-Path -parent $MyInvocation.MyCommand.Definition)
$packageFullName = Join-Path $binRoot ($packageName + '-' + $version)
$binPackageDir   = Join-Path $packageFullName "bin"

$tmpPath = Join-Path $env:chocolateyPackageFolder tmp
$tarFile = $packageName + "Install"
$tarPath = Join-Path $tmpPath $tarFile
$tmpFile = Join-Path $binRoot ($tarFile + "~")

Get-ChocolateyWebFile -PackageName $packageName -FileFullPath $tarPath -Url $url -ChecksumType sha256 -Checksum f1e8f671d9d8f1fbbb27130b6e6015bf15a1f719a25a72ca9246002d8ffaddfb -Url64bit $url64 -ChecksumType64 sha256 -Checksum64 c8ce832c0af2f2c639905ea6bf9678ec2e22e945e74189434252cb0c9c0b75fc
Get-ChocolateyUnzip -fileFullPath $tarPath -destination $binRoot
Get-ChocolateyUnzip -fileFullPath $tmpFile -destination $binRoot
rm $tmpFile # Clean up temporary file

Install-ChocolateyPath "$binPackageDir"

Write-Host "Hiding shims for `'$binRoot`'."
$files = get-childitem $binRoot -include *.exe -recurse

foreach ($file in $files) {
    #generate an ignore file
    New-Item "$file.ignore" -type file -force | Out-Null

Log in or click on link to see number of positives.

In cases where actual malware is found, the packages are subject to removal. Software sometimes has false positives. Moderators do not necessarily validate the safety of the underlying software, only that a package retrieves software from the official distribution point and/or validate embedded software against official distribution point (where distribution rights allow redistribution).

Chocolatey Pro provides runtime protection from possible malware.

Version Downloads Last Updated Status
GHC 9.0.1-alpha1 51 Saturday, October 10, 2020 Exempted
GHC 8.10.2 17271 Sunday, August 9, 2020 Approved
GHC 8.10.1 18492 Tuesday, March 24, 2020 Approved
GHC 8.10.1-alpha1 87 Wednesday, November 27, 2019 Approved
GHC 8.8.4 1903 Thursday, July 16, 2020 Approved
GHC 8.8.3 3948 Friday, February 28, 2020 Approved
GHC 8.8.2 2632 Friday, January 31, 2020 Approved
GHC 8.8.1 4380 Friday, August 30, 2019 Approved

Discussion for the GHC Package

Ground Rules:

  • This discussion is only about GHC and the GHC package. If you have feedback for Chocolatey, please contact the Google Group.
  • This discussion will carry over multiple versions. If you have a comment about a particular version, please note that in your comments.
  • The maintainers of this Chocolatey Package will be notified about new comments that are posted to this Disqus thread, however, it is NOT a guarantee that you will get a response. If you do not hear back from the maintainers after posting a message below, please follow up by using the link on the left side of this page or follow this link to contact maintainers. If you still hear nothing back, please follow the package triage process.
  • Tell us what you love about the package or GHC, or tell us what needs improvement.
  • Share your experiences with the package, or extra configuration or gotchas that you've found.
  • If you use a url, the comment will be flagged for moderation until you've been whitelisted. Disqus moderated comments are approved on a weekly schedule if not sooner. It could take between 1-5 days for your comment to show up.
comments powered by Disqus