2021-10-02 19:36:15 +00:00
---
hide:
- navigation
- toc
---
2021-10-06 16:32:28 +00:00
< link rel = "stylesheet" href = "https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css" >
< script src = "javascripts/extra.js" > < / script >
2021-10-12 08:54:41 +00:00
< section class = "index-ghcup-hero" >
< img alt = "haskell logo" src = "./haskell_logo.png" / >
< h1 > GHCup< / h1 >
< / section >
2021-10-02 18:21:51 +00:00
2022-11-20 15:40:51 +00:00
< p class = "ghcup-intro" > GHCup is the main installer for the general purpose language < a href = "https://www.haskell.org" > Haskell< / a > .< / p >
2021-10-02 18:21:51 +00:00
2021-10-06 16:32:28 +00:00
< div class = "text-center main-buttons" >
2022-11-10 15:28:39 +00:00
< a href = "install/" class = "btn btn-primary" role = "button" > Installation< / a >
2022-04-02 21:31:35 +00:00
< a href = "steps/" class = "btn btn-primary" role = "button" > First steps< / a >
2021-10-02 18:21:51 +00:00
< a href = "guide/" class = "btn btn-primary" role = "button" > User Guide< / a >
< / div >
2021-10-02 20:26:35 +00:00
2021-10-09 07:44:26 +00:00
< section class = "qi-container" >
2021-10-11 19:05:06 +00:00
< div class = "ghcup-os-container" id = "ghcup-instructions-unix" >
< h3 > To install on Linux, macOS, FreeBSD or < a href = "https://docs.microsoft.com/en-us/windows/wsl/" > WSL2< / a > < / h3 >
< p > run the following in a terminal (as a non-root user):< p >
2021-10-09 07:44:26 +00:00
< div class = "command-button" >
< pre >
< span class = "ghcup-command" id = "ghcup-command-linux" > curl --proto '=https' --tlsv1.2 -sSf https://get-ghcup.haskell.org | sh< / span >
< / pre >
< button class = "btn" onclick = "copyToClipboardNux()" id = "ghcup-linux-button" > < i class = "fa fa-copy" > < / i > < / button >
< / div >
< span >
< / span >
2021-10-11 19:05:06 +00:00
< div class = "footer" >
2022-11-22 11:06:12 +00:00
< a href = "https://github.com/haskell/ghcup-hs/blob/master/scripts/bootstrap/bootstrap-haskell" target = "_blank" > What does this do?< / a > < b > · < / b > < a href = "https://www.haskell.org/ghcup/install/#manual-install" > I don't like curl | sh< / a > < div class = "show-all-platforms" > < b > · < / b > < a class = "show-all-platforms-button" href = "#" > Show all platforms< / a > < / div > < / p >
2021-10-11 19:05:06 +00:00
< / div >
2021-10-09 07:44:26 +00:00
< / div >
2021-10-11 19:05:06 +00:00
< div class = "ghcup-os-container" id = "ghcup-instructions-win" >
< h3 > To install on Windows< / h3 >
< p > run the following in a PowerShell session (as a non-admin user):< p >
2021-10-09 07:44:26 +00:00
< div class = "command-button" >
< pre >
2022-12-03 08:29:01 +00:00
< span class = "ghcup-command" id = "ghcup-command-windows" > Set-ExecutionPolicy Bypass -Scope Process -Force;[System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072; try { Invoke-Command -ScriptBlock ([ScriptBlock]::Create((Invoke-WebRequest https://www.haskell.org/ghcup/sh/bootstrap-haskell.ps1 -UseBasicParsing))) -ArgumentList $true } catch { Write-Error $_ }
2021-10-09 07:44:26 +00:00
< / span >
< / pre >
< button class = "btn" onclick = "copyToClipboardWin()" id = "ghcup-windows-button" > < i class = "fa fa-copy" > < / i > < / button >
< / div >
2021-10-11 19:05:06 +00:00
< div class = "footer" >
2022-11-22 11:06:12 +00:00
< a href = "https://github.com/haskell/ghcup-hs/blob/master/scripts/bootstrap/bootstrap-haskell.ps1" target = "_blank" > What does this do?< / a > < b > · < / b > < a href = "https://www.haskell.org/ghcup/install/#manual-install" > I don't like curl | sh< / a > < div class = "show-all-platforms" > < b > · < / b > < a class = "show-all-platforms-button" href = "#" > Show all platforms< / a > < / div > < / p >
2021-10-11 19:05:06 +00:00
< / div >
2021-10-09 07:44:26 +00:00
< / div >
< / section >
2021-10-11 19:05:06 +00:00
2021-10-13 10:39:31 +00:00
< p id = "help" class = "ghcup-help" >
2022-07-10 19:17:35 +00:00
Need help? Check the < a href = "guide/#troubleshooting" > Troubleshooting section< / a > or ask on
2021-10-13 10:39:31 +00:00
< span >
< a href = "https://kiwiirc.com/nextclient/irc.libera.chat/?nick=Guest%7C?#haskell,#haskell-ghcup" >
< img src = "irc.svg" alt = "" / >
IRC
< / a >
< / span > ,
< span >
< a href = "https://discord.gg/pKYf3zDQU7" >
< img src = "Discord-Logo-Black.svg" alt = "" / >
Discord
< / a >
< / span > ,
< span >
< a href = "https://app.element.io/#/room/#haskell-tooling:matrix.org" >
< img src = "Matrix_logo.svg" alt = "" / >
< / a >
< / span >
or
< span >
2022-11-22 11:06:12 +00:00
< a href = "https://github.com/haskell/ghcup-hs/issues" >
2021-10-13 10:39:31 +00:00
report a bug
< img src = "Octicons-bug.svg" alt = "" / >
< / a >
< / span >
< / p >
< script type = "text/javascript" src = "javascripts/ghcup.js" > < / script >
----
![GHCup ](./ghcup.gif ){: .center style="width:700px"}
2021-10-12 10:05:42 +00:00
< section class = "index-cta-donate" >
< button class = "donate-button" >
< a href = "https://opencollective.com/ghcup#category-CONTRIBUTE" class = "donate-badge" / >
2021-10-12 10:54:40 +00:00
< / a >
2021-10-12 10:05:42 +00:00
< / button >
< / section >