You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
"cabal init" should support support --with-ghc #4936
"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
NathanConroy commentedon Dec 13, 2017
For the record, in other commands this option appears as "-w" and "--with-compiler=PATH".
23Skidoo commentedon Dec 13, 2017
Why does it need to run
ghc? To get the available packages?fgaz commentedon Dec 14, 2017
@23Skidoo it tries to guess the dependencies (only from the global packagedb or sandbox I think), extensions, and some other things
23Skidoo commentedon Dec 14, 2017
OK. Makes sense for it to support
-wthen.Add `-w`/`--with-compiler` flag to `cabal init` (#5658)
Add `-w`/`--with-compiler` flag to `cabal init` (#5658)