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

Automatically extract GHC version from cabal.project #13

Closed
wants to merge 1 commit into from

Conversation

jonaprieto
Copy link
Collaborator

@jonaprieto jonaprieto commented Jun 16, 2023

This PR defines a function to automatically extract the GHC version from the cabal.project file in the Juvix repository during the installation process. The function, fetch_ghc_version, fetches the cabal.project file and parses the with-compiler field to determine the GHC version.
This ensures we always use the GHC version specified in the cabal.project file, improving the automation of our setup process and reducing potential errors due to GHC version mismatches. ;)

It works well on my machine, but I would strongly recommend testing this before merging.

@jonaprieto jonaprieto added the enhancement New feature or request label Jun 16, 2023
@jonaprieto jonaprieto self-assigned this Jun 16, 2023
@jonaprieto
Copy link
Collaborator Author

As discussed internally, better not to merge this in favour of:

@jonaprieto jonaprieto closed this Jun 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant