hide:
- navigation
- toc
GHCup
GHCup is an installer for the general purpose language Haskell.
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.
Quick Install
WSL2
Linux, macOS, FreeBSD orRun 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