1
1
mirror of https://github.com/anoma/juvix.git synced 2024-10-26 17:52:17 +03:00
juvix/app/Commands
Łukasz Czajka 75bce8f665
Per-module compilation (#2468)
* Closes #2392 

Changes checklist
-----------------
* [X] Abstract out data types for stored module representation
(`ModuleInfo` in `Juvix.Compiler.Store.Language`)
* [X] Adapt the parser to operate per-module
* [X] Adapt the scoper to operate per-module
* [X] Adapt the arity checker to operate per-module
* [X] Adapt the type checker to operate per-module
* [x] Adapt Core transformations to operate per-module
* [X] Adapt the pipeline functions in `Juvix.Compiler.Pipeline`
* [X] Add `Juvix.Compiler.Pipeline.Driver` which drives the per-module
compilation process
* [x] Implement module saving / loading in `Pipeline.Driver`
* [x] Detect cyclic module dependencies in `Pipeline.Driver`
* [x] Cache visited modules in memory in `Pipeline.Driver` to avoid
excessive disk operations and repeated hash re-computations
* [x] Recompile a module if one of its dependencies needs recompilation
and contains functions that are always inlined.
* [x] Fix identifier dependencies for mutual block creation in
`Internal.fromConcrete`
- Fixed by making textually later definitions depend on earlier ones.
- Now instances are used for resolution only after the textual point of
their definition.
- Similarly, type synonyms will be unfolded only after the textual point
of their definition.
* [x] Fix CLI
* [x] Fix REPL
* [x] Fix highlighting
* [x] Fix HTML generation
* [x] Adapt test suite
2023-12-30 20:15:35 +01:00
..
Clean Use Package.juvix in the global project (#2499) 2023-11-06 11:49:43 +00:00
Compile Add support for Literate Juvix Markdown (#2448) 2023-11-10 13:55:36 +01:00
Dependencies Per-module compilation (#2468) 2023-12-30 20:15:35 +01:00
Dev Per-module compilation (#2468) 2023-12-30 20:15:35 +01:00
Doctor Global offline flag (#2335) 2023-09-05 17:11:17 +02:00
Eval Add support for Literate Juvix Markdown (#2448) 2023-11-10 13:55:36 +01:00
Extra Read Package on demand and cache it (#2548) 2023-12-06 18:24:59 +01:00
Format Add FileExt type (#2467) 2023-10-25 12:02:12 +02:00
Html Add support for Literate Juvix Markdown (#2448) 2023-11-10 13:55:36 +01:00
Init Add PackageDescription.Basic module Package variant (#2509) 2023-11-13 17:36:18 +00:00
Markdown Add support for Literate Juvix Markdown (#2448) 2023-11-10 13:55:36 +01:00
Repl Per-module compilation (#2468) 2023-12-30 20:15:35 +01:00
Typecheck Add support for Literate Juvix Markdown (#2448) 2023-11-10 13:55:36 +01:00
Base.hs Refactor CLI (#1527) 2022-09-14 16:16:15 +02:00
Clean.hs Use Package.juvix in the global project (#2499) 2023-11-06 11:49:43 +00:00
Compile.hs Per-module compilation (#2468) 2023-12-30 20:15:35 +01:00
Dependencies.hs Read Package on demand and cache it (#2548) 2023-12-06 18:24:59 +01:00
Dev.hs Read Package on demand and cache it (#2548) 2023-12-06 18:24:59 +01:00
Doctor.hs Use a versioned documentation link in the doctor output (#2475) 2023-10-26 11:51:48 +01:00
Eval.hs Per-module compilation (#2468) 2023-12-30 20:15:35 +01:00
Format.hs Per-module compilation (#2468) 2023-12-30 20:15:35 +01:00
Html.hs Per-module compilation (#2468) 2023-12-30 20:15:35 +01:00
Init.hs Per-module compilation (#2468) 2023-12-30 20:15:35 +01:00
Markdown.hs Per-module compilation (#2468) 2023-12-30 20:15:35 +01:00
Repl.hs Per-module compilation (#2468) 2023-12-30 20:15:35 +01:00
Typecheck.hs Read Package on demand and cache it (#2548) 2023-12-06 18:24:59 +01:00