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

Integrate the use of ghcup to download the required toolchain #483

Closed
jneira opened this issue Oct 11, 2021 · 0 comments
Closed

Integrate the use of ghcup to download the required toolchain #483

jneira opened this issue Oct 11, 2021 · 0 comments
Labels
type: enhancement An enhancement to an already existing feature type: user experience An enhancement to the UX, e.g. better error handling

Comments

@jneira
Copy link
Member

jneira commented Oct 11, 2021

Moved from haskell/haskell-language-server#2251

  • Depending on the info given by hls-wrapper:
    • cabal cradle: do a ghcup install cabal && ghcup install ghc ${version}, where ${version} will be the ghc version reported by the cradle or empty if it is not known, after downloading cabal itself (needed for query the ghc version)
      • it will download only the missing tool, cabal or ghc
    • stack cradle: do a ghcup install stack and let stack download the rest of needed tools (as with the default stack via ghcup will download ghc and/or msys2 in its own)
    • direct cradle: do a ghcup install ghc
    • bios cradle: do nothing
  • We have to decide what to do if ghcup itself is missing:
    • do nothing
    • download ghcup
    • suggest user install it
  • The automatic download will be configured and maybe we should do a one-off question to let users decide the default behaviour
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: enhancement An enhancement to an already existing feature type: user experience An enhancement to the UX, e.g. better error handling
Projects
None yet
Development

No branches or pull requests

1 participant