ghcup-hs icon indicating copy to clipboard operation
ghcup-hs copied to clipboard

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

Open hasufell opened this issue 2 years ago • 7 comments

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 avatar Nov 21 '21 20:11 hasufell

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 avatar Nov 21 '21 21:11 hasufell

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 avatar Dec 04 '21 20:12 hasufell

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 avatar Dec 09 '21 18:12 hasufell

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

mentioned in issue ghc/ghc#20802

hasufell avatar Dec 09 '21 18:12 hasufell

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

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

hasufell avatar Dec 09 '21 18:12 hasufell

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.

hseg avatar Jan 21 '24 00:01 hseg

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.

chreekat avatar Jan 22 '24 09:01 chreekat