2022-08-30 12:24:15 +03:00
|
|
|
module Commands.Dev.Core where
|
|
|
|
|
2022-09-14 17:16:15 +03:00
|
|
|
import Commands.Base
|
2023-01-09 20:21:30 +03:00
|
|
|
import Commands.Dev.Core.Asm as Asm
|
|
|
|
import Commands.Dev.Core.Compile as Compile
|
2022-09-14 17:16:15 +03:00
|
|
|
import Commands.Dev.Core.Eval as Eval
|
2023-02-10 14:37:28 +03:00
|
|
|
import Commands.Dev.Core.FromConcrete as FromConcrete
|
2023-05-15 19:01:40 +03:00
|
|
|
import Commands.Dev.Core.Normalize as Normalize
|
2022-09-14 17:16:15 +03:00
|
|
|
import Commands.Dev.Core.Options
|
|
|
|
import Commands.Dev.Core.Read as Read
|
|
|
|
import Commands.Dev.Core.Repl as Repl
|
2023-01-09 20:21:30 +03:00
|
|
|
import Commands.Dev.Core.Strip as Strip
|
2022-09-14 17:16:15 +03:00
|
|
|
|
2024-02-13 21:00:01 +03:00
|
|
|
runCommand :: forall r. (Members '[EmbedIO, App, TaggedLock] r) => CoreCommand -> Sem r ()
|
2022-09-14 17:16:15 +03:00
|
|
|
runCommand = \case
|
|
|
|
Repl opts -> Repl.runCommand opts
|
|
|
|
Eval opts -> Eval.runCommand opts
|
2023-05-15 19:01:40 +03:00
|
|
|
Normalize opts -> Normalize.runCommand opts
|
2022-09-14 17:16:15 +03:00
|
|
|
Read opts -> Read.runCommand opts
|
2023-02-10 14:37:28 +03:00
|
|
|
FromConcrete opts -> FromConcrete.runCommand opts
|
2023-01-09 20:21:30 +03:00
|
|
|
Strip opts -> Strip.runCommand opts
|
|
|
|
CoreAsm opts -> Asm.runCommand opts
|
|
|
|
CoreCompile opts -> Compile.runCommand opts
|