Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
$ snap init
$ cabal sandbox init
Writing a default package environment file to
/Users/andrewlorente/code/escaping_bug_demo/cabal.sandbox.config
Creating a new sandbox at
/Users/andrewlorente/code/escaping_bug_demo/.cabal-sandbox
$ cabal install --only-dependencies
Resolving dependencies...
cabal: Could not resolve dependencies:
trying: escapingbugdemo-0.1 (user goal)
trying: escapingbugdemo-0.1:-old-base
trying: lens-4.1.2.1 (dependency of escapingbugdemo-0.1:-old-base)
trying: transformers-compat-0.3 (dependency of lens-4.1.2.1)
trying: transformers-compat-0.3:-transformers2
next goal: transformers (dependency of lens-4.1.2.1)
rejecting: transformers-0.3.0.0/installed-ff2... (conflict:
transformers-compat-0.3:transformers2 => transformers>=0.4 && <0.5)
rejecting: transformers-0.4.1.0 (conflict: lens => transformers>=0.2 && <0.4)
rejecting: transformers-0.3.0.0, 0.2.2.1, 0.2.2.0, 0.2.1.0, 0.2.0.0 (conflict:
transformers-compat-0.3:transformers2 => transformers>=0.4 && <0.5)
rejecting: transformers-0.1.4.0, 0.1.3.0, 0.1.1.0, 0.1.0.1, 0.1.0.0, 0.0.1.0,
0.0.0.0, 0.4.0.0 (conflict: lens => transformers>=0.2 && <0.4)
Backjump limit reached (change with --max-backjumps).
Note: when using a sandbox, all packages are required to have consistent
dependencies. Try reinstalling/unregistering the offending packages or
recreating the sandbox.
@ErinCall
Copy link
Author

ErinCall commented May 19, 2014

Solution was cabal install --only-dependencies --reorder-goals

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