更改路径:
remote-repo-cache:d:\ h1\cabal\packages world-file:d:\h1\cabal\world build-summary:d:\h1\cabal\logs\build.log $ c $ p $ b它可以工作,但它远非真正的便携式。
Cabal配置更大问题。它似乎必须留在C:\ Users \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'$ 说配置文件路径源是默认配置文件。
问题: 1.哪个是默认配置文件? 2.可以远程repo-cache,世界文件和其他路径是相对的? 3.是否有一个设置默认cabal路径的方式,以便它永远不会去C:\ Users \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 运行cabal:
cabal --config-file =path / to / config
I am using HaskellPlatform-2012.4.0.0 on Win7. It's installed as portable. Paths are managed through .bat file so ghci and ghc works. But cabal installs it self at C:\Users\name\AppData\Roaming\cabal\ To circumvent that I did:
cabal update edit config file delete all files except configChanged paths:
remote-repo-cache: d:\h1\cabal\packages world-file: d:\h1\cabal\world build-summary: d:\h1\cabal\logs\build.logIt works, but it's far from truly portable.
Cabal config is bigger problem. It seems that it must be left in C:\Users\name\AppData\Roaming\cabal which is not portable at all. First run of cabal update says Config file path source is default config file.
Questions: 1. where is that default config file? 2. can remote-repo-cache, world-file and other paths be relative? 3. is there a way of setting default cabal path so it never goes to C:\Users\name\AppData\Roaming\cabal
解决方案Run cabal with:
cabal --config-file="path/to/config"
更多推荐
如何更改cabal配置文件的路径?
发布评论