ghcup is an installer for
the general purpose language Haskell

On Windows, 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'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.


What does this do?  ·  I'm not running Windows

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

What does this do?  ·  I don't like curl | sh


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 $true

What does this do?

Need help? Ask on IRC, Discord, or report a bug .

ghcup is a haskell.org supported project.
other installation options  ·  read the docs  ·  web design from rustup