haskell / ghcup-hs

https://www.haskell.org/ghcup/
GNU Lesser General Public License v3.0
279 stars 83 forks source link

Consider installing GHC's bash completion (that ships with GHC) #298

Open hasufell opened 2 years ago

hasufell commented 2 years ago

In GitLab by @kolmodin on Nov 22, 2021, 04:16

Please consider installing GHC's bash completion.

It's just one file to include in your distribution, and then hook it up in the env file.

See instructions and snippet to include in env: https://gitlab.haskell.org/ghc/ghc/-/tree/master/utils/completion

hasufell commented 2 years ago

In GitLab by @maerwald on Nov 22, 2021, 05:09

ghcup uses the upstream bindists from https://downloads.haskell.org/~ghc/

I double checked and to me it seems these do not include the bash completion scripts. Right now, ghcup doesn't support multiple downloads per tool.

@bgamari would it be possible/reasonable to include the bash completion in the GHC bindists?

hasufell commented 2 years ago

In GitLab by @szabi on Dec 5, 2021, 04:31

@kolmodin : maybe create an upstream issue for GHC, requesting that the completion script is included in the bindist?

hasufell commented 2 years ago

In GitLab by @bgamari on Dec 10, 2021, 02:33

Indeed it would. We should open a ticket in ghc/ghc> to track this.

hasufell commented 2 years ago

In GitLab by @bgamari on Dec 10, 2021, 02:34

mentioned in issue ghc/ghc#20802

hasufell commented 2 years ago

In GitLab by @bgamari on Dec 10, 2021, 02:34

I've opened https://gitlab.haskell.org/ghc/ghc/-/issues/20802 to track this.

hseg commented 8 months ago

By the GHC upstream ticket, the completions should be in the bindist -- however, installing the latest (9.8.1) release of GHC, I'm still not seeing the completions. The one I'm using at the moment dates from November 2019, when I explicitly installed it. It works, but I'd rather have ghcup manage it than my fallible habits.

chreekat commented 8 months ago

By the GHC upstream ticket, the completions should be in the bindist -- however, installing the latest (9.8.1) release of GHC, I'm still not seeing the completions.

I think this is a bug in GHC. The completions are in the bindist tarball, but aren't accounted for in the install script.