[Hackage] #408: cabal install / cabal update should give warning when preferred versions will result in something other than the latest version on hackage

#408: cabal install / cabal update should give warning when preferred versions will result in something other than the latest version on hackage ---------------------------------+------------------------------------------ Reporter: tphyahoo | Owner: duncan coutts Type: enhancement | Status: new Priority: normal | Milestone: Component: cabal-install tool | Version: HEAD Severity: normal | Keywords: Difficulty: normal | Ghcversion: 6.8.3 Platform: | ---------------------------------+------------------------------------------ The natural assumption, unless you know better, is that cabal install -- and especially cabal upgrade -- will install the latest verion of a package on hackage. But the preferred-version machinery invalidates this assumptijon. The suggestions is to emit a warning like {{{ cabal install haxml Downloading HaXml-1.13.3... Note: the preferred version is HaXml-1.13.3 but latest version is HaXml-1.19, so put Build-Depends: HaXml == 1.19.4 in your cabal file if you want that version. }}} I would have this message pop up for both cabal install and cabal upgrade See http://groups.google.com/group/fa.haskell/browse_thread/thread/c39dca259a948... for discussion thread. -- Ticket URL: http://hackage.haskell.org/trac/hackage/ticket/408 Hackage http://haskell.org/cabal/ Hackage: Cabal and related projects

#408: cabal install / cabal update should give warning when preferred versions will result in something other than the latest version on hackage ---------------------------------+------------------------------------------ Reporter: tphyahoo | Owner: duncan coutts Type: enhancement | Status: new Priority: normal | Milestone: Component: cabal-install tool | Version: HEAD Severity: normal | Resolution: Keywords: | Difficulty: normal Ghcversion: 6.10.1 | Platform: ---------------------------------+------------------------------------------ Changes (by tphyahoo): * ghcversion: 6.8.3 => 6.10.1 -- Ticket URL: http://hackage.haskell.org/trac/hackage/ticket/408#comment:1 Hackage http://haskell.org/cabal/ Hackage: Cabal and related projects

#408: cabal install / cabal update should give warning when preferred versions will result in something other than the latest version on hackage ---------------------------------+------------------------------------------ Reporter: tphyahoo | Owner: duncan coutts Type: enhancement | Status: new Priority: normal | Milestone: Component: cabal-install tool | Version: HEAD Severity: normal | Resolution: Keywords: | Difficulty: normal Ghcversion: 6.10.1 | Platform: ---------------------------------+------------------------------------------ Comment (by lilac): In the specific case of a 'cabal upgrade' where a named package is already the preferred version but there is a later version, it would be very helpful to include a message. Currently we see this: {{{ $ cabal upgrade parsec Resolving dependencies... No packages to be installed. All the requested packages are already installed. If you want to reinstall anyway then use the --reinstall flag. $ }}} ... when the intention was probably to install parsec 3. -- Ticket URL: http://hackage.haskell.org/trac/hackage/ticket/408#comment:2 Hackage http://haskell.org/cabal/ Hackage: Cabal and related projects

#408: cabal install / cabal update should give warning when preferred versions will result in something other than the latest version on hackage ---------------------------------+------------------------------------------ Reporter: tphyahoo | Owner: duncan coutts Type: enhancement | Status: new Priority: normal | Milestone: Component: cabal-install tool | Version: HEAD Severity: normal | Resolution: Keywords: | Difficulty: normal Ghcversion: 6.10.1 | Platform: ---------------------------------+------------------------------------------ Comment (by lilac): It's important that the wording of the message makes it clear that installing the non-preferred version is, well, not preferred. Possible wording: {{{ Note: Not installing parsec 3.0.0 because the preferred version is 2.1.0.1. If you want to override this then run cabal install 'parsec == 3.0.0' }}} -- Ticket URL: http://hackage.haskell.org/trac/hackage/ticket/408#comment:3 Hackage http://haskell.org/cabal/ Hackage: Cabal and related projects
participants (1)
-
Hackage