Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for cabal files #91

Merged
merged 4 commits into from Apr 30, 2023
Merged

Conversation

jasagredo
Copy link
Contributor

Cabal uses its own syntax for the descriptions of the packages, which we can parse ad-hoc for the version number under normal circumstances just by grepping for the version string and getting the value after the colon.

This is a non-invasive change that we would be interested in upstreaming so that there is not a fork just for this purpose.

@nedbat
Copy link
Owner

nedbat commented Apr 25, 2023

I have no experience with cabal files, but this seems fine. I would like to have a test added for the new code, and perhaps even a mention in the docs?

@jasagredo
Copy link
Contributor Author

I don't know exactly how the tests work, but I replicated what was already there this time for a very minimal cabal literal file. Is this ok?

@nedbat nedbat merged commit 6ae70f6 into nedbat:main Apr 30, 2023
22 checks passed
@nedbat
Copy link
Owner

nedbat commented Apr 30, 2023

Thanks!

nedbat pushed a commit that referenced this pull request Apr 30, 2023
@nedbat
Copy link
Owner

nedbat commented Oct 12, 2023

This is now released as part of scriv 1.4.0.

github-merge-queue bot pushed a commit to IntersectMBO/ouroboros-consensus that referenced this pull request Jan 5, 2024
 - Update flake inputs
 - Update HLS to 2.5
- Use upstream scriv as nedbat/scriv#91 was
merged and released in 1.4.0 (latest is 1.5.1 already).
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.

None yet

2 participants