-
Notifications
You must be signed in to change notification settings - Fork 698
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
Allow "sandbox without project file" functionality in new Cabal. #3730
Comments
Thank you for the report. Do you just want GHCi, or do you need the full generality of exec? If you do CC @dcoutts |
The great majority of times I have used it for GHCi. I did have an old use case in which I used |
I wouldn't mind having to write something like a |
I think the .ghc.environment stuff that I'm adding will cover this use case, since you'll be able to just run ghci anywhere in the project and get an environment that includes all the deps of the things in the project. And once we get the "extra-packages" thing in the project file working too then that should cover it. We could also make cabal repl when not in any package dir do the equivalent. |
Currently one can
|
For quick and dirty exploratory programming —usually when testing new versions of packages— I sometimes create a cabal sandbox in a folder, and then install the desired packages, without bothering to create a cabal file. I then use
cabal exec
to gain access to the packages.It would be nice if the new Cabal supported something similar to this. Of course, a possible workaround is to create a dummy project.
The text was updated successfully, but these errors were encountered: