mirror of
https://github.com/anoma/juvix.git
synced 2024-12-14 17:32:00 +03:00
01a44e436d
* Big refactor in process * remove unnecessary functions from the prelude * remove comments
20 lines
400 B
Haskell
20 lines
400 B
Haskell
module Commands.Dev.Parse where
|
|
|
|
import Juvix.Prelude hiding (Doc)
|
|
import Options.Applicative
|
|
|
|
newtype ParseOptions = ParseOptions
|
|
{ _parseNoPrettyShow :: Bool
|
|
}
|
|
|
|
makeLenses ''ParseOptions
|
|
|
|
parseParse :: Parser ParseOptions
|
|
parseParse = do
|
|
_parseNoPrettyShow <-
|
|
switch
|
|
( long "no-pretty-show"
|
|
<> help "Disable formatting of the Haskell AST"
|
|
)
|
|
pure ParseOptions {..}
|