Setting user-prefix in .cabal/config leads to the following error:
wolverian@puni:~$ cabal info xmonad
Warning: Error parsing config file /home/wolverian/.cabal/config: On line 5: Parse of field 'prefix' failed:
Warning: Using default configuration.
I don't think the file format is documented anywhere, but a bit of
poking in the source and a Google led me to believe that this should
work.
My config file looks like this:
wolverian@puni:~$ cat .cabal/config
compiler: GHC
repos: hackage.haskell.org:http://hackage.haskell.org/packages/archive
cachedir: "/home/wolverian/.cabal/packages"
user-install: true
user-prefix: "/home/wolverian"
hackage-username: ""
hackage-password: ""
This is with up-to-date (as of today) Cabal and cabal-install from Darcs:
wolverian@puni:~$ cabal --version
cabal-install version 0.4.1
using version 1.3.2 of the Cabal library
And my GHC is a local (in ~) GHC 6.8.2:
wolverian@puni:~$ ghc --version
The Glorious Glasgow Haskell Compilation System, version 6.8.2
--
wolverian
ilmari.vacklin@cs.helsinki.fi