163 lines
		
	
	
		
			13 KiB
		
	
	
	
		
			HTML
		
	
	
	
	
	
			
		
		
	
	
			163 lines
		
	
	
		
			13 KiB
		
	
	
	
		
			HTML
		
	
	
	
	
	
| <!DOCTYPE html>
 | |
| 
 | |
| <html>
 | |
|   <head>
 | |
|     <meta charset="utf-8">
 | |
|     <title>ghcup - The Haskell (GHC) toolchain installer</title>
 | |
|     <meta name="keywords" content="Haskell, Haskell programming language, ghc, ghcup">
 | |
|     <meta name="description" content="The Haskell (GHC) toolchain installer">
 | |
| 
 | |
|     <link rel="stylesheet" href="normalize.css">
 | |
|     <link rel="stylesheet" href="ghcup.css">
 | |
| 
 | |
|   </head>
 | |
| 
 | |
|   <body id="idx">
 | |
| 
 | |
|       <a id="platform-button" style="display: none;" href="#">
 | |
|         click or press "n" to cycle platforms
 | |
|       </a>
 | |
| 
 | |
|       <p id="pitch">
 | |
|         <em>ghcup</em> is an installer for<br/>
 | |
|         the general purpose language <a href="https://www.haskell.org/">Haskell</a>
 | |
|       </p>
 | |
| 
 | |
|       <div id="platform-instructions-linux" class="instructions" style="display: none;">
 | |
|         <p>On Linux, run the following in your terminal (as a user other than root), then follow the onscreen instructions.</p>
 | |
| 		<div class="command-button"><pre><span class='ghcup-command'>curl --proto '=https' --tlsv1.2 -sSf https://get-ghcup.haskell.org | sh</span></pre><button class="tooltip" onclick="copyToClipboard()"><img src="copy.svg" alt="" /><span class="tooltiptext">Copy to clipboard</span></button></div> 
 | |
| 	<p class="other-help"><a href="https://gitlab.haskell.org/haskell/ghcup-hs/-/blob/master/scripts/bootstrap/bootstrap-haskell" target="_blank">What does this do?</a> <b> · </b> <a href="https://ghcup.readthedocs.io/en/latest/install/#manual-install">I don't like curl | sh</a> <b> · </b> <a class="default-platform-button" href="#">I'm not running Linux</a></p>
 | |
|       </div>
 | |
| 
 | |
|       <div id="platform-instructions-mac" class="instructions" style="display: none;">
 | |
|         <p>On macOS, run the following in your terminal (as a user other than root), then follow the onscreen instructions.</p>
 | |
| 		<div class="command-button"><pre><span class='ghcup-command' id="ghcup-command-normal">curl --proto '=https' --tlsv1.2 -sSf https://get-ghcup.haskell.org | sh</span></pre><button class="tooltip" onclick="copyToClipboard()"><img src="copy.svg" alt="" /><span class="tooltiptext">Copy to clipboard</span></button></div>
 | |
| 	<p class="other-help"><a href="https://gitlab.haskell.org/haskell/ghcup-hs/-/blob/master/scripts/bootstrap/bootstrap-haskell" target="_blank">What does this do?</a> <b> · </b> <a href="https://ghcup.readthedocs.io/en/latest/install/#manual-install">I don't like curl | sh</a> <b> · </b> <a class="default-platform-button" href="#">I'm not running macOS</a></p>
 | |
|       </div>
 | |
| 
 | |
|       <div id="platform-instructions-freebsd" class="instructions" style="display: none;">
 | |
|         <p>On FreeBSD Run the following in your terminal (as a user other than root), then follow the onscreen instructions.</p>
 | |
| 		<div class="command-button"><pre><span class='ghcup-command'>curl --proto '=https' --tlsv1.2 -sSf https://get-ghcup.haskell.org | sh</span></pre><button class="tooltip" onclick="copyToClipboard()"><img src="copy.svg" alt="" /><span class="tooltiptext">Copy to clipboard</span></button></div>
 | |
| 	<p class="other-help"><a href="https://gitlab.haskell.org/haskell/ghcup-hs/-/blob/master/scripts/bootstrap/bootstrap-haskell" target="_blank">What does this do?</a> <b> · </b> <a href="https://ghcup.readthedocs.io/en/latest/install/#manual-install">I don't like curl | sh</a> <b> · </b> <a class="default-platform-button" href="#">I'm not running FreeBSD</a></p>
 | |
|       </div>
 | |
| 
 | |
|       <div id="platform-instructions-win32" class="instructions">
 | |
|         <p>
 | |
|             On Windows, to install Haskell,<br/>run the following in a powershell session (as a non-admin user).
 | |
| 			<div>
 | |
| 			<div class="command-button"><pre><span class='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 $true</span></span></pre><button class="tooltip" onclick="copyToClipboardPowershell()"><img src="copy.svg" alt="" /><span class="tooltiptext">Copy to clipboard</span></button>
 | |
| 			</div>
 | |
| 			</div>
 | |
| 		<p>If you're a Windows Subsystem 2 for Linux user run the following in your terminal, then follow the onscreen instructions to install Haskell.
 | |
| 		</p>
 | |
| 		<div>
 | |
| 		<div class="command-button"><pre><span class='ghcup-command'>curl --proto '=https' --tlsv1.2 -sSf https://get-ghcup.haskell.org | sh</span></pre><button class="tooltip" onclick="copyToClipboard()"><img src="copy.svg" alt="" /><span class="tooltiptext">Copy to clipboard</span></button>
 | |
| 		</div>
 | |
| 		<p class="other-help">WSL1 does not work with ghcup, follow  <a href="https://docs.microsoft.com/en-us/windows/wsl/install-win10">the instructions here</a> to upgrade to WSL2 if needed.</p>
 | |
| 		</div>
 | |
|         </p>
 | |
|         <hr/>
 | |
| 	<p class="other-help"><a href="https://gitlab.haskell.org/haskell/ghcup-hs/-/blob/master/scripts/bootstrap/bootstrap-haskell.ps1" target="_blank">What does this do?</a> <b> · </b> <a class="default-platform-button" href="#">I'm not running Windows</a></p>
 | |
|       </div>
 | |
| 
 | |
|       <div id="platform-instructions-win64" class="instructions" style="display: none;">
 | |
|         <p>
 | |
|             On Windows, to install Haskell,<br/>run the following in a powershell session (as a non-admin user).
 | |
| 			<div>
 | |
| 			<div class="command-button"><pre><span class='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 $true</span></span></pre><button class="tooltip" onclick="copyToClipboardPowershell()"><img src="copy.svg" alt="" /><span class="tooltiptext">Copy to clipboard</span></button>
 | |
| 			</div>
 | |
| 	<p class="other-help"><a href="https://gitlab.haskell.org/haskell/ghcup-hs/-/blob/master/scripts/bootstrap/bootstrap-haskell.ps1" target="_blank">What does this do?</a> <b> · </b> <a class="default-platform-button" href="#">I'm not running Windows</a></p>
 | |
| 			</div>
 | |
|         </p>
 | |
|         <hr/>
 | |
| 		<p>If you're a Windows Subsystem 2 for Linux user run the following in your terminal, then follow the onscreen instructions to install Haskell.
 | |
| 		</p>
 | |
| 		<div>
 | |
| 		<div class="command-button"><pre><span class='ghcup-command'>curl --proto '=https' --tlsv1.2 -sSf https://get-ghcup.haskell.org | sh</span></pre><button class="tooltip" onclick="copyToClipboard()"><img src="copy.svg" alt="" /><span class="tooltiptext">Copy to clipboard</span></button>
 | |
| 		</div>
 | |
| 		<p class="other-help">WSL1 does not work with ghcup, follow  <a href="https://docs.microsoft.com/en-us/windows/wsl/install-win10">the instructions here</a> to upgrade to WSL2 if needed.</p>
 | |
| 		</div>
 | |
| 	<p class="other-help"><a href="https://gitlab.haskell.org/haskell/ghcup-hs/-/blob/master/scripts/bootstrap/bootstrap-haskell" target="_blank">What does this do?</a> <b> · </b> <a class="default-platform-button" href="#">I'm not running Windows</a></p>
 | |
|       </div>
 | |
| 
 | |
|       <div id="platform-instructions-unknown" class="instructions" style="display: none;">
 | |
|         <!-- unrecognized platform: ask for help -->
 | |
|         <p>I don't recognize your platform.</p>
 | |
|         <p>
 | |
|           ghcup runs on Linux, macOS and FreeBSD. If
 | |
|           you are on one of these platforms and are seeing this then please
 | |
|           <a href="https://gitlab.haskell.org/haskell/ghcup-hs/issues">report an issue</a>,
 | |
|           along with the following values:
 | |
|         </p>
 | |
| 
 | |
|         <div>
 | |
|           <div>navigator.platform:</div>
 | |
|           <div id="nav-plat"></div>
 | |
|           <div>navigator.appVersion:</div>
 | |
|           <div id="nav-app"></div>
 | |
|         </div>
 | |
| 
 | |
|         <!-- duplicate the default cross-platform instructions -->
 | |
|         <div>
 | |
|           <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>
 | |
| 		  <div class="command-button"><pre><span class='ghcup-command'>curl --proto '=https' --tlsv1.2 -sSf https://get-ghcup.haskell.org | sh</span></pre><button class="tooltip" onclick="copyToClipboard()"><img src="copy.svg" alt="" /><span class="tooltiptext">Copy to clipboard</span></button></div>
 | |
| 		<p class="other-help"><a href="https://gitlab.haskell.org/haskell/ghcup-hs/-/blob/master/scripts/bootstrap/bootstrap-haskell" target="_blank">What does this do?</a> <b> · </b> <a href="https://ghcup.readthedocs.io/en/latest/install/#manual-install">I don't like curl | sh</a></p>
 | |
|         </div>
 | |
| 
 | |
|         <hr/>
 | |
| 
 | |
|         <div>
 | |
|           <p>
 | |
|             If you are running Windows,<br/>run the following in a powershell session (as a non-admin user).
 | |
| 			<div class="command-button"><pre><span class='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><button class="tooltip" onclick="copyToClipboardPowershell()"><img src="copy.svg" alt="" /><span class="tooltiptext">Copy to clipboard</span></button></div>
 | |
|           </p>
 | |
|         </div>
 | |
| 
 | |
|       </div>
 | |
| 
 | |
|       <div id="platform-instructions-default" class="instructions">
 | |
|         <div>
 | |
|           <p>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.</p>
 | |
| 		  <div class="command-button"><pre><span class='ghcup-command'>curl --proto '=https' --tlsv1.2 -sSf https://get-ghcup.haskell.org | sh</span></pre><button class="tooltip" onclick="copyToClipboard()"><img src="copy.svg" alt="" /><span class="tooltiptext">Copy to clipboard</span></button></div>
 | |
| 	<p class="other-help"><a href="https://gitlab.haskell.org/haskell/ghcup-hs/-/blob/master/scripts/bootstrap/bootstrap-haskell" target="_blank">What does this do?</a> <b> · </b> <a href="https://ghcup.readthedocs.io/en/latest/install/#manual-install">I don't like curl | sh</a></p>
 | |
|         </div>
 | |
| 
 | |
|         <hr/>
 | |
| 
 | |
|         <div>
 | |
|           <p>
 | |
|             If you are running Windows,<br/>run the following in a powershell session (as a non-admin user).
 | |
| 			<div class="command-button"><pre><span class='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 $true</span></span></pre><button class="tooltip" onclick="copyToClipboardPowershell()"><img src="copy.svg" alt="" /><span class="tooltiptext">Copy to clipboard</span></button>
 | |
| 			</div>
 | |
| 				<p class="other-help"><a href="https://gitlab.haskell.org/haskell/ghcup-hs/-/blob/master/scripts/bootstrap/bootstrap-haskell.ps1" target="_blank">What does this do?</a></p>
 | |
| 			</div>
 | |
|           </p>
 | |
|         </div>
 | |
| 
 | |
|       </div>
 | |
| 
 | |
|       <p id="help">
 | |
| 	  Need help? Ask on <a href="https://kiwiirc.com/nextclient/irc.libera.chat/?nick=Guest%7C?#haskell,#haskell-ghcup"><img src="irc.svg" height="18px" alt="" />IRC</a>, <a href="https://discord.gg/pKYf3zDQU7"><img src="Discord-Logo-Black.svg" height="18px" alt="" />Discord</a>, <a href="https://app.element.io/#/room/#haskell-tooling:matrix.org"><img src="Matrix_logo.svg" height="25px" alt="" style="top:5px;position:relative;" /></a> or <a href="https://gitlab.haskell.org/haskell/ghcup-hs/issues">report a bug <img src="Octicons-bug.svg" height="18px" alt="" /></a>.
 | |
|       </p>
 | |
|       <p id="collective">
 | |
| 		<a id="collective" href="https://opencollective.com/ghcup#category-CONTRIBUTE" target="_blank">
 | |
| 			<img src="https://opencollective.com/webpack/donate/button@2x.png?color=blue" width=200 />
 | |
| 		</a>
 | |
|       </p>
 | |
| 
 | |
|       <p id="about">
 | |
|         <img src="haskell-logo.svg" alt="" />
 | |
|         ghcup is a haskell.org supported project.
 | |
|         <br/>
 | |
|         <a href="https://www.haskell.org/downloads/">other installation options</a>
 | |
| 		<b> · </b>
 | |
|         <a href="https://ghcup.readthedocs.io/en/latest/">read the docs</a>
 | |
| 		<b> · </b>
 | |
|         <a href="https://github.com/rust-lang/rustup.rs/tree/master/www">web design from rustup</a>
 | |
|       </p>
 | |
|     <script type="text/javascript" src="ghcup.js"></script>
 | |
| 
 | |
|   </body>
 | |
| </html>
 |