Skip to content

Redo docs on config file discovery - #12649

Open
philderbeast wants to merge 18 commits into
haskell:masterfrom
cabalism:doc/config-file-discovery
Open

philderbeast wants to merge 18 commits into
haskell:masterfrom
cabalism:doc/config-file-discovery

Conversation

@philderbeast

@philderbeast philderbeast commented Nov 23, 2026 •

Copy link
Copy Markdown
Collaborator

While writing about the configuration file I went to check how many of them cabal reads and found the users guide wrong about ~/.cabal. The list under "Configuration file discovery" said ~/.cabal/config is used whenever ~/.cabal exists. It is only used when there is no config file in $XDG_CONFIG_HOME/cabal. "Directories" had the same error.

I've rewritten the rule list and backed those up with tests and I've added a note for when ~/.cabal is ignored.

I'll squash commits before applying the merge label if this pull request is approved.


Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant