-
Notifications
You must be signed in to change notification settings - Fork 704
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
Using the Cabal API with sandboxes #2112
Comments
I just noticed that in Is this the reason? Do I have to set |
Yes, we use Second, there is currently no easily-accessible API for working with sandboxes since the sandbox-related code mostly resides inside |
It's also worth noting that the Cabal API has a very simple constraint solver, and is not the one used by |
These are interesting points. It would be great if somebody could make a small summary of those and add them to a section in the Cabal API: "What does one have to take into account when working with sandboxes?" |
Related to #1848. |
sandbox functionality is removed. |
I have a question about the Cabal API and sandboxes.
When I'm using
cabal configure
in my project (which has a sandbox configured), everything is fine and I get no warnings.However, if I use the Cabal API to configure the project like this: https://gist.github.com/nh2/cabe35a058f10ff5313d/8653affaf7ceb5190ce03f44333e9d45af174726 then I get:
How does it work that
cabal configure
finds a way to configure the project without using multiple versions, but the Cabal API doesn't? Am I using the API correctly here?My first guess is that somehow that I'm accidentally escaping the sandbox, because the output is talking about
transformers-base-0.4.3
which I don't even have installed in my sandbox:Same for
transformers
:The only place from which Cabal can know about
transformers-0.4.1.0
is from outside the sandbox:Or is setting
configPackageDBs = [Just "path/to/sandbox/packagedb"]
as I do here not enough, and allows cabal to use the normal home directory package db?The text was updated successfully, but these errors were encountered: