Chocolatey Fest - Chocolatey's inaugural conference on Windows Automation (WinOps) is coming - Learn more!


Package test results are passing.

This package was approved as a trusted package on 9/22/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.

There's an important change to path handling for Windows on 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.1'
    $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 64e4ded48bd03ddd93401c3ff8a2016bc32c584ce27461d4028d6fddd56eea06 `
        -Url64bit $url64 -ChecksumType64 sha256 -Checksum64 7316d9cb5e486460476754f872c7bac30ee2082e42f46da4342f872d10b88099
    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.6.1-beta1 38 Saturday, August 11, 2018 approved
GHC 8.6.1-alpha2-1 60 Tuesday, July 17, 2018 approved
GHC 8.6.1-alpha1 34 Saturday, June 30, 2018 approved
GHC 8.4.4 12 Tuesday, October 16, 2018 approved
GHC 8.4.3 2538 Tuesday, May 29, 2018 approved
GHC 8.4.2 611 Friday, April 20, 2018 approved
GHC 8.4.1 1198 Thursday, March 8, 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.