Skip to content

cabal list requires ghc, no way to specify alternative version #6721

Closed
@claudeha

Description

@claudeha

Describe the bug
cabal list needs a ghc executable (why?). I can't specify which version, eg ghc-8.10.1.

To Reproduce

$ cabal-3.2.0.0 list containers
cabal-3.2.0.0: The program 'ghc' version >=7.0.1 is required but it could not
be found.
$ cabal-3.2.0.0 -w ghc-8.10.1 list containers
cabal-3.2.0.0: unrecognised command: ghc-8.10.1 (try --help)
$ cabal-3.2.0.0 list -w ghc-8.10.1 containers
cabal-3.2.0.0: unrecognized 'list' option `-w'

Expected behavior
If cabal list needs a ghc, to have some way of specifying the version.

System information

  • Debian Buster
  • cabal-3.2.0.0, ghc-8.10.1

Additional context
I install ghc from bindist with prefix ~/opt/ghc/$GHCVERSION, and symlink the versioned executables into ~/opt/bin which is in my $PATH. I don't have a binary/link named ghc without a version, but that is a bit beside the point for this bug report (if I did, there would still be no way to specify the version).

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions