(Imported from Trac #204, reported by guest on 2008-01-06)
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.
poking in the source and a Google led me to believe that this should
My config file looks like this:
wolverian@puni:~$ cat .cabal/config
wolverian@puni:~$ cabal --version
cabal-install version 0.4.1
using version 1.3.2 of the Cabal library
wolverian@puni:~$ ghc --version
The Glorious Glasgow Haskell Compilation System, version 6.8.2
(Imported comment by @dcoutts on 2008-01-06)
That is indeed supposed to work. We'll have to investigate.
Ah, I see. The problem is that user-prefix: does work and just prefix: does not. That's a recent unintentional change. So the default config file that was generated previously that used just prefix: is now getting rejected.
(Imported comment by guest on 2008-01-12)
The version I was running at the time of reporting rejected both forms. I'll try upgrading to the latest Darcs soon.
(Imported comment by @dcoutts on 2008-01-14)
It's working for me with the current darcs version so long at the user-prefix path is quoted. In your example you do have it quoted so I don't know what problem you ran into exactly. I'm changing that to be consistent with the .cabal format which allows quoted or unquoted paths.
The error in the error message, that it reports "prefix" rather than "user-preifx" is an artifact of the current config parser that I don't intend to fix because the whole thing is going to be replaced shortly.
If you still see this problem, reopen this ticket.