Haskell 改变阴谋集团总部

Haskell 改变阴谋集团总部,haskell,cabal,Haskell,Cabal,在Windows cabal上,将UNC路径用作主文件夹: \\EXAMPLE.EXAMPLE.COM\UserData\username\RF\AppData\Roaming\cabal\config 如何将其显式设置为C:\drive上的某个文件夹?摘自cabal--help: Global flags: -h --help Show this help text -V --version Pri

在Windows cabal上,将UNC路径用作主文件夹:

\\EXAMPLE.EXAMPLE.COM\UserData\username\RF\AppData\Roaming\cabal\config

如何将其显式设置为C:\drive上的某个文件夹?

摘自
cabal--help

Global flags:
 -h --help                         Show this help text
 -V --version                      Print version information
    --numeric-version              Print just the version number
------------------------ LOOK HERE ------------------------
    --config-file=FILE             Set an alternate location for the config
                                   file
------------------------ LOOK HERE ------------------------
    --sandbox-config-file=FILE     Set an alternate location for the sandbox
                                   config file (default:
                                   './cabal.sandbox.config')
    --default-user-config=FILE     Set a location for a cabal.config file for
                                   projects without their own cabal.config
                                   freeze file.
    --require-sandbox              Enable requiring the presence of a sandbox
                                   for sandbox-aware commands
    --no-require-sandbox           Disable requiring the presence of a sandbox
                                   for sandbox-aware commands
    --ignore-sandbox               Ignore any existing sandbox
    --ignore-expiry                Ignore expiry dates on signed metadata (use
                                   only in exceptional circumstances)
    --http-transport=HttpTransport Set a transport for http(s) requests.
                                   Accepts 'curl', 'wget', 'powershell', and
                                   'plain-http'. (default: 'curl')
    --enable-nix                   Enable Nix integration: run commands through
                                   nix-shell if a 'shell.nix' file exists
    --disable-nix                  Disable Nix integration: run commands
                                   through nix-shell if a 'shell.nix' file
                                   exists

我要求更改主目录,而不是在命令行上明确指定配置文件的替代位置,特别是我通过堆栈间接运行cabal。通常,主目录的更改是通过环境变量来完成的,例如堆栈的
STACK\u ROOT
。@让我看看4u好的,那么我还不明白你的问题。您想造成什么样的影响而不是更改配置文件造成的影响?@Letmosothat4u On IRC,hvr还指出,有一个环境变量
CABAL_config
执行与
--config file
相同的操作。