-
Notifications
You must be signed in to change notification settings - Fork 57
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
38028d2
commit d69d8c6
Showing
76 changed files
with
2,321 additions
and
2,919 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
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) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
module Commands.Dev.Internal.Reachability.Options where | ||
|
||
import CommonOptions | ||
|
||
newtype InternalReachabilityOptions = InternalReachabilityOptions | ||
{ _internalReachabilityInputFile :: AppPath File | ||
} | ||
deriving stock (Data) | ||
|
||
makeLenses ''InternalReachabilityOptions | ||
|
||
parseInternalReachability :: Parser InternalReachabilityOptions | ||
parseInternalReachability = do | ||
_internalReachabilityInputFile <- parseInputJuvixFile | ||
pure InternalReachabilityOptions {..} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.