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

From Agda 2.6.4: Simpler way to get Agda version using --numeric-version option #138

Open
andreasabel opened this issue Mar 27, 2023 · 0 comments
Labels
enhancement New feature or request

Comments

@andreasabel
Copy link

andreasabel commented Mar 27, 2023

This code seems to parse the version of Agda from the output of agda -V:

switch Js.String.match_(%re("/Agda version (.*)/"), output) {

Agda >= 2.6.4 should have a --numeric-version option.

This could be utilized at some point, but maybe you need to be handle older versions of Agda, so it might not be so useful in the near future.

I am also changing the output of agda -V by adding a few lines with information about the cabal flags used during build, but hopefully this will not destroy your version parser here: The output of agda -V will still start with Agda version VERSION_STRING.

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

No branches or pull requests

2 participants