haskell / haskell/cabal

[RFC] Negative specification of cabal.project fields affecting package resolution

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

Description

In certain scenarios, where:

1. We have magical knowledge that the GHC's package set is sufficient to build the project, and
2. We still need the cabal.project for some extra information (flags, relative package locations etc)

We might want to:
1. suppress the aspects of project file's specification that affect package resolution,
2. and further, being able to express that suppression via `cabal.project.local`

Hence, I propose that we add two new directives to cabal project files:

1. `ignore-source-repositories`, that would have the effect of cancelling all effects of `source-repository-package` declarations
2. `ignore-constraints`, to cancel all effects of `constraints` declarations.

cc @dcoutts

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.