Notices: This section not yet converted to new layout. Download stats are rolling back out.



Package test results are passing.

This package was approved as a trusted package on 1/25/2019.

• 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.

There's an important change to path handling for Windows starting with 8.6.1.
These changes mean that Haskell programs are no longer constraint to MAX_PATH. So passing a long path to openFile will just work.
There are a few caveats to this such as you can't access COM devices via COM1 etc anymore and instead need to use the full path \\.\COM1 etc.
This is all documented

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

C:\> choco install ghc

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

C:\> choco upgrade ghc


  • tools\chocolateyInstall.ps1 Show
    $version     = '8.6.2'
    $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 a597240406b653aeed7a816496e170bff0b59be3082e87d7f65b0a3bc13e3a89 `
        -Url64bit $url64 -ChecksumType64 sha256 -Checksum64 9a398e133cab09ff2610834337355d4e26c35e0665403fb9ff8db79315f74d3d
    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

Virus Scan Results

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.


Package Maintainer(s)

Software Author(s)

  • GHC Team


Copyright 2017, The University Court of the University of Glasgow.


Release Notes

Version History

Version Downloads Last updated Status
GHC 1675 Saturday, September 22, 2018 approved
GHC 8.6.1-beta1 59 Saturday, August 11, 2018 approved
GHC 8.6.1-alpha2-1 85 Tuesday, July 17, 2018 approved
GHC 8.6.1-alpha1 60 Saturday, June 30, 2018 approved
GHC 8.4.4 1968 Tuesday, October 16, 2018 approved
GHC 8.4.3 2840 Tuesday, May 29, 2018 approved
Show More

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 uses cookies to enhance the user experience of the site.