Repository navigation
Closed
Description
Using
$ ghc --version; cabal --version
The Glorious Glasgow Haskell Compilation System, version 7.6.3
cabal-install version 1.18.0.2
using version 1.18.0 of the Cabal library
with the dummy.cabal contents
name: dummy
version: 0.1.0.0
license: GPL-3
license-file: LICENSE
author: HVR
maintainer: [email protected]
build-type: Simple
cabal-version: >=1.10
executable dummy
main-is: dummy.hs
build-depends: base >=4.6 && <4.8
default-language: Haskell2010
test-suite test1
main-is: dummy.hs
type: exitcode-stdio-1.0
default-language: Haskell2010
build-depends: test-framework==0.8.*, test-framework-quickcheck2==0.3.*, QuickCheck==2.5.*
Then if I install some packages into the sandbox...
$ cabal sandbox init
$ cabal install QuickCheck-2.6
$ cabal install --enable-test --dep --dry
Resolving dependencies...
In order, the following would be installed (use -v for more details):
QuickCheck-2.5.1.1 (latest: 2.6)
ansi-terminal-0.6
ansi-wl-pprint-0.6.6
extensible-exceptions-0.1.1.4
hostname-1.0
text-0.11.3.1
transformers-0.3.0.0
mtl-2.1.2
regex-base-0.93.2
regex-posix-0.95.2
xml-1.3.13
test-framework-0.8
test-framework-quickcheck2-0.3.0.1
$ cabal install --enable-test --dep
...and now try to cabal install, cabal would try to install test-framework-quickcheck2-0.2.4 even though tests are not to be built, and even if they were to be built, that version would not be within the version constraints:
$ cabal install --disable-test --dry
Resolving dependencies...
In order, the following would be installed (use -v for more details):
dummy-0.1.0.0
test-framework-quickcheck2-0.2.4 (latest: 0.3.0.1)
Activity
hvr commentedon Oct 5, 2013
Here's the
-v3output from the last command for completeness:tibbe commentedon Nov 28, 2013
@kosmikus would you mind doing an initial triage, just to describe what's going on?
kosmikus commentedon Nov 28, 2013
I think that @23Skidoo knows the sandbox stuff better than I do. Here's what seems to happen according to the
-v3log:QuickCheck-2.6seems to be installed in the sandbox (possibly next toQuickCheck-2.5? I thought that's not possible?). Within a sandbox, there's an attempt to create a consistent install plan with all installed packages, so bothQuickCheckandtest-framework-quickcheck2which are currently installed become user goals. But they turn out to be inconsistent.Right now, it's unclear to me if this is a problem that should be solved within the solver somehow, or whether the solver could be invoked with better arguments to make it clear what's desired.
gbaz commentedon Aug 28, 2021
closing as obsolete