Skip to content

Feature request: like "system-ghc" but for multiple preinstalled versions of ghc #3931

Closed
@DanBurton

Description

@DanBurton

For context, see: https://www.reddit.com/r/haskell/comments/85abjj/why_does_stack_install_its_own_version_of_ghc_and/dvy3lsu/?context=3

Example usage:

stack setup ghc-8.4.1 --ghc-path /opt/ghc/8.4.1

Desired behavior: inspect the given --ghc-path to ensure that a GHC with the correct version exists at this location. Whenever compiler: ghc-8.4.1 is required, use this particular ghc.

In contrast with system-ghc: true, this allows the "system" in question to have multiple custom versions of ghc installed, and for stack to automatically select the correct one, without needing the assistance of nix, docker, or manual path mangling.

Something like this can currently be accomplished in a hacky way by manually making symlinks, but there should be a nicer interface for this workflow.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions