[Hackage] #681: cabal-install init should not overwrite files without good reason

Hackage cvs-ghc at haskell.org
Wed May 5 12:02:35 EDT 2010


#681: cabal-install init should not overwrite files without good reason
---------------------------------+------------------------------------------
  Reporter:  ezyang              |        Owner:         
      Type:  defect              |       Status:  new    
  Priority:  normal              |    Milestone:         
 Component:  cabal-install tool  |      Version:  1.8.0.2
  Severity:  normal              |     Keywords:         
Difficulty:  unknown             |   Ghcversion:         
  Platform:                      |  
---------------------------------+------------------------------------------
 If you run "cabal init" in a directory with an already existing .cabal
 file, it will happily overwrite the old version without asking you. It
 should detect that a file exists and ask you before writing it out (or
 even prompting you for info). Alternatively, it could fill up it's
 defaults using the existing .cabal file.

 Furthermore, if you pass -n for non-interactive mode, cabal can't ask
 whether or not the user wanted to overwrite, so probably adding a --force
 flag is in order.

-- 
Ticket URL: <http://hackage.haskell.org/trac/hackage/ticket/681>
Hackage <http://haskell.org/cabal/>
Hackage: Cabal and related projects



More information about the cabal-devel mailing list