commercialhaskell / stack

The Haskell Tool Stack
http://haskellstack.org
BSD 3-Clause "New" or "Revised" License
3.99k stars 845 forks source link

Can't build lens master #315

Closed bitemyapp closed 9 years ago

bitemyapp commented 9 years ago
boura:lens callen$ stack build --prefetch --dry-run
Downloaded lts-2.14 build plan.
Fetched package index.
Populated index cache.
Checking against build plan lts-2.14
Downloaded lts-1.15 build plan.
Checking against build plan lts-1.15
Downloaded nightly-2015-06-15 build plan.
Checking against build plan nightly-2015-06-15
No matching snapshot was found for your package, falling back to: lts-2.14
This behavior will improve in the future, please see: https://github.com/commercialhaskell/stack/issues/253
Writing default config file to: /Users/callen/work/lens/stack.yaml
While constructing the BuildPlan the following exceptions were encountered:

--  While attempting to add dependency,
    Could not find package base-orphans in known packages

--  Failure when adding dependencies:
      base-orphans: needed (>=0.3 && <1), but not present in build plan
      bifunctors: needed (>=5 && <6), but 4.2.1 found
      profunctors: needed (>=5 && <6), but 4.4.1 found
      semigroupoids: needed (>=5 && <6), but 4.3 found
    needed for package: lens-4.11
snoyberg commented 9 years ago

Why is this a bug? Is there a reason why lens master should be expected to build with LTS 2.14?

gregwebs commented 9 years ago

Perhaps the implied suggestion is that stack should by default take packages from hackage if it helps with the build? The problem for stack is that the package index being up to date effects things. So stack is going to need some level of user intervention.

If there is a cabal.config file is is safe to take package from there.

snoyberg commented 9 years ago

Doing this is being tracked in #116

snoyberg commented 9 years ago

Closing in favor of #116