New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

`stack solver` creates a build plan that `stack build` can't follow. #2453

Closed
danielwaterworth opened this Issue Aug 8, 2016 · 2 comments

Comments

Projects
None yet
2 participants
@danielwaterworth

danielwaterworth commented Aug 8, 2016

Steps to reproduce

For example:

  1. git clone https://github.com/DanielWaterworth/editor.git&& cd editor&& git checkout stack_bug
  2. Run command stack solver.
  3. Run command stack build.

Expected

A successful build, or at least successful dependency resolution.

Actual

https://gist.github.com/DanielWaterworth/e83cded59a6d7f4a3335f4ffb3d177ca

Stack version

$ stack --version
Version 1.1.2, Git revision cebe10e845fed4420b6224d97dcabf20477bbd4b (3646 commits) x86_64 hpack-0.14.0

Method of installation

  • Installed via curl command.
@danielwaterworth

This comment has been minimized.

danielwaterworth commented Aug 8, 2016

It looks like stack solver doesn't take into account dependencies that are forced by the ghc version. In this case template-haskell.

@harendra-kumar

This comment has been minimized.

Collaborator

harendra-kumar commented Aug 8, 2016

In the second retry phase when it relaxes the hard constraints to soft preferences it treats even the ghc wired-in packages as preferences. ghc packages should still remain as hard constraints only other packages should be relaxed. I am fixing it.

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