haskell / haskell/cabal

Bundle Cabal and Cabal-syntax source with cabal-install?

Open
#9,741 9 comments 3 reactions 0 assignees View on GitHub
type: enhancement
Dominant language
Haskell
Stars
1.7k
Forks
750
Avg merge
4d 3h
Merged PRs (30d)
28

Description

Perhaps we should bundle the latest `Cabal` and `Cabal-syntax` libraries with the `cabal-install` executable data files.

Then `cabal-install` can decide whether to build the latest `Cabal` library on the fly if the user's plan requires a `very new cabal version.

For example #9632 would benefit from this, if you use `--multi-repl` you get a constraint on a very new `Cabal`l library.

Some care would need to be taken to engineer things so that the new version is not picked as a matter of priority and only if explicitly needed.

My intuition is that if the packages were provided as a local+noindex repo then things would work out "just right".

I constructed an incomplete POC here (not currently using local+noindex): https://github.com/mpickering/cabal/tree/wip/bundle-cabal-package

Is this desirable to keep working on?

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.