From d54d0e2468aeff0b9df7e904293cc64c494ac470 Mon Sep 17 00:00:00 2001 From: Shao Cheng Date: Tue, 24 Jan 2017 10:46:45 +0800 Subject: [PATCH] Add stackage-related stuff. --- _data/mirror_desc.json | 4 ++++ _posts/help/1970-01-01-stackage.md | 19 +++++++++++++++++++ robots.txt | 1 + 3 files changed, 24 insertions(+) create mode 100644 _posts/help/1970-01-01-stackage.md diff --git a/_data/mirror_desc.json b/_data/mirror_desc.json index 2faf466..59f2b0c 100644 --- a/_data/mirror_desc.json +++ b/_data/mirror_desc.json @@ -415,6 +415,10 @@ "name": "slackwarearm", "desc": "用于 ARM 设备的 Slackware 发行版源代码和官方软件包仓库" }, + { + "name": "stackage", + "desc": "Haskell 项目管理器 stack 所需的元数据与 ghc 安装包的镜像" + }, { "name": "steamos", "desc": "Valve 开发的基于 Debian 的操作系统,包含安装镜像和官方软件包仓库" diff --git a/_posts/help/1970-01-01-stackage.md b/_posts/help/1970-01-01-stackage.md new file mode 100644 index 0000000..98586d4 --- /dev/null +++ b/_posts/help/1970-01-01-stackage.md @@ -0,0 +1,19 @@ +--- +category: help +layout: help +mirrorid: stackage +--- + +## stackage 镜像使用帮助 + +修改`~/.stack/config.yaml`(在 Windows 下是 `%APPDATA%\stack\config.yaml`), 加上: + +```yaml +setup-info: "http://mirrors.tuna.tsinghua.edu.cn/stackage/stack-setup.yaml" +urls: + latest-snapshot: http://mirrors.tuna.tsinghua.edu.cn/stackage/snapshots.json + lts-build-plans: http://mirrors.tuna.tsinghua.edu.cn/stackage/lts-haskell/ + nightly-build-plans: http://mirrors.tuna.tsinghua.edu.cn/stackage/stackage-nightly/ +``` + +推荐与 TUNA 的 [Hackage 镜像](https://mirrors.tuna.tsinghua.edu.cn/help/hackage/)配合使用。 diff --git a/robots.txt b/robots.txt index c8a1be4..1c398f5 100644 --- a/robots.txt +++ b/robots.txt @@ -101,6 +101,7 @@ Disallow: /sagemath Disallow: /saltstack Disallow: /slackware Disallow: /slackwarearm +Disallow: /stackage Disallow: /steamos Disallow: /tensorflow Disallow: /termux