ghcup-hs/docs/index.md
2021-10-06 19:09:44 +02:00

3.5 KiB

hide
navigation
toc

{: .main-logo style="width:100px"} GHCup

GHCup is an installer for the general purpose language Haskell.

Join the chat at Libera.chat Join the chat at Matrix.org Join the chat at Discord Join the chat at https://gitter.im/haskell/ghcup Donate

GHCup makes it easy to install specific versions of GHC on GNU/Linux, macOS (aka Darwin), FreeBSD and Windows and can also bootstrap a fresh Haskell developer environment from scratch. It follows the unix UNIX philosophy of do one thing and do it well. Similar in scope to rustup, pyenv and jenv.

GHCup{: .center style="width:700px"}

Quick Install

Linux, macOS, FreeBSD or WSL2

Run the following in a terminal (as a non-root user):

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

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