Skip to content

Add an include-with-filtering mechanism for config files #2238

@23Skidoo

Description

@23Skidoo

In #2226 I changed how list fields work in config files to make the behaviour less surprising. This is still not quite satisfactory: ideally we'd want to replace implicit inheritance with an explicit include mechanism to make it more obvious what happens. So, for example, instead of implicitly mappending cabal.config with cabal.sandbox.config and ~/.cabal/config, we would require the user to write

include ~/.cabal/config
include cabal.sandbox.config

[...]

in cabal.config. There should also be a filtering mechanism to make it possible to override list fields. Example:

include ~/.cabal/config hiding (remote-repo)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions