This website requires JavaScript.
Explore
Help
Sign In
anoma
/
juvix
Watch
1
Star
1
Fork
0
You've already forked juvix
mirror of
https://github.com/anoma/juvix.git
synced
2025-01-05 22:46:08 +03:00
Code
Issues
Projects
Releases
Wiki
Activity
76af2124b2
juvix
/
tests
/
positive
/
QualifiedSymbol2
/
Package.juvix
6 lines
91 B
Plaintext
Raw
Normal View
History
Unescape
Escape
Migrate all Juvix projects from juvix.yaml to Package.juvix in the repository (#2503) This PR: * Modifies entry point `_entryPointBuildDir` to use the `BuildDir` type instead of `SomeBase Dir`. This allows delayed resolution of the default build directory which was useful for the Package -> Concrete translation point below. * Modifies `juvix dev root` to render the current package as a Package.juvix file. * Modifies the Package -> Concrete translation to recognise default arguments. So, for example, an empty `juvix.yaml` file will be translated into the following (instead of the `name`, `version`, and `dependencies` arguments being populated). module Package; import Stdlib.Prelude open; import PackageDescription.V1 open; package : Package := defaultPackage; * Adds a temporary command (removed when juvix.yaml support is removed) `juvix dev migrate-juvix-yaml` that translates `juvix.yaml` into an equivalent `Package.juvix` in the current project. * Adds a temporary script `migrate-juvix-yaml.sh` (removed when juvix.yaml support is removed) which can be run in the project to translate all Juvix projects in the repository. * Actually translate all of the `juvix.yaml` files to `Package.juvix` using the script. * Part of https://github.com/anoma/juvix/issues/2487
2023-11-07 21:11:02 +03:00
module Package;
Add PackageDescription.Basic module Package variant (#2509) This PR adds the `PackageDescription.Basic` module, available to Package.juvix files. ``` module Package; import PackageDescription.Basic open; package : Package := basicPackage; ``` The `PackageDescription.Basic` module provides a Package type that is translated to a Juvix Package with all default arguments. It is not possible to customize a basic package. A basic package does not depend on the standard library, so loads much more quickly. Additionally this PR: * Adds `juvix init --basic/-b` option to generate a basic Package.juvix. * Migrates Package.juvix files that only use default arguments, or only customise the name field, to basic Package files. * Closes https://github.com/anoma/juvix/issues/2508
2023-11-13 20:36:18 +03:00
import PackageDescription.Basic open;
Migrate all Juvix projects from juvix.yaml to Package.juvix in the repository (#2503) This PR: * Modifies entry point `_entryPointBuildDir` to use the `BuildDir` type instead of `SomeBase Dir`. This allows delayed resolution of the default build directory which was useful for the Package -> Concrete translation point below. * Modifies `juvix dev root` to render the current package as a Package.juvix file. * Modifies the Package -> Concrete translation to recognise default arguments. So, for example, an empty `juvix.yaml` file will be translated into the following (instead of the `name`, `version`, and `dependencies` arguments being populated). module Package; import Stdlib.Prelude open; import PackageDescription.V1 open; package : Package := defaultPackage; * Adds a temporary command (removed when juvix.yaml support is removed) `juvix dev migrate-juvix-yaml` that translates `juvix.yaml` into an equivalent `Package.juvix` in the current project. * Adds a temporary script `migrate-juvix-yaml.sh` (removed when juvix.yaml support is removed) which can be run in the project to translate all Juvix projects in the repository. * Actually translate all of the `juvix.yaml` files to `Package.juvix` using the script. * Part of https://github.com/anoma/juvix/issues/2487
2023-11-07 21:11:02 +03:00
Add PackageDescription.Basic module Package variant (#2509) This PR adds the `PackageDescription.Basic` module, available to Package.juvix files. ``` module Package; import PackageDescription.Basic open; package : Package := basicPackage; ``` The `PackageDescription.Basic` module provides a Package type that is translated to a Juvix Package with all default arguments. It is not possible to customize a basic package. A basic package does not depend on the standard library, so loads much more quickly. Additionally this PR: * Adds `juvix init --basic/-b` option to generate a basic Package.juvix. * Migrates Package.juvix files that only use default arguments, or only customise the name field, to basic Package files. * Closes https://github.com/anoma/juvix/issues/2508
2023-11-13 20:36:18 +03:00
package : Package := basicPackage;
Reference in New Issue
Copy Permalink