mirror of
https://github.com/anoma/juvix.git
synced 2024-12-12 14:28:08 +03:00
0a8799a344
Depends on:
* ~~https://github.com/anoma/juvix/pull/2459~~
* https://github.com/anoma/juvix/pull/2462
This PR is part of a series implementing:
* https://github.com/anoma/juvix/issues/2336
This PR adds the package file loading function, including a file
evaluation effect. It integrates this with the existing `readPackage`
function and adds tests / smoke tests.
## Package.juvix format
Instead of `juvix.yaml` (which is still supported currently) users can
now place a `Package.juvix` file in the root of their project. The
simplest `Package.juvix` file you can write is:
```
module Package;
import PackageDescription open;
package : Package := defaultPackage;
```
The
[PackageDescription](
|
||
---|---|---|
.. | ||
Asm | ||
Compile | ||
Eval | ||
Normalize | ||
Recursor | ||
Transformation | ||
VampIR | ||
Asm.hs | ||
Compile.hs | ||
Eval.hs | ||
Normalize.hs | ||
Print.hs | ||
Recursor.hs | ||
Transformation.hs | ||
VampIR.hs |