-
Notifications
You must be signed in to change notification settings - Fork 0
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
"Providing" GHC, cabal-install etc. #1
Comments
That would be very similar to how rustup does it. We would have to add symlinks to /usr/bin for this to work (compare this), but right now, I think you would have to reimplement the logic ghcup uses to look for its binaries (respect I am definitely open to do this, but it would probably a good idea to expose this logic upstream. Maybe related to https://gitlab.haskell.org/haskell/ghcup-hs/-/issues/173 |
I'm not really sure what the full use case is. Do you want a system-wide ghcup installation? I think creating wrapper scripts in But you can indeed do a system-wide installation by pointing |
For reference, this is exactly what the ArchLinux-packaged rustup does: rustup provides rust, cargo, rustfmt etc. (which also exist as there own packages, where the files are system-owned), and has symlinks in So I don't think it would be too contrived to do sth similiar for ghcup, but I don't have a strong opinion here. |
Yeah, the upcoming |
Is this a good idea? Given the rate of breaking changes in the Haskell ecosystem, it seems quite important that packages get to depend on the versions of GHC and Cabal that they're expecting. I personally like to keep a separation between using GHCUP for development, and using Pacman for installing executables which just happen to be built in Haskell (Pandoc, HLint...). The two toolchains never interact. Anyway, I'm no expert in packaging and may be missing something. If Rust does it, then presumably it can't be that bad. |
You can now use a ghc wrapper script, such as #!/bin/sh
exec ghcup run --ghc 8.10.7 ghc -- "$@" |
@samhh wrote:
The text was updated successfully, but these errors were encountered: