Skip to content

Support up to Cabal 3.16#13

Merged
felixonmars merged 2 commits into
berberman:masterfrom
Vekhir:support-up-to-9.14
Jun 17, 2026
Merged

Support up to Cabal 3.16#13
felixonmars merged 2 commits into
berberman:masterfrom
Vekhir:support-up-to-9.14

Conversation

@Vekhir

@Vekhir Vekhir commented Apr 20, 2026

Copy link
Copy Markdown
Contributor

@berberman This PR adds support for Cabal up to 3.16.

Cabal 3.14 uses SymbolicPath instead of FilePath. The difference is that SymbolicPath can only be used to manipulate the path, without doing file operations; to get the underlying FilePath, getSymbolicPath is used.
The change is significant enough that it becomes easier to just duplicate the affected functions.

Cabal 3.12 changes the return value for findPackageDesc to return an Exception instead of a String. The use of show just turns it into a string again. This is backwards-compatible.

Cabal 3.16 works out-of-the-box. It just needs a dependency bump to be supported.

Verified on Arch Linux with GHC 9.6.6, 9.12.4, and 9.14.1. The CI also checks 9.8.4 and 9.10.3.

Fixes #11

@Vekhir

Vekhir commented Apr 20, 2026

Copy link
Copy Markdown
Contributor Author

It looks like the CI needs updating. Can you take a look at it?

@Vekhir Vekhir force-pushed the support-up-to-9.14 branch from ac949c9 to c39e899 Compare April 23, 2026 20:18
@Vekhir

Vekhir commented Apr 23, 2026

Copy link
Copy Markdown
Contributor Author

@berberman I've updated the CI and the tests are now passing. Is anything else holding up this PR for uusi to support up to GHC 9.14?

@felixonmars felixonmars merged commit eb7c3e3 into berberman:master Jun 17, 2026
40 checks passed
@Vekhir Vekhir deleted the support-up-to-9.14 branch June 17, 2026 20:49
@Vekhir

Vekhir commented Jun 17, 2026

Copy link
Copy Markdown
Contributor Author

Thanks!

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Support Cabal 3.12 / GHC 9.10

2 participants