我在 Win7 上使用 HaskellPlatform-2012.4.0.0。它以便携式方式安装。路径是通过 .bat 文件管理的ghci
and ghc
works.
但 cabal 将其自行安装在 C:\Users\name\AppData\Roaming\cabal\
为了避免这种情况,我做了:
cabal update
edit config file
delete all files except config
更改的路径:
remote-repo-cache: d:\h1\cabal\packages
world-file: d:\h1\cabal\world
build-summary: d:\h1\cabal\logs\build.log
它确实有效,但距离真正的便携还很远。
Cabal配置是一个更大的问题。看来它必须留在 C:\Users\name\AppData\Roaming\cabal 中,根本不可移植。
第一次运行cabal update
says Config file path source is default config file.
问题:
1.默认配置文件在哪里?
2.remote-repo-cache、world-file等路径可以是相对路径吗?
3.有没有办法设置默认的 cabal 路径,使其永远不会转到 C:\Users\name\AppData\Roaming\cabal
运行阴谋集团:
cabal --config-file="path/to/config"
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)