mirror of
https://github.com/anoma/juvix.git
synced 2024-12-21 05:41:49 +03:00
0ef464668d
This PR adds support for all recent changes in GEB introduced by: - https://github.com/anoma/geb/pull/70 - Closes #1814 Summary: - [x] Add LeftInj, RightIng, and Absurd types in GEB language - [x] Fix FromCore translation for the new data types and minor code styling issues. - [x] Fix GEB-STLC type inference and checking - [X] Add support for evaluating typed morphism "(typed ...)" in the Geb repl and .geb files. - [x] Simplify a bit the Geb parser - [x] Fix `dev geb check` command - [x] Type check files in `tests/Geb/positive` After this PR, we should include interval location for Geb terms to facility debugging type-checking errors.
22 lines
676 B
Haskell
22 lines
676 B
Haskell
module Commands.Dev.Geb
|
|
( module Commands.Dev.Geb,
|
|
module Commands.Dev.Geb.Options,
|
|
)
|
|
where
|
|
|
|
import Commands.Base
|
|
import Commands.Dev.Geb.Check as Infer
|
|
import Commands.Dev.Geb.Eval as Eval
|
|
import Commands.Dev.Geb.Infer as Check
|
|
import Commands.Dev.Geb.Options
|
|
import Commands.Dev.Geb.Read as Read
|
|
import Commands.Dev.Geb.Repl as Repl
|
|
|
|
runCommand :: forall r. (Members '[Embed IO, App] r) => GebCommand -> Sem r ()
|
|
runCommand = \case
|
|
GebCommandRepl opts -> Repl.runCommand opts
|
|
GebCommandEval opts -> Eval.runCommand opts
|
|
GebCommandRead opts -> Read.runCommand opts
|
|
GebCommandInfer opts -> Infer.runCommand opts
|
|
GebCommandCheck opts -> Check.runCommand opts
|