[Hackage] #595: Better error message when packages are not found in global package db

Hackage cvs-ghc at haskell.org
Wed Nov 9 02:43:57 CET 2011


#595: Better error message when packages are not found in global package db
------------------------------+---------------------------------------------
  Reporter:  guest            |         Type:  enhancement  
    Status:  closed           |     Priority:  normal       
 Milestone:                   |    Component:  Cabal library
   Version:  HEAD             |     Severity:  major        
Resolution:  worksforme       |     Keywords:               
Difficulty:  easy (<4 hours)  |   Ghcversion:               
  Platform:                   |  
------------------------------+---------------------------------------------
Changes (by gtirloni):

 * cc: gtirloni@… (added)
  * status:  new => closed
  * resolution:  => worksforme


Comment:

 I cannot reproduce this problem with GHC 7.0 and cabal-install 0.10.2.

 cabal-install correctly identifies the package that exists locally (but
 not on Hackage).

 $ cabal --version
 cabal-install version 0.10.2
 using version 1.10.2.0 of the Cabal library

 $ ghc --version
 The Glorious Glasgow Haskell Compilation System, version 7.0.4

 $ curl http://hackage.haskell.org/package/network-multicast-nonexistent
 404 Not Found
 The requested resource was not found: no such package 'network-multicast-
 nonexistent'


 $ cabal clean
 cleaning...

 $ cabal configure
 Resolving dependencies...
 Configuring cabalfailure-0.1...

 $ cabal build
 Preprocessing executables for cabalfailure-0.1...
 Building cabalfailure-0.1...
 [1 of 1] Compiling Main             ( src/myTest.hs, dist/build/Main/Main-
 tmp/Main.o )
 Linking dist/build/Main/Main ...

 $ cabal install
 Resolving dependencies...
 Configuring cabalfailure-0.1...
 Preprocessing executables for cabalfailure-0.1...
 Building cabalfailure-0.1...
 Installing executable(s) in /home/gtirloni/.cabal/bin

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



More information about the cabal-devel mailing list