2022-08-03 14:20:40 +03:00
|
|
|
module Commands.Dev.Internal where
|
|
|
|
|
2022-09-14 17:16:15 +03:00
|
|
|
import Commands.Base
|
|
|
|
import Commands.Dev.Internal.Arity qualified as Arity
|
2022-11-07 16:47:56 +03:00
|
|
|
import Commands.Dev.Internal.CoreEval qualified as InternalCoreEval
|
2022-09-14 17:16:15 +03:00
|
|
|
import Commands.Dev.Internal.Options
|
|
|
|
import Commands.Dev.Internal.Pretty qualified as InternalPretty
|
|
|
|
import Commands.Dev.Internal.Typecheck qualified as InternalTypecheck
|
|
|
|
|
|
|
|
runCommand :: Members '[Embed IO, App] r => InternalCommand -> Sem r ()
|
|
|
|
runCommand = \case
|
|
|
|
Pretty opts -> InternalPretty.runCommand opts
|
|
|
|
Arity opts -> Arity.runCommand opts
|
|
|
|
TypeCheck opts -> InternalTypecheck.runCommand opts
|
2022-11-07 16:47:56 +03:00
|
|
|
CoreEval opts -> InternalCoreEval.runCommand opts
|