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

This is a prerelease version of GHC.



Package test results are passing.

This package was approved as a trusted package on 4/28/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 --pre

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

C:\> choco upgrade ghc --pre


  • tools\chocolateyInstall.ps1 Show
    $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 -Url64bit $url64 -ChecksumType64 sha256 -Checksum64 1b5ff7995a07e7251b26b3c7dadba57906b7e6d236d0e94c4e92d9b5b8ee3300
    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 8.8.1-alpha01 18 Sunday, April 28, 2019 approved
GHC 8.6.5-rc1 29 Monday, April 8, 2019 approved
GHC 8.6.4 816 Sunday, March 24, 2019 approved
GHC 8.6.2 4150 Tuesday, November 6, 2018 approved
GHC 1697 Saturday, September 22, 2018 approved
GHC 8.6.1-beta1 76 Saturday, August 11, 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.