Skip to content

"cabal init" should support support --with-ghc #4936

Closed

Description

@bitc

"cabal init" should be consistent with the other cabal commands and allow "--with-ghc":

$ cabal init
cabal: The program 'ghc' version >=6.11 is required but it could not be found.
$ cabal init --with-ghc=/opt/ghc-8.2.2/bin/ghc
cabal: unrecognized 'init' option `--with-ghc=/opt/ghc-8.2.2/bin/ghc'

Activity

  1. self-assigned this
    on Dec 12, 2017
  2. NathanConroy commented on Dec 13, 2017

    @NathanConroy
    Contributor

    For the record, in other commands this option appears as "-w" and "--with-compiler=PATH".

  3. 23Skidoo commented on Dec 13, 2017

    @23Skidoo
    Member

    Why does it need to run ghc? To get the available packages?

  4. fgaz commented on Dec 14, 2017

    @fgaz
    Member

    @23Skidoo it tries to guess the dependencies (only from the global packagedb or sandbox I think), extensions, and some other things

  5. 23Skidoo commented on Dec 14, 2017

    @23Skidoo
    Member

    OK. Makes sense for it to support -w then.

  6. added 2 commits that reference this issue on Nov 5, 2018
    1916fca
    878642e
  7. added this to the 2.4.0.1 milestone on Nov 5, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions