[Hackage] #542: installing cabal-install refers to editing nonexistent file $HOME/.cabal/config

Hackage trac at galois.com
Tue Dec 22 08:23:50 EST 2009

#542: installing cabal-install refers to editing nonexistent file
  Reporter:  nr                  |        Owner:         
      Type:  defect              |       Status:  new    
  Priority:  normal              |    Milestone:         
 Component:  cabal-install tool  |      Version:
  Severity:  minor               |   Resolution:         
  Keywords:                      |   Difficulty:  unknown
Ghcversion:                      |     Platform:         
Comment (by duncan):

 Replying to [comment:2 nr]:
 > I think the config file should be created at install time.  It's a
 reasonable expectation and will prevent you from having to change
 documentation.   If you can find no other way, it's better to run 'cabal
 update' at install time than it is to leave things as they are now.

 Unfortunately we cannot do anything at install time, only the first time
 the program is used.

 > But it would be still better to have a cabal command just to create the
 config file and to run that.  After all, code to 'create config if it does
 not already exist' has got to be right handy someplace...

 Right but the problem is you're not going to know that you should run
 that. Perhaps cabal --help should check if the config file exists before
 saying you can edit it. If it doesn't exist, perhaps it should suggest
 running cabal update.

Ticket URL: <http://hackage.haskell.org/trac/hackage/ticket/542#comment:3>
Hackage <http://haskell.org/cabal/>
Hackage: Cabal and related projects

More information about the cabal-devel mailing list