[Hackage] #174: cabal-install tries to upgrade the base package

Hackage trac at galois.com
Wed May 21 11:16:10 EDT 2008


#174: cabal-install tries to upgrade the base package
---------------------------------+------------------------------------------
  Reporter:  duncan              |        Owner:         
      Type:  defect              |       Status:  new    
  Priority:  normal              |    Milestone:         
 Component:  cabal-install tool  |      Version:  1.2.2.0
  Severity:  normal              |   Resolution:         
  Keywords:                      |   Difficulty:  normal 
Ghcversion:  6.6                 |     Platform:  Linux  
---------------------------------+------------------------------------------
Comment (by duncan):

 This is now trivial to fix. We just exclude all versions of the `base`
 package from the index of available packages that we hand to the
 dependency resolver:

 {{{
   dependencyResolver resolver os arch comp installed available deps =
 !   case resolver os arch comp (hideBrokenPackages installed) available
 deps of
       Left unresolved -> Left unresolved
 --- 87,91 ----
   dependencyResolver resolver os arch comp installed available deps =
 !   let installed' = hideBrokenPackages installed
 !       available' = hideBasePackage available
 !    in case resolver os arch comp installed' available' deps of
 }}}

 That encodes the fact that although the base package may be available, we
 cannot actually rebuild the base package or install any new version of it.

 We should probably do the same for any other magic builtin ghc packages
 that are not upgradable.

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


More information about the cabal-devel mailing list