<p>Run the following in your terminal (as a user other than root), then follow the onscreen instructions.</p>
<divclass="command-button"><pre><spanclass='ghcup-command'>curl --proto '=https' --tlsv1.2 -sSf https://get-ghcup.haskell.org | sh</span></pre><buttonclass="tooltip"onclick="copyToClipboard()"><imgsrc="copy.svg"alt=""/><spanclass="tooltiptext">Copy to clipboard</span></button></div>
<pclass="other-help">If you don't like curl | sh, see <ahref="https://gitlab.haskell.org/haskell/ghcup-hs#manual-install">other installation methods</a>.<br/>You appear to be running Linux. If not, <aclass="default-platform-button"href="#">display all supported installers</a>.</p>
<pclass="other-help">If you don't like curl | sh, see <ahref="https://gitlab.haskell.org/haskell/ghcup-hs#manual-install">other installation methods</a>.<br/>You appear to be running macOS. If not, <aclass="default-platform-button"href="#">display all supported installers</a>.</p>
<p>Run the following in your terminal (as a user other than root), then follow the onscreen instructions.</p>
<divclass="command-button"><pre><spanclass='ghcup-command'>curl --proto '=https' --tlsv1.2 -sSf https://get-ghcup.haskell.org | sh</span></pre><buttonclass="tooltip"onclick="copyToClipboard()"><imgsrc="copy.svg"alt=""/><spanclass="tooltiptext">Copy to clipboard</span></button></div>
<pclass="other-help">If you don't like curl | sh, see <ahref="https://gitlab.haskell.org/haskell/ghcup-hs#manual-install">other installation methods</a>.<br/>You appear to be running FreeBSD. If not, <aclass="default-platform-button"href="#">display all supported installers</a>.</p>
<divclass="command-button"><pre><spanclass='ghcup-command'id="ghcup-command-powershell">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</span></span></pre><buttonclass="tooltip"onclick="copyToClipboardPowershell()"><imgsrc="copy.svg"alt=""/><spanclass="tooltiptext">Copy to clipboard</span></button>
</div>
<pclass="other-help">If you want to run an interactive installation, change <spanclass='code'>$false</span> to <spanclass='code'>$true</span> at the end of the script.</p>
<divclass="command-button"><pre><spanclass='ghcup-command'>curl --proto '=https' --tlsv1.2 -sSf https://get-ghcup.haskell.org | sh</span></pre><buttonclass="tooltip"onclick="copyToClipboard()"><imgsrc="copy.svg"alt=""/><spanclass="tooltiptext">Copy to clipboard</span></button>
</div>
<pclass="other-help">WSL1 does not work with ghcup, follow <ahref="https://docs.microsoft.com/en-us/windows/wsl/install-win10">the instructions here</a> to upgrade to WSL2 if needed.</p>
<pclass="other-help">You appear to be running Windows 32-bit. If not, <aclass="default-platform-button"href="#">display all supported installers</a>.</p>
<divclass="command-button"><pre><spanclass='ghcup-command'>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</span></span></pre><buttonclass="tooltip"onclick="copyToClipboardPowershell()"><imgsrc="copy.svg"alt=""/><spanclass="tooltiptext">Copy to clipboard</span></button>
</div>
<pclass="other-help">If you want to run an interactive installation, change <spanclass='code'>$false</span> to <spanclass='code'>$true</span> at the end of the script.</p>
<divclass="command-button"><pre><spanclass='ghcup-command'>curl --proto '=https' --tlsv1.2 -sSf https://get-ghcup.haskell.org | sh</span></pre><buttonclass="tooltip"onclick="copyToClipboard()"><imgsrc="copy.svg"alt=""/><spanclass="tooltiptext">Copy to clipboard</span></button>
</div>
<pclass="other-help">WSL1 does not work with ghcup, follow <ahref="https://docs.microsoft.com/en-us/windows/wsl/install-win10">the instructions here</a> to upgrade to WSL2 if needed.</p>
</div>
<pclass="other-help">You appear to be running Windows 64-bit. If not, <aclass="default-platform-button"href="#">display all supported installers</a>.</p>
<p>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.</p>
<divclass="command-button"><pre><spanclass='ghcup-command'>curl --proto '=https' --tlsv1.2 -sSf https://get-ghcup.haskell.org | sh</span></pre><buttonclass="tooltip"onclick="copyToClipboard()"><imgsrc="copy.svg"alt=""/><spanclass="tooltiptext">Copy to clipboard</span></button></div>
<pclass="other-help">If you don't like curl | sh, see <ahref="https://gitlab.haskell.org/haskell/ghcup-hs#manual-install">other installation methods</a>.</p>
in your terminal (as a user other than root), then follow the onscreen instructions.</p>
<divclass="command-button"><pre><spanclass='ghcup-command'>curl --proto '=https' --tlsv1.2 -sSf https://get-ghcup.haskell.org | sh</span></pre><buttonclass="tooltip"onclick="copyToClipboard()"><imgsrc="copy.svg"alt=""/><spanclass="tooltiptext">Copy to clipboard</span></button></div>
<pclass="other-help">If you don't like curl | sh, see <ahref="https://gitlab.haskell.org/haskell/ghcup-hs#manual-install">other installation methods</a>.</p>
Need help? Ask on <ahref="https://kiwiirc.com/nextclient/irc.libera.chat/#haskell-ghcup">#haskell-ghcup</a>, <ahref="https://kiwiirc.com/nextclient/irc.libera.chat/#haskell">#haskell</a> or <ahref="https://gitlab.haskell.org/haskell/ghcup-hs/issues">report a bug</a>.