参考清华源文档链接。
声明:本文仅用于记录和备份
运行cabal update,如果连不上,可以中断。修改~/.cabal/config,加入如下内容:
repository mirrors.tuna.tsinghua.edu.cn
url: http://mirrors.tuna.tsinghua.edu.cn/hackage
可以注释官方的仓库:
repository hackage.haskell.org
url: http://hackage.haskell.org/
-- secure: False
-- root-keys:
-- key-threshold:
接下来再次更新cabal update即可。