Skip to content

Use the constraint solver for cabal configure #385

Closed

Description

@bos

(Imported from Trac #392, reported by @dcoutts on 2008-11-08)

Currently cabal install and cabal upgrade use the constraint solver to select the dependencies while cabal configure just selects the highest version of each package.

That means it sometimes picks bad combinations where cabal install would do something smarter. It also means it does not use preferences like base < 4.

However for cabal configure it's important that the solver not fail and prevent configuring at all. If the solver cannot find a consistent solution we should probably warn and fall back to the existing behavior. We may also want to prevent cabal configure from picking anything other than the current installed packages. Though again that's likely to increase the chance of failure.

Perhaps if there is no solution for the current installed packages then it should check if there would be a solution if we allowed re-installs and if so say so in the warning message. If not fall back to the highest versions of everything as now.

Activity

  1. bos commented on May 24, 2012

    @bos
    ContributorAuthor

    (Imported comment by @dcoutts on 2008-11-08)

    Sun Jan 25 17:09:51 GMT 2009  Duncan Coutts &lt;[email protected]&gt;
      * Make configure use the dependency resolver
    
      This means it makes smarter decisions and also decions that are more
      consistent with those taken by the install command.
    
      Currently we do not really use the error message produced by the resolver, 
      we just fall back to doing the old thing.
    

    This could be improved if the error messages produced by the resolver were better and took into account broken packages etc.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions