1
1
mirror of https://github.com/anoma/juvix.git synced 2024-12-13 11:16:48 +03:00
juvix/test
Paul Cadman 7b5211664e
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 17:36:18 +00:00
..
Arity Dependent default values (#2446) 2023-10-27 10:19:07 +02:00
Asm Constant folding (#2450) 2023-10-20 12:03:56 +02:00
BackendGeb VampIR integration (#2103) 2023-05-22 20:18:18 +02:00
Compilation Named arguments syntax with function definitions (#2494) 2023-11-07 12:02:22 +01:00
Core Use a Juvix source file to define a package (#2434) 2023-10-27 12:35:20 +01:00
Examples Constant folding (#2450) 2023-10-20 12:03:56 +02:00
Formatter Update ci to use ormolu 0.5.3.0 and reformat project (#2313) 2023-08-25 17:37:23 +01:00
Internal Remove abstract (#2219) 2023-06-30 15:01:46 +02:00
Package Add PackageDescription.Basic module Package variant (#2509) 2023-11-13 17:36:18 +00:00
Parsing Error on local instances (#2376) 2023-09-21 10:34:28 +01:00
Reachability Literal casting (#2457) 2023-11-03 10:01:03 +01:00
Runtime Constant folding (#2450) 2023-10-20 12:03:56 +02:00
Scope Named arguments syntax with function definitions (#2494) 2023-11-07 12:02:22 +01:00
Termination Dependent default values (#2446) 2023-10-27 10:19:07 +02:00
Typecheck Interleave arity and typechecking (#2481) 2023-11-12 16:23:33 +01:00
VampIR VampIR range checks and error handling (#2344) 2023-09-12 19:56:28 +02:00
Arity.hs Support implicit arguments (#144) 2022-06-13 14:25:22 +02:00
Asm.hs Translation from JuvixAsm to C (#1619) 2022-12-06 11:33:20 +01:00
BackendGeb.hs End-to-end Geb compilation tests (#1942) 2023-03-29 14:02:40 +02:00
Base.hs Rename Roots type to Root (#2480) 2023-10-30 14:05:52 +01:00
Compilation.hs Constant folding (#2450) 2023-10-20 12:03:56 +02:00
Core.hs Implement core transformation let-hoisting (#2076) 2023-05-16 13:42:44 +02:00
Examples.hs Add a test suite for milestone examples (#1920) 2023-03-24 13:16:26 +00:00
Format.hs Fix remove unexpected whitespaces introduced by formatting (#2489) 2023-11-03 12:51:45 +01:00
Formatter.hs Add juvix format command (#1886) 2023-03-29 15:51:04 +02:00
Internal.hs Add translation from Internal to Core (#1567) 2022-11-07 14:47:56 +01:00
Main.hs Use JuvixError instead of Text for errors in Package file loading (#2459) 2023-10-23 19:01:36 +01:00
Markdown.hs Add support for Literate Juvix Markdown (#2448) 2023-11-10 13:55:36 +01:00
Package.hs Use JuvixError instead of Text for errors in Package file loading (#2459) 2023-10-23 19:01:36 +01:00
Parsing.hs Disallow tab characters as spaces (#1523) 2022-09-07 13:59:41 +02:00
Reachability.hs Compute name dependency graph and filter unreachable definitions (#1408) 2022-07-25 18:38:44 +02:00
Runtime.hs Juvix C runtime (#1580) 2022-11-03 09:38:09 +01:00
Scope.hs [ CI ] New jobs: ormolu and hlint 2022-04-05 19:57:21 +02:00
Termination.hs Add the termination checker to the pipeline (#111) 2022-05-30 13:40:52 +02:00
Typecheck.hs Interleave arity and typechecking (#2481) 2023-11-12 16:23:33 +01:00
VampIR.hs Check valid argument names in YAML (#2193) 2023-06-15 16:42:58 +02:00