mirror of
https://github.com/anoma/juvix.git
synced 2024-12-14 17:32:00 +03:00
d69d8c6eca
- Closes #2002 - Closes #1690 - Closes #2224 - Closes #2237
13 lines
560 B
Haskell
13 lines
560 B
Haskell
module Commands.Dev.Internal.Reachability where
|
|
|
|
import Commands.Base
|
|
import Commands.Dev.Internal.Reachability.Options
|
|
import Juvix.Compiler.Internal.Pretty qualified as Internal
|
|
import Juvix.Compiler.Internal.Translation.FromConcrete qualified as Internal
|
|
|
|
runCommand :: (Members '[Embed IO, App] r) => InternalReachabilityOptions -> Sem r ()
|
|
runCommand opts = do
|
|
globalOpts <- askGlobalOptions
|
|
depInfo <- (^. Internal.resultDepInfo) <$> runPipeline (opts ^. internalReachabilityInputFile) upToInternal
|
|
renderStdOut (Internal.ppOut globalOpts depInfo)
|