Skip to content

Refine docs of index state - #12634

Open
philderbeast wants to merge 8 commits into
haskell:masterfrom
cabalism:docs/index-state-refinements
Open

philderbeast wants to merge 8 commits into
haskell:masterfrom
cabalism:docs/index-state-refinements

Conversation

@philderbeast

@philderbeast philderbeast commented Nov 20, 2026 •

Copy link
Copy Markdown
Collaborator

I was including index-state for the guide on freezing in #9984 and have made some refinements to the separate section on index-state:

  • Add an example of the index as a log, with a week of entries for one package as an example, and what cutting it off at a timestamp does.
  • Add an example of what cabal configure and cabal freeze each write given --index-state.
  • Note ISO8601 timestamps have to be written in full (Accept more ISO8601 timestamp formats #12630).
  • Discuss scoped and unscoped timestamps (also called qualified but I chose scoped), and that a scoped timestamp is lost if an unscoped one comes after it (tested in Add unit tests for scoped index state timestamps #12632).
  • Warn about the override where the field value does not accumulate (merge or combine), and note the order in which cabal reads it (Semantics of index-state in cabal.project #8568).
  • Warn that an index-state left in cabal.project.local overrides a freeze file.

The command --help text also now uses TIMESTAMP as the placeholder.

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


  • Patches conform to the coding conventions.
  • Is this a PR that fixes CI? If so, it will need to be backported to older cabal release branches (ask maintainers for directions).

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