Skip to content

Commit

Permalink
ghcup: use definition list and fenced block ot illustrate installatio…
Browse files Browse the repository at this point in the history
…n on different platforms
  • Loading branch information
Erchiusx committed Dec 27, 2024
1 parent 13dd5ac commit a8553c9
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions docs/ghcup.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

View workflow job for this annotation

GitHub Actions / build

Trailing spaces

docs/ghcup.md:34:8 MD009/no-trailing-spaces Trailing spaces [Expected: 0 or 2; Actual: 4] https://github.com/DavidAnson/markdownlint/blob/v0.33.0/doc/md009.md
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` 增加如下配置:

Expand Down

0 comments on commit a8553c9

Please sign in to comment.