[Hackage] #485: preference on base version should only be applied for open constraints

Hackage trac at galois.com
Wed Jun 3 06:32:44 EDT 2009


#485: preference on base version should only be applied for open constraints
---------------------------------+------------------------------------------
  Reporter:  duncan              |        Owner:                   
      Type:  enhancement         |       Status:  new              
  Priority:  high                |    Milestone:  cabal-install-0.6
 Component:  cabal-install tool  |      Version:  1.6.0.1          
  Severity:  normal              |   Resolution:                   
  Keywords:                      |   Difficulty:  easy (<4 hours)  
Ghcversion:                      |     Platform:                   
---------------------------------+------------------------------------------
Changes (by duncan):

  * priority:  normal => high
  * difficulty:  unknown => easy (<4 hours)

Comment:

 {{{
 Wed Jun  3 11:16:23 BST 2009  Duncan Coutts <duncan at haskell.org>
   * Only apply preferences to base if its version is unbounded above
   Fixes ticket #485. This means that for constraints like:
       build-depends: base >= 3 && < 5
   we will pick version 4. However we will continue to apply the
   version 3 preference for things like:
       build-depends: base >= 3
   Where there is no upper bound on the version. Note that we now
   also ignore preferences for base given on the command line.
   We should implement #483 to split prefs from shims.
 }}}

 Needs testing and then back-porting to the cabal-install-0.6.x series. In
 particular it'll need a compat copy of the newVersionIntervals type that's
 in the Cabal lib now as of version 1.7.x.

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


More information about the cabal-devel mailing list