Skip to content
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

Feature request: get sources without extraction #6443

Open
tseenshe opened this issue Dec 18, 2019 · 0 comments
Open

Feature request: get sources without extraction #6443

tseenshe opened this issue Dec 18, 2019 · 0 comments

Comments

@tseenshe
Copy link
Contributor

It would be very useful for the UX of editor tooling to be able to download source code (or ensure that source code is downloaded) to the ~/.cabal/packages directory without doing the extraction.

A workaround is to do this:

cabal get base-4.12.0.0 -d /var/empty

but it is not cross-platform and means we cannot tell if the command succeeded.

My primary usecase for wanting to use cabal get is to obtain the sources of wired-in packages such as base and ghc. It would be good if there was a command that could grab all of them. It is somewhat posisble to do this using the ghc --show-packages feature but of course the "environment injection" of cabal exec ghc means that the results are wrong so the user must know the exact path to ghc.

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

No branches or pull requests

2 participants