Skip to content

Cannot resolve text dependency with ghc-7.8 solver #396

@hesselink

Description

@hesselink

To reproduce, in an empty directory:

  • stack new
  • Switch resolver to ghc-7.8.
  • Add text-1.2.1.1 to extra-deps.
  • Edit new-template.cabal, add text to build-depends.
  • Run stack build.

This gives the following error:

$ stack build
While constructing the BuildPlan the following exceptions were encountered:

--  While attempting to add dependency,
    Could not find package integer-simple in known packages

--  Failure when adding dependencies:
      text: needed (-any), but couldn't resolve its dependencies
    needed for package: new-template-0.1.0.0

--  Failure when adding dependencies:
      integer-simple: needed (>=0.1 && <0.5), but not present in build plan
    needed for package: text-1.2.1.1

My GHC is build with integer-gmp, but adding that to the extra-deps doesn't work either (the error is the same). Text switches between these with a flag, which cabal-install usually toggles automatically to find a suitable plan.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions