ghcup is an installer for
the general purpose language Haskell

To install Haskell,
run the following in a powershell session (as a non-admin user).

Set-ExecutionPolicy Bypass -Scope Process -Force;[System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072;Invoke-Command -ScriptBlock ([ScriptBlock]::Create((Invoke-WebRequest https://www.haskell.org/ghcup/sh/bootstrap-haskell.ps1 -UseBasicParsing))) -ArgumentList $true

If you want to run a non-interactive installation, change $true to $false at the end of the script.

If you're a Windows Subsystem 2 for Linux user run the following in your terminal, then follow the onscreen instructions to install Haskell.

curl --proto '=https' --tlsv1.2 -sSf https://get-ghcup.haskell.org | sh

WSL1 does not work with ghcup, follow the instructions here to upgrade to WSL2 if needed.


You appear to be running Windows 32-bit. If not, display all supported installers.

To install Haskell, if you are running Linux, macOS, FreeBSD or Windows Subsystem 2 for Linux, run the following in your terminal (as a user other than root), then follow the onscreen instructions.

curl --proto '=https' --tlsv1.2 -sSf https://get-ghcup.haskell.org | sh

If you don't like curl | sh, see other installation methods.


If you are running Windows,
run the following in a powershell session (as a non-admin user).

Set-ExecutionPolicy Bypass -Scope Process -Force;[System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072;Invoke-Command -ScriptBlock ([ScriptBlock]::Create((Invoke-WebRequest https://www.haskell.org/ghcup/sh/bootstrap-haskell.ps1 -UseBasicParsing))) -ArgumentList $false

Need help? Ask on #haskell-ghcup, #haskell or report a bug.

ghcup is a haskell.org hosted project.
other installation options  ·  about ghcup  ·  web design from rustup