Skip to content

Commit 8e39786

Browse files
author
Mirrorz Bot
committed
GitHub Actions build 47
[243f8df] contents(ghcup,hackage): Modify Hackage and GHCup contents (#158) * Modify Hackage and GHCup contents fix #157 - added configuration file settings for stack >= v2.9.3 - fixed the link error in the USTC mirror usage section in GHCup The USTC mirror synchronization method is different from NJU and STJUG, and the same replacement mode should not be used. * fix: use the same format * fix: use the latest yaml file * revert: use mirrors instead of a specific domain name & use update instead of v2-update * fix: removed reference to GHCUP_USE_XDG_DIRS variable for Windows users * fix: remove local prettier config * update: add more other config for ghcup * refine: modify some expressions
1 parent 3347e6a commit 8e39786

File tree

298 files changed

+359
-308
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

298 files changed

+359
-308
lines changed

404.html

+1-1
Large diffs are not rendered by default.

404/index.html

+1-1
Large diffs are not rendered by default.

500/index.html

+1-1
Large diffs are not rendered by default.

AOSP/index.html

+2-2
Large diffs are not rendered by default.

Adoptium/index.html

+2-2
Large diffs are not rendered by default.

CPAN/index.html

+2-2
Large diffs are not rendered by default.

CRAN/index.html

+2-2
Large diffs are not rendered by default.

CTAN/index.html

+2-2
Large diffs are not rendered by default.

CocoaPods/index.html

+2-2
Large diffs are not rendered by default.

FreeBSD-pkg/index.html

+2-2
Large diffs are not rendered by default.

FreeBSD-ports/index.html

+2-2
Large diffs are not rendered by default.

FreeBSD/index.html

+2-2
Large diffs are not rendered by default.

NetBSD/index.html

+2-2
Large diffs are not rendered by default.

OpenBSD/index.html

+2-2
Large diffs are not rendered by default.

OpenMediaVault/index.html

+2-2
Large diffs are not rendered by default.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{"pageProps":{"toc":[{"url":"#","text":"Overview","depth":2},{"url":"#ustc","depth":2,"text":"USTC"},{"url":"#使用方法","depth":3,"text":"使用方法"},{"url":"#预发布版本","depth":3,"text":"预发布版本"},{"url":"#sjtug","depth":2,"text":"SJTUG"},{"url":"#使用说明","depth":3,"text":"使用说明"},{"url":"#其他配置","depth":2,"text":"其他配置"},{"url":"#xdg-支持","depth":3,"text":"XDG 支持"},{"url":"#安装目录变更","depth":3,"text":"安装目录变更"},{"url":"#msys2-设置","depth":3,"text":"MSYS2 设置"}],"content":"[\"$r\",null,null,{\"children\":[[\"$r\",\"p\",null,{\"children\":\"GHCup 是一种用于安装 Haskell 的工具,它使得用户可以轻易地在 GNU/Linux、macOS 和 FreeBSD 上安装特定版本的 ghc,并从零开始搭建好一个全新的 Haskell 开发环境(包括 cabal 与 HLS 支持)。\"}],\"\\n\",[\"$r\",\"p\",null,{\"children\":\"GHCup 类似 Rustup,可以用于安装 Haskell 工具链。建议搭配 Hackage 和 Stackage 源使用。\"}],\"\\n\",[\"$r\",\"h2\",null,{\"id\":\"ustc\",\"children\":\"USTC\"}],\"\\n\",[\"$r\",\"p\",null,{\"children\":\"该节内容仅适用于 USTC 及通过类似方式同步 GHCup 的站点。\"}],\"\\n\",[\"$r\",\"h3\",null,{\"id\":\"使用方法\",\"children\":\"使用方法\"}],\"\\n\",[\"$r\",\"p\",null,{\"children\":\"参考如下步骤可安装完整的 Haskell 工具链。\"}],\"\\n\",[\"$r\",\"p\",null,{\"children\":\"注意,以下命令会安装并配置 GHCup 0.0.8 版本的元数据。\\n可查看以下目录的内容,并选择需要安装的 GHCup 版本的 yaml 文件替换以下命令中的 URL。\"}],\"\\n\",[\"$r\",\"CodeBlock\",null,{\"code\":\"{{http_protocol}}{{mirror}}/ghcup-metadata/\"}],\"\\n\",[\"$r\",\"p\",null,{\"children\":[[\"$r\",\"strong\",null,{\"children\":\"第一步(可选)\"}],\" :使用镜像源安装 GHCup 本体。如已经安装 GHCup,可跳到下一步。\"]}],\"\\n\",[\"$r\",\"ul\",null,{\"children\":[\"\\n\",[\"$r\",\"li\",null,{\"children\":[\"\\n\",[\"$r\",\"p\",null,{\"children\":\"Linux, FreeBSD, macOS 用户:在终端中运行如下命令\"}],\"\\n\",[\"$r\",\"CodeBlock\",null,{\"code\":\"# Linux, FreeBSD, macOS 用户:在终端中运行如下命令\\ncurl --proto '=https' --tlsv1.2 -sSf {{http_protocol}}{{mirror}}/sh/bootstrap-haskell | BOOTSTRAP_HASKELL_YAML={{http_protocol}}{{mirror}}/ghcup-metadata/ghcup-0.0.8.yaml sh\",\"codeLanguage\":\"bash\"}],\"\\n\"]}],\"\\n\",[\"$r\",\"li\",null,{\"children\":[\"\\n\",[\"$r\",\"p\",null,{\"children\":\"Windows 用户:以非管理员身份在 PowerShell 中运行如下命令\"}],\"\\n\",[\"$r\",\"CodeBlock\",null,{\"code\":\"$env:BOOTSTRAP_HASKELL_YAML = '{{http_protocol}}{{mirror}}/ghcup-metadata/ghcup-0.0.8.yaml'\\nSet-ExecutionPolicy Bypass -Scope Process -Force;[System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072;Invoke-Command -ScriptBlock ([ScriptBlock]::Create((Invoke-WebRequest {{http_protocol}}{{mirror}}/sh/bootstrap-haskell.ps1 -UseBasicParsing))) -ArgumentList $true\",\"codeLanguage\":\"powershell\"}],\"\\n\"]}],\"\\n\"]}],\"\\n\",[\"$r\",\"p\",null,{\"children\":[[\"$r\",\"strong\",null,{\"children\":\"第二步\"}],\" :配置 GHCup 使用科大源。编辑 \",[\"$r\",\"code\",null,{\"children\":\"~/.ghcup/config.yaml\"}],\" 增加如下配置:\"]}],\"\\n\",[\"$r\",\"CodeBlock\",null,{\"code\":\"url-source:\\n OwnSource: {{http_protocol}}{{mirror}}/ghcup-metadata/ghcup-0.0.8.yaml\",\"codeLanguage\":\"yaml\"}],\"\\n\",[\"$r\",\"p\",null,{\"children\":[[\"$r\",\"strong\",null,{\"children\":\"第三步(可选)\"}],\" :配置 Cabal 和 Stack 使用镜像源,请参考文档 \",[\"$r\",\"a\",null,{\"href\":\"/hackage/\",\"children\":\"Hackage 帮助\"}],\" 和 \",[\"$r\",\"a\",null,{\"href\":\"stackage\",\"children\":\"Stackage 帮助\"}],\" 。\"]}],\"\\n\",[\"$r\",\"p\",null,{\"children\":\"镜像站 GHCup 源仅支持较新的 GHCup 版本(元数据格式版本仅支持 0.0.6 及以上)。如果你使用的 GHCup 版本比较旧,请参考上述步骤安装新版本 GHCup。\"}],\"\\n\",[\"$r\",\"h3\",null,{\"id\":\"预发布版本\",\"children\":\"预发布版本\"}],\"\\n\",[\"$r\",\"p\",null,{\"children\":[\"使用预发布频道可以安装尚未正式发布的测试版本。要启用预发布源,将 \",[\"$r\",\"code\",null,{\"children\":\"~/.ghcup/config.yaml\"}],\" 文件中 \",[\"$r\",\"code\",null,{\"children\":\"url-source\"}],\" 一节修改如下:\"]}],\"\\n\",[\"$r\",\"CodeBlock\",null,{\"code\":\"url-source:\\n OwnSource:\\n - {{http_protocol}}{{mirror}}/ghcup-metadata/ghcup-0.0.8.yaml\\n - {{http_protocol}}{{mirror}}/ghcup-metadata/ghcup-prereleases-0.0.8.yaml\",\"codeLanguage\":\"yaml\"}],\"\\n\",[\"$r\",\"h2\",null,{\"id\":\"sjtug\",\"children\":\"SJTUG\"}],\"\\n\",[\"$r\",\"p\",null,{\"children\":\"该节内容仅适用于 SJTUG 及通过类似方式同步 GHCup 的站点。\"}],\"\\n\",[\"$r\",\"h3\",null,{\"id\":\"使用说明\",\"children\":\"使用说明\"}],\"\\n\",[\"$r\",\"p\",null,{\"children\":[\"创建 \",[\"$r\",\"code\",null,{\"children\":\"~/.ghcup/config.yaml\"}],\" 并输入以下内容:\"]}],\"\\n\",[\"$r\",\"CodeBlock\",null,{\"code\":\"url-source:\\n OwnSource: {{http_protocol}}{{mirror}}/yaml/ghcup/data/ghcup-0.0.8.yaml\",\"codeLanguage\":\"yaml\"}],\"\\n\",[\"$r\",\"p\",null,{\"children\":\"如果您尚未安装 ghcup,请在完成以上步骤后,于终端中执行以下指令(请不要以 root 用户执行),随后跟随屏幕上的指引完成安装。\"}],\"\\n\",[\"$r\",\"ul\",null,{\"children\":[\"\\n\",[\"$r\",\"li\",null,{\"children\":\"如果您运行的是 Linux, macOS (Intel), FreeBSD 或 WSL,请执行:\"}],\"\\n\"]}],\"\\n\",[\"$r\",\"CodeBlock\",null,{\"code\":\"curl --proto '=https' --tlsv1.2 -LsSf https://{{mirror}}/script/install.sh | sh\",\"codeLanguage\":\"bash\"}],\"\\n\",[\"$r\",\"ul\",null,{\"children\":[\"\\n\",[\"$r\",\"li\",null,{\"children\":\"如果您运行的是 macOS (Apple 芯片) 请执行:\"}],\"\\n\"]}],\"\\n\",[\"$r\",\"CodeBlock\",null,{\"code\":\"curl --proto '=https' --tlsv1.2 -LsSf https://{{mirror}}/script/install.sh | arch -x86_64 /bin/bash\",\"codeLanguage\":\"bash\"}],\"\\n\",[\"$r\",\"p\",null,{\"children\":[\"$r\",\"strong\",null,{\"children\":\"故障排除\"}]}],\"\\n\",[\"$r\",\"ol\",null,{\"children\":[\"\\n\",[\"$r\",\"li\",null,{\"children\":[\"ghcup 出现形如 \",[\"$r\",\"code\",null,{\"children\":\"[ Error ] JSON decoding failed with: AesonException\"}],\" 的错误\"]}],\"\\n\"]}],\"\\n\",[\"$r\",\"p\",null,{\"children\":[\"这可能是由于本机 ghcup 版本与配置文件版本不匹配造成。\\nghcup 于 0.1.15.1 版本前使用 0.0.4 版本的配置文件,此版本及之后的版本使用 0.0.5+ 版本的配置文件。\\n请尝试将 \",[\"$r\",\"code\",null,{\"children\":\"config.yaml\"}],\" 中的 \",[\"$r\",\"code\",null,{\"children\":\"ghcup-0.0.8.yaml\"}],\" 改为 \",[\"$r\",\"code\",null,{\"children\":\"ghcup-0.0.4.yaml\"}],\" (抑或反之)后重试。\"]}],\"\\n\",[\"$r\",\"p\",null,{\"children\":\"请注意,ghcup 上游倾向于仅更新最新版本配置文件中的内容,当版本发生变化后请及时更新配置文件版本。\"}],\"\\n\",[\"$r\",\"ol\",null,{\"start\":\"2\",\"children\":[\"\\n\",[\"$r\",\"li\",null,{\"children\":[\"通过 ghcup 安装软件包时出现 \",[\"$r\",\"code\",null,{\"children\":\"Error: Download failed ...\"}],\" 错误\"]}],\"\\n\"]}],\"\\n\",[\"$r\",\"p\",null,{\"children\":\"这一错误可能是由于您的 ghcup 版本过老,使用的配置文件已经长久未更新,其中包含的软件包版本过旧所致。我们将尽力保留旧版本的软件包,但当存储空间不足时,可能随时删除旧文件。本镜像站仅保证同步最新版本配置文件中包含的软件包。\"}],\"\\n\",[\"$r\",\"p\",null,{\"children\":[\"当出现上述现象时,请首先尝试更新 ghcup 的版本,并根据 \",[\"$r\",\"code\",null,{\"children\":\"故障排除 1\"}],\" 的指示修改配置文件。若 ghcup 已无法更新,可以尝试删除 \",[\"$r\",\"code\",null,{\"children\":\"~/.ghcup\"}],\" 整个文件夹(这一操作将删除 ghcup 以及所有通过 ghcup 安装的软件),并根据 \",[\"$r\",\"code\",null,{\"children\":\"使用说明\"}],\" 重新安装最新版本的 ghcup。\"]}],\"\\n\",[\"$r\",\"p\",null,{\"children\":[\"若完成以上步骤后问题仍未解决,请至 \",[\"$r\",\"a\",null,{\"href\":\"https://github.com/sjtug/mirror-requests\",\"rel\":\"nofollow\",\"children\":\"此处\"}],\" 向 SJTUG 反馈 BUG。\"]}],\"\\n\",[\"$r\",\"h2\",null,{\"id\":\"其他配置\",\"children\":\"其他配置\"}],\"\\n\",[\"$r\",\"h3\",null,{\"id\":\"xdg-支持\",\"children\":\"XDG 支持\"}],\"\\n\",[\"$r\",\"p\",null,{\"children\":[\"参考 \",[\"$r\",\"a\",null,{\"href\":\"https://www.haskell.org/ghcup/guide/#xdg-support\",\"rel\":\"nofollow\",\"children\":\"GHCup xdg-support\"}],\"。\"]}],\"\\n\",[\"$r\",\"p\",null,{\"children\":[\"对于 Linux、FreeBSD、macOS 用户,如果想要让 GHCup 遵循 XDG 规范,可以使用 \",[\"$r\",\"code\",null,{\"children\":\"GHCUP_USE_XDG_DIRS\"}],\" 变量,例如:\"]}],\"\\n\",[\"$r\",\"SyntaxHighlight\",null,{\"code\":\"export GHCUP_USE_XDG_DIRS=1\",\"language\":\"bash\"}],\"\\n\",[\"$r\",\"p\",null,{\"children\":[\"还可以将上述内容写入 \",[\"$r\",\"code\",null,{\"children\":\"~/.profile\"}],\" 等文件中。\"]}],\"\\n\",[\"$r\",\"p\",null,{\"children\":[\"使用 \",[\"$r\",\"code\",null,{\"children\":\"GHCUP_USE_XDG_DIRS\"}],\" 后,GHCup 配置目录将由默认的 \",[\"$r\",\"code\",null,{\"children\":\"~/.ghcup\"}],\" 变成 \",[\"$r\",\"code\",null,{\"children\":\"~/.config/ghcup\"}],\";\\n而二进制目录会使用 \",[\"$r\",\"code\",null,{\"children\":\"~/.local/bin\"}],\",需要将该目录加入 \",[\"$r\",\"code\",null,{\"children\":\"PATH\"}],\" 才能够正常使用 GHCup 安装的 GHC 以及其他工具。\"]}],\"\\n\",[\"$r\",\"SyntaxHighlight\",null,{\"code\":\"export PATH=$HOME/.local/bin:$PATH\",\"language\":\"bash\"}],\"\\n\",[\"$r\",\"h3\",null,{\"id\":\"安装目录变更\",\"children\":\"安装目录变更\"}],\"\\n\",[\"$r\",\"p\",null,{\"children\":[\"参考 \",[\"$r\",\"a\",null,{\"href\":\"https://www.haskell.org/ghcup/guide/#env-variables\",\"rel\":\"nofollow\",\"children\":\"GHCup env-variables\"}],\"。\"]}],\"\\n\",[\"$r\",\"p\",null,{\"children\":[\"对于 Windows 用户或不想使用 XDG 目录的 Linux、FreeBSD、macOS 用户,可以使用 \",[\"$r\",\"code\",null,{\"children\":\"GHCUP_INSTALL_BASE_PREFIX\"}],\" 来更改默认安装路径。\\n默认安装路径,对 Windows 用户而言是 \",[\"$r\",\"code\",null,{\"children\":\"C:\\\\ghcup\"}],\",而对于 Linux、FreeBSD、macOS 用户而言是 \",[\"$r\",\"code\",null,{\"children\":\"$HOME/.ghcup\"}],\"。\"]}],\"\\n\",[\"$r\",\"p\",null,{\"children\":[\"如果想要将 GHCup 的安装目录放到某一个特定目录下,例如 \",[\"$r\",\"code\",null,{\"children\":\"~/sdk\"}],\":\"]}],\"\\n\",[\"$r\",\"ul\",null,{\"children\":[\"\\n\",[\"$r\",\"li\",null,{\"children\":[\"\\n\",[\"$r\",\"p\",null,{\"children\":[\"$r\",\"strong\",null,{\"children\":\"Windows 用户\"}]}],\"\\n\",[\"$r\",\"p\",null,{\"children\":\"可以在终端使用如下方法:\"}],\"\\n\",[\"$r\",\"SyntaxHighlight\",null,{\"code\":\"$env:GHCUP_INSTALL_BASE_PREFIX = $env:USERPROFILE/sdk\",\"language\":\"powershell\"}],\"\\n\",[\"$r\",\"p\",null,{\"children\":\"或使用系统设置添加该环境变量。\"}],\"\\n\"]}],\"\\n\",[\"$r\",\"li\",null,{\"children\":[\"\\n\",[\"$r\",\"p\",null,{\"children\":[\"$r\",\"strong\",null,{\"children\":\"Linux、FreeBSD、macOS 用户\"}]}],\"\\n\",[\"$r\",\"p\",null,{\"children\":\"可以在终端使用如下方法:\"}],\"\\n\",[\"$r\",\"SyntaxHighlight\",null,{\"code\":\"export GHCUP_INSTALL_BASE_PREFIX=$HOME/sdk\",\"language\":\"bash\"}],\"\\n\",[\"$r\",\"p\",null,{\"children\":[\"还可以将上述内容写入 \",[\"$r\",\"code\",null,{\"children\":\"~/.profile\"}],\" 等文件中。\"]}],\"\\n\"]}],\"\\n\"]}],\"\\n\",[\"$r\",\"h3\",null,{\"id\":\"msys2-设置\",\"children\":\"MSYS2 设置\"}],\"\\n\",[\"$r\",\"p\",null,{\"children\":[\"参考 \",[\"$r\",\"a\",null,{\"href\":\"https://www.haskell.org/ghcup/guide/#env-variables\",\"rel\":\"nofollow\",\"children\":\"GHCup env-variables\"}],\"。\"]}],\"\\n\",[\"$r\",\"p\",null,{\"children\":[\"对于 Windows 用户,如果系统中已经安装了 MSYS2 环境,则可以使用 \",[\"$r\",\"code\",null,{\"children\":\"GHCUP_MSYS2\"}],\" 来指定想要让 GHCup 使用的 MSYS2 环境。\\n如果不指定使用的 MSYS2 环境,则会默认新安装一个 MSYS2 环境,并且使用新安装的 MSYS2 环境。\"]}]]}]","meta":{"title":"GHCup 使用帮助","cname":"ghcup"},"cname":"ghcup"},"__N_SSG":true}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{"pageProps":{"toc":[{"url":"#","text":"Overview","depth":2},{"url":"#在-cabal-中初次使用","depth":2,"text":"在 cabal 中初次使用"},{"url":"#cabal-124-ghc-80","depth":3,"text":"Cabal 1.2.4 (GHC 8.0)"},{"url":"#cabal-小于-124","depth":3,"text":"Cabal 小于 1.2.4"},{"url":"#在-stack-中使用","depth":2,"text":"在 stack 中使用"},{"url":"#stack-大于等于-v293","depth":3,"text":"stack 大于等于 v2.9.3"},{"url":"#stack-大于等于-v211","depth":3,"text":"stack 大于等于 v2.1.1"},{"url":"#stack-小于-v211","depth":3,"text":"stack 小于 v2.1.1"}],"content":"[\"$r\",null,null,{\"children\":[[\"$r\",\"h2\",null,{\"id\":\"在-cabal-中初次使用\",\"children\":\"在 cabal 中初次使用\"}],\"\\n\",[\"$r\",\"p\",null,{\"children\":\"先执行\"}],\"\\n\",[\"$r\",\"SyntaxHighlight\",null,{\"code\":\"cabal update\",\"language\":\"bash\"}],\"\\n\",[\"$r\",\"p\",null,{\"children\":[\"待生成\",[\"$r\",\"code\",null,{\"children\":\"~/.cabal/config\"}],\"配置文件之后\",[\"$r\",\"code\",null,{\"children\":\"Ctrl+C\"}],\", 然后进行下一步。(注:在 Windows 平台上的配置文件是 \",[\"$r\",\"code\",null,{\"children\":\"%APPDATA%\\\\cabal\\\\config\"}],\")\"]}],\"\\n\",[\"$r\",\"h3\",null,{\"id\":\"cabal-124-ghc-80\",\"children\":\"Cabal 1.2.4 (GHC 8.0)\"}],\"\\n\",[\"$r\",\"p\",null,{\"children\":[\"修改 \",[\"$r\",\"code\",null,{\"children\":\"~/.cabal/config\"}],\",加入\"]}],\"\\n\",[\"$r\",\"CodeBlock\",null,{\"code\":\"repository mirror\\n url: {{http_protocol}}{{mirror}}\\n secure: True\"}],\"\\n\",[\"$r\",\"p\",null,{\"children\":\"为了访问速度,可以选择把官方仓库注释掉:\"}],\"\\n\",[\"$r\",\"SyntaxHighlight\",null,{\"code\":\"repository hackage.haskell.org\\n url: http://hackage.haskell.org/\\n -- secure: False\\n -- root-keys:\\n -- key-threshold:\"}],\"\\n\",[\"$r\",\"h3\",null,{\"id\":\"cabal-小于-124\",\"children\":\"Cabal 小于 1.2.4\"}],\"\\n\",[\"$r\",\"p\",null,{\"children\":[\"修改\",[\"$r\",\"code\",null,{\"children\":\"~/.cabal/config\"}],\", 将此行\"]}],\"\\n\",[\"$r\",\"SyntaxHighlight\",null,{\"code\":\"remote-repo: hackage.haskell.org:http://hackage.haskell.org/packages/archive\"}],\"\\n\",[\"$r\",\"p\",null,{\"children\":\"注释掉,改为\"}],\"\\n\",[\"$r\",\"CodeBlock\",null,{\"code\":\"remote-repo: mirror:{{http_protocol}}{{mirror}}\\n-- remote-repo: hackage.haskell.org:http://hackage.haskell.org/packages/archive\"}],\"\\n\",[\"$r\",\"p\",null,{\"children\":[\"注意,此处的注释是两条短线\",[\"$r\",\"code\",null,{\"children\":\"--\"}],\".\"]}],\"\\n\",[\"$r\",\"p\",null,{\"children\":[\"再执行\",[\"$r\",\"code\",null,{\"children\":\"cabal update\"}],\", 即可使用\",[\"$r\",\"code\",null,{\"children\":\"cabal\"}],\"安装包了。\"]}],\"\\n\",[\"$r\",\"h2\",null,{\"id\":\"在-stack-中使用\",\"children\":\"在 stack 中使用\"}],\"\\n\",[\"$r\",\"p\",null,{\"children\":[\"本镜像推荐与\",[\"$r\",\"a\",null,{\"href\":\"/stackage/\",\"children\":\"Stackage 镜像\"}],\"配合使用。\"]}],\"\\n\",[\"$r\",\"h3\",null,{\"id\":\"stack-大于等于-v293\",\"children\":\"stack 大于等于 v2.9.3\"}],\"\\n\",[\"$r\",\"p\",null,{\"children\":[\"修改\",[\"$r\",\"code\",null,{\"children\":\"~/.stack/config.yaml\"}],\", 加上:\"]}],\"\\n\",[\"$r\",\"CodeBlock\",null,{\"code\":\"package-index:\\n download-prefix: {{http_protocol}}{{mirror}}/\\n hackage-security:\\n keyids:\\n - 0a5c7ea47cd1b15f01f5f51a33adda7e655bc0f0b0615baa8e271f4c3351e21d\\n - 1ea9ba32c526d1cc91ab5e5bd364ec5e9e8cb67179a471872f6e26f0ae773d42\\n - 280b10153a522681163658cb49f632cde3f38d768b736ddbc901d99a1a772833\\n - 2a96b1889dc221c17296fcc2bb34b908ca9734376f0f361660200935916ef201\\n - 2c6c3627bd6c982990239487f1abd02e08a02e6cf16edb105a8012d444d870c3\\n - 51f0161b906011b52c6613376b1ae937670da69322113a246a09f807c62f6921\\n - 772e9f4c7db33d251d5c6e357199c819e569d130857dc225549b40845ff0890d\\n - aa315286e6ad281ad61182235533c41e806e5a787e0b6d1e7eef3f09d137d2e9\\n - fe331502606802feac15e514d9b9ea83fee8b6ffef71335479a2e68d84adc6b0\\n key-threshold: 3 # number of keys required\\n # ignore expiration date, see https://github.com/commercialhaskell/stack/pull/4614\\n ignore-expiry: no\",\"codeLanguage\":\"yaml\"}],\"\\n\",[\"$r\",\"h3\",null,{\"id\":\"stack-大于等于-v211\",\"children\":\"stack 大于等于 v2.1.1\"}],\"\\n\",[\"$r\",\"p\",null,{\"children\":[\"修改\",[\"$r\",\"code\",null,{\"children\":\"~/.stack/config.yaml\"}],\", 加上:\"]}],\"\\n\",[\"$r\",\"CodeBlock\",null,{\"code\":\"package-indices:\\n - download-prefix: {{http_protocol}}{{mirror}}/\\n hackage-security:\\n keyids:\\n - 0a5c7ea47cd1b15f01f5f51a33adda7e655bc0f0b0615baa8e271f4c3351e21d\\n - 1ea9ba32c526d1cc91ab5e5bd364ec5e9e8cb67179a471872f6e26f0ae773d42\\n - 280b10153a522681163658cb49f632cde3f38d768b736ddbc901d99a1a772833\\n - 2a96b1889dc221c17296fcc2bb34b908ca9734376f0f361660200935916ef201\\n - 2c6c3627bd6c982990239487f1abd02e08a02e6cf16edb105a8012d444d870c3\\n - 51f0161b906011b52c6613376b1ae937670da69322113a246a09f807c62f6921\\n - 772e9f4c7db33d251d5c6e357199c819e569d130857dc225549b40845ff0890d\\n - aa315286e6ad281ad61182235533c41e806e5a787e0b6d1e7eef3f09d137d2e9\\n - fe331502606802feac15e514d9b9ea83fee8b6ffef71335479a2e68d84adc6b0\\n key-threshold: 3 # number of keys required\\n\\n # ignore expiration date, see https://github.com/commercialhaskell/stack/pull/4614\\n ignore-expiry: no\",\"codeLanguage\":\"yaml\"}],\"\\n\",[\"$r\",\"h3\",null,{\"id\":\"stack-小于-v211\",\"children\":\"stack 小于 v2.1.1\"}],\"\\n\",[\"$r\",\"p\",null,{\"children\":[\"修改\",[\"$r\",\"code\",null,{\"children\":\"~/.stack/config.yaml\"}],\", 加上:\"]}],\"\\n\",[\"$r\",\"CodeBlock\",null,{\"code\":\"package-indices:\\n - name: mirror\\n download-prefix: {{http_protocol}}{{mirror}}/package/\\n http: {{http_protocol}}{{mirror}}/00-index.tar.gz\",\"codeLanguage\":\"yaml\"}]]}]","meta":{"title":"Hackage 软件仓库镜像使用帮助","cname":"hackage"},"cname":"hackage"},"__N_SSG":true}

0 commit comments

Comments
 (0)