mirror of
https://github.com/anoma/juvix.git
synced 2024-12-18 12:21:46 +03:00
69594edc7b
This patch dramatically increases the efficiency of `juvix dev root`, which was unnecessarily parsing all dependencies included in the `Package.juvix` file. Other commands that do not require the `Package` will also be faster. It also refactors some functions so that the `TaggedLock` effect is run globally. I've added `singletons-base` as a dependency so we can have `++` on the type level. We've tried to define a type family ourselves but inference was not working properly.
10 lines
309 B
Haskell
10 lines
309 B
Haskell
module Commands.Typecheck where
|
|
|
|
import Commands.Base
|
|
import Commands.Typecheck.Options
|
|
|
|
runCommand :: (Members '[Embed IO, TaggedLock, App] r) => TypecheckOptions -> Sem r ()
|
|
runCommand localOpts = do
|
|
void (runPipeline (localOpts ^. typecheckInputFile) upToCoreTypecheck)
|
|
say "Well done! It type checks"
|