Repository navigation
Add -w/--with-compiler flag to cabal init - #5658
Conversation
|
@23Skidoo is this hack tolerable? if yes, I'd vote for backporting to 2.4 as it's low-risk and trival |
"url":"pull/5658", "account":"haskell", "repo":"cabal", "commit": "677ab0a1e8cf365350f2e48944935db1654f4fc3", "tag":"linux-7.10.3" }
"url":"pull/5658", "account":"haskell", "repo":"cabal", "commit": "677ab0a1e8cf365350f2e48944935db1654f4fc3", "tag":"linux-7.8.4" }
"url":"pull/5658", "account":"haskell", "repo":"cabal", "commit": "677ab0a1e8cf365350f2e48944935db1654f4fc3", "tag":"linux-7.6.3" }
"url":"pull/5658", "account":"haskell", "repo":"cabal", "commit": "677ab0a1e8cf365350f2e48944935db1654f4fc3", "tag":"linux-8.2.2" }
"url":"pull/5658", "account":"haskell", "repo":"cabal", "commit": "677ab0a1e8cf365350f2e48944935db1654f4fc3", "tag":"linux-8.0.2" }
"url":"pull/5658", "account":"haskell", "repo":"cabal", "commit": "677ab0a1e8cf365350f2e48944935db1654f4fc3", "tag":"linux-8.4.4" }
"url":"pull/5658", "account":"haskell", "repo":"cabal", "commit": "677ab0a1e8cf365350f2e48944935db1654f4fc3", "tag":"linux-8.4.4-fdebug-expensive-assertions" }
"url":"pull/5658", "account":"haskell", "repo":"cabal", "commit": "677ab0a1e8cf365350f2e48944935db1654f4fc3", "tag":"osx-7.8.4" }
|
Looks fine and not really hacky to me, unless I'm missing something. |
|
@23Skidoo maybe I've just got a different threshold for what I consider a hack... :-) |
"url":"pull/5658", "account":"haskell", "repo":"cabal", "commit": "677ab0a1e8cf365350f2e48944935db1654f4fc3", "tag":"osx-7.10.3" }
"url":"pull/5658", "account":"haskell", "repo":"cabal", "commit": "677ab0a1e8cf365350f2e48944935db1654f4fc3", "tag":"osx-8.0.2" }
|
How would a non-hacky version look like? It doesn't make sense for |
|
Will this create a |
|
@m-renaud for now no However, I wanted to see support for for creating |
|
@23Skidoo Can I take your comment as approval to merge (after I've update docs & changelog)? |
|
@hvr Sure, go ahead. |
Fixes #5654
Fixes #4936
Besides giving you the ability to conveniently pick a different
ghcwhich you could workaround by e.g.via a simpler, more explicit (because it doesn't rely on the indirection via $PATH to pick the right exe), and more idiomatic
if you have a setup where all
ghcversions are symlinked version-suffixed in your $PATH already.However, there's also the case where you don't have any
ghcin your PATH, but onlyghc-<version>symlinks; this is e.g. the default setup scheme promoted byghcupand for this case, there's not necessarily any workaround (other than creating acabal.configfile or modifying your global cabal config). Or an even more pathological case isTODO: