1
1
mirror of https://github.com/anoma/juvix.git synced 2024-09-21 05:28:17 +03:00
juvix/app/Commands/Compile/Wasi.hs
Jan Mas Rovira 65176a333d
refactor --target into subcommands for dev tree compile and other improvements (#2713)
- 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.
2024-04-16 17:32:44 +02:00

13 lines
307 B
Haskell

module Commands.Compile.Wasi where
import Commands.Base
import Commands.Compile.NativeWasiHelper as Helper
import Commands.Compile.Wasi.Options
runCommand ::
forall r.
(Members '[App, TaggedLock, EmbedIO] r) =>
WasiOptions 'InputMain ->
Sem r ()
runCommand = Helper.runCommand . wasiHelperOptions