-
Notifications
You must be signed in to change notification settings - Fork 147
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ghcup: use definition list and fenced block ot illustrate installatio…
…n on different platforms
- Loading branch information
Showing
1 changed file
with
10 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -26,14 +26,19 @@ Stackage 源使用。 | |
|
||
**第一步(可选)** :使用科大源安装 GHCup 本体。如已经安装 GHCup,可跳到下一步。 | ||
|
||
Linux, FreeBSD, macOS 用户:在终端中运行如下命令 | ||
|
||
Linux, FreeBSD, macOS 用户 | ||
:   | ||
```bash | ||
# 在终端中运行如下命令 | ||
curl --proto '=https' --tlsv1.2 -sSf https://mirrors.ustc.edu.cn/ghcup/sh/bootstrap-haskell | BOOTSTRAP_HASKELL_YAML=https://mirrors.ustc.edu.cn/ghcup/ghcup-metadata/ghcup-0.0.8.yaml sh | ||
|
||
Windows 用户:以非管理员身份在 PowerShell 中运行如下命令 | ||
|
||
``` | ||
Check failure on line 34 in docs/ghcup.md GitHub Actions / buildTrailing spaces
|
||
Windows 用户 | ||
:   | ||
```bash | ||
# 以非管理员身份在 PowerShell 中运行如下命令 | ||
$env:BOOTSTRAP_HASKELL_YAML = 'https://mirrors.ustc.edu.cn/ghcup/ghcup-metadata/ghcup-0.0.8.yaml' | ||
Set-ExecutionPolicy Bypass -Scope Process -Force;[System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072;Invoke-Command -ScriptBlock ([ScriptBlock]::Create((Invoke-WebRequest https://mirrors.ustc.edu.cn/ghcup/sh/bootstrap-haskell.ps1 -UseBasicParsing))) -ArgumentList $true | ||
``` | ||
|
||
**第二步** :配置 GHCup 使用科大源。编辑 `~/.ghcup/config.yaml` 增加如下配置: | ||
|
||
|