1
1
mirror of https://github.com/anoma/juvix.git synced 2024-12-15 18:13:56 +03:00
juvix/app/Commands/Scope.hs

20 lines
427 B
Haskell
Raw Normal View History

module Commands.Scope where
import MiniJuvix.Prelude hiding (Doc)
import Options.Applicative
newtype ScopeOptions = ScopeOptions
{ _scopeInlineImports :: Bool
}
makeLenses ''ScopeOptions
parseScope :: Parser ScopeOptions
parseScope = do
_scopeInlineImports <-
switch
( long "inline-imports"
<> help "Show the code of imported modules next to the import statement"
)
pure ScopeOptions {..}