title: How to change path of cabal config file?
body: <p>I am using HaskellPlatform-2012.4.0.0 on Win7. It's installed as portable. Paths are managed through .bat file so <code>ghci</code> and <code>ghc</code> works.<br>
  But cabal installs it self at C:\Users\name\AppData\Roaming\cabal\<br>
  To circumvent that I did:</p>
  
  <pre><code>cabal update
  edit config file
  delete all files except config
  </code></pre>
  
  <p>Changed paths:</p>
  
  <pre><code>remote-repo-cache: d:\h1\cabal\packages 
  world-file: d:\h1\cabal\world
  build-summary: d:\h1\cabal\logs\build.log
  </code></pre>
  
  <p>It works, but it's far from truly portable.</p>
  
  <p>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.<br>
  First run of <code>cabal update</code> says <code>Config file path source is default config file.</code></p>
  
  <p>Questions:<br>
  1. where is that default config file?<br>
  2. can remote-repo-cache, world-file and other paths be relative?<br>
  3. is there a way of setting default cabal path so it never goes to C:\Users\name\AppData\Roaming\cabal</p>