1
1
mirror of https://github.com/anoma/juvix.git synced 2024-09-20 13:07:20 +03:00
juvix/app/Commands/Parse.hs
janmasrovira a24e0379d3
87 refactor warning related stuff (#91)
* remove all field selectors

* add local type signatures

* delete Wno-monomorphism-restriction and fix warnings

* [tests] inline two error messages

* remove Wno-missing-exported-signatures

* remove Wno-all-missed-specialisations

* remove Wno-missed-specialisations
2022-05-06 11:48:07 +02:00

25 lines
521 B
Haskell

{-# LANGUAGE ApplicativeDo #-}
module Commands.Parse where
import Commands.Extra
import MiniJuvix.Prelude hiding (Doc)
import Options.Applicative
data ParseOptions = ParseOptions
{ _parseInputFile :: FilePath,
_parseNoPrettyShow :: Bool
}
makeLenses ''ParseOptions
parseParse :: Parser ParseOptions
parseParse = do
_parseInputFile <- parserInputFile
_parseNoPrettyShow <-
switch
( long "no-pretty-show"
<> help "Disable formatting of the Haskell AST"
)
pure ParseOptions {..}