commercialhaskell / commercialhaskell/stack

Support using a custom Cabal

Open
#2,910 1 comment 0 reactions 0 assignees View on GitHub
type: enhancement
Dominant language
Haskell
Stars
4.1k
Forks
850
Avg merge
10h 37m
Merged PRs (30d)
4

Description

It's sometimes useful to use Stack with a custom version of Cabal. e.g. because a bug has been fixed upstream in `master` but not yet released on Hackage. Stack has `stack setup --upgrade-cabal`, which changes the version of Cabal used, "globally". But from what I can tell, there is no way to ask for a custom Cabal.

Something like the following would be nice:

```
$ stack setup --upgrade-cabal --cabal-sdist URL
```

Ideally though, this would only apply to the local project, not globally.

Any ideas for workarounds for this in the meantime would be appreciated.

cc @robinbb @facundominguez

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.