1
1
mirror of https://github.com/anoma/juvix.git synced 2025-01-08 08:39:26 +03:00
juvix/app/Commands/Dev/Parse/Options.hs

22 lines
459 B
Haskell
Raw Normal View History

2022-09-14 17:16:15 +03:00
module Commands.Dev.Parse.Options where
import CommonOptions
data ParseOptions = ParseOptions
{ _parseNoPrettyShow :: Bool,
_parseInputFile :: Path
}
deriving stock (Data)
makeLenses ''ParseOptions
parseParse :: Parser ParseOptions
parseParse = do
_parseNoPrettyShow <-
switch
( long "no-pretty-show"
<> help "Disable formatting of the Haskell AST"
)
_parseInputFile <- parseInputJuvixFile
pure ParseOptions {..}