[Hackage] #786: Bad errors from getProgramInvocationOutput and friends

Hackage cvs-ghc at haskell.org
Sat Jan 8 17:41:04 CET 2011

#786: Bad errors from getProgramInvocationOutput and friends
  Reporter:  igloo          |        Owner:      
      Type:  defect         |       Status:  new 
  Priority:  normal         |    Milestone:      
 Component:  Cabal library  |      Version:  HEAD
  Severity:  normal         |     Keywords:      
Difficulty:  unknown        |   Ghcversion:      
  Platform:                 |  
 In http://hackage.haskell.org/trac/ghc/ticket/4883 `ghc-cabal` gives an
 unhelpful error:

 This comes from `getProgramInvocationOutput`:
   (output, errors, exitCode) <- rawSystemStdInOut verbosity
                                   path args
                                   Nothing utf8
   when (exitCode /= ExitSuccess) $
     die errors
 as there was nothing on `stderr`. There are several similar functions in

 Cabal ought to also say what it was running and what the error code was,
 without needing a verbosity flag to be given.

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

More information about the cabal-devel mailing list