1
1
mirror of https://github.com/anoma/juvix.git synced 2024-12-15 01:52:11 +03:00
juvix/app/Commands
Paul Cadman 108ccf7dcf
Do not filter unreachable symbols when compiling for REPL (#2172)
Say we have a module that import/open the Prelude:

Test.juvix
```
module Test;
import Stdlib.Prelude open;
```

When the module is compiled, we have a step in the compiler pipeline
which filters out unreachable symbols. For this module all symbols are
filtered because the module contains no definitions.

So if the module is loaded in the REPL, no symbols will be available to
process through the evaluator. The REPL is a place to explore the
symbols in the module so (like with Haskell's GHCi) it would be useful
if all symbols were available in the REPL session. That's what this PR
implements.

* Closes https://github.com/anoma/juvix/issues/2159

---------

Co-authored-by: Jan Mas Rovira <janmasrovira@gmail.com>
2023-06-05 16:52:52 +01:00
..
Compile Fix: add supported targets as option for compile commands (#1983) 2023-04-13 14:16:07 +02:00
Dev Finish the new pretty printing algorithm and delete the old one (#2151) 2023-06-02 13:02:35 +02:00
Doctor Use theJUVIX_LLVM_DIST_PATH environment variable to search for the clang executable (#2152) 2023-06-01 12:18:31 +02:00
Eval Print JuvixCore correctly (#1875) 2023-03-15 16:41:39 +01:00
Extra Use theJUVIX_LLVM_DIST_PATH environment variable to search for the clang executable (#2152) 2023-06-01 12:18:31 +02:00
Format Make format command's filepath optional (#2028) 2023-04-27 17:33:08 +02:00
Html Support more paths (#2000) 2023-04-19 15:56:48 +01:00
Repl Add :def command to the repl (#2119) 2023-05-30 10:19:09 +02:00
Typecheck Support basic dependencies (#1622) 2022-12-20 13:05:40 +01:00
Base.hs Refactor CLI (#1527) 2022-09-14 16:16:15 +02:00
Clean.hs Add juvix clean to remove project build artifact directory (#2018) 2023-04-21 14:21:31 +02:00
Compile.hs Add main field to juvix.yaml (#2120) 2023-05-24 15:42:20 +02:00
Dev.hs Add juvix dev repl command (#1941) 2023-03-31 00:57:44 +02:00
Doctor.hs Use theJUVIX_LLVM_DIST_PATH environment variable to search for the clang executable (#2152) 2023-06-01 12:18:31 +02:00
Eval.hs Test core to geb translation (#1865) 2023-03-27 15:32:03 +02:00
Format.hs Add Semigroup instance for AnsiText (#2140) 2023-05-31 08:53:08 +01:00
Html.hs Support more paths (#2000) 2023-04-19 15:56:48 +01:00
Init.hs Add main field to juvix.yaml (#2120) 2023-05-24 15:42:20 +02:00
Repl.hs Do not filter unreachable symbols when compiling for REPL (#2172) 2023-06-05 16:52:52 +01:00
Typecheck.hs Update typecheck command to check for coverage (#1952) 2023-03-30 19:36:38 +02:00