Add purs-versions script to list supported registry versions #628
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
To support #255 we need to know the full list of compilers that the registry supports. The registry supports whatever the
compilers
attrset in theflake.nix
is, and that in turn comes from thepurescript-overlay
repository, which seeks to support all compilers from 0.13.0 onwards.This PR adds a script named
purs-versions
that, when called, will spit out all the compilers supported by the registry separated by spaces. For example:Note: the output is sorted by the string keys seen here, which is not suitable to order by versions because (for example) a string "0.15.10" is considered greater than "0.15.1" but less than "0.15.2", which is obviously incorrect as far as SemVer goes. So anyone consuming this should parse these strings into actual
Version
s and sort them, if they need a sorted order.