mirror of
https://github.com/anoma/juvix.git
synced 2024-09-21 05:28:17 +03:00
65176a333d
- refactor `--target` into subcommands for `dev tree compile`. - prepend `App` to all `CompileTarget` constructors to avoid name clashes with `Target`. - parameterize compile options type with the input kind. The input kind indicates the expected file extension of the input file. If the input file is a .juvix file, then it is optional, otherwise it is mandatory. - Add `AppError MegaparsecError` instance and simplify some related code.
13 lines
315 B
Haskell
13 lines
315 B
Haskell
module Commands.Compile.Native where
|
|
|
|
import Commands.Base
|
|
import Commands.Compile.Native.Options
|
|
import Commands.Compile.NativeWasiHelper as Helper
|
|
|
|
runCommand ::
|
|
forall r.
|
|
(Members '[App, TaggedLock, EmbedIO] r) =>
|
|
NativeOptions 'InputMain ->
|
|
Sem r ()
|
|
runCommand = Helper.runCommand . nativeHelperOptions
|