1
1
mirror of https://github.com/anoma/juvix.git synced 2024-12-14 08:27:03 +03:00
juvix/tests
Paul Cadman 9bfe20e323
Version the PackageDescription module (#2478)
This PR adds a version number to the module name of the
`PackageDescription` module. This allows us to change the Package file
format in a backwards compatible way in the future.

Now the simplest Package.juvix file looks like:

```
module Package;

import PackageDescription.V1 open;

package : Package := defaultPackage;
```

## Adding new versions

The idea is that new versions of the PackageDescription format will be
added as files of the form:
include/package/PackageDescription/Vx.juvix

The correspondence between a version of the PackageDescription file and
the package type name is recorded in
[`packageDescriptionTypes`](9ba869d836/src/Juvix/Compiler/Pipeline/Package/Loader.hs (L15)).

The `package` identifier type must come from **one** of the versions
of the PackageDescription module.

* Closes https://github.com/anoma/juvix/issues/2452
2023-10-30 11:33:36 +00:00
..
Asm New compilation pipeline (#1832) 2023-03-14 16:24:07 +01:00
benchmark Numeric, ordering and equality traits (#2433) 2023-10-09 18:25:01 +02:00
Compilation Dependent default values (#2446) 2023-10-27 10:19:07 +02:00
Core Fold lets when the bound variable occurs at most once (#2231) 2023-06-29 13:02:10 +02:00
examplesExpected Add a test suite for milestone examples (#1920) 2023-03-24 13:16:26 +00:00
Geb/positive Add missing juvix.yaml files to test project roots (#2474) 2023-10-26 10:41:23 +01:00
Internal Numeric, ordering and equality traits (#2433) 2023-10-09 18:25:01 +02:00
negative Version the PackageDescription module (#2478) 2023-10-30 11:33:36 +00:00
positive Version the PackageDescription module (#2478) 2023-10-30 11:33:36 +00:00
runtime/positive Improve closure calls in the runtime (#2396) 2023-09-29 14:20:00 +02:00
smoke/Commands Version the PackageDescription module (#2478) 2023-10-30 11:33:36 +00:00
VampIR Add missing juvix.yaml files to test project roots (#2474) 2023-10-26 10:41:23 +01:00
.gitattributes Juvix C runtime (#1580) 2022-11-03 09:38:09 +01:00