mirror of
https://github.com/tuna/mirror-web.git
synced 2025-12-30 10:52:45 +00:00
20 lines
621 B
Markdown
20 lines
621 B
Markdown
---
|
||
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/)配合使用。
|