Skip to content

Commit

Permalink
Simplify the definition of ‘optParserInfo’
Browse files Browse the repository at this point in the history
  • Loading branch information
mrkkrp committed Dec 11, 2020
1 parent 9cad22a commit a63ded8
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions app/Main.hs
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ formatOne mode config mpath = withPrettyOrmoluExceptions (cfgColorMode config) $
return (ExitFailure 100)

----------------------------------------------------------------------------
-- Command line options parsing.
-- Command line options parsing

data Opts = Opts
{ -- | Mode of operation
Expand All @@ -122,10 +122,7 @@ data Mode
optsParserInfo :: ParserInfo Opts
optsParserInfo =
info (helper <*> ver <*> exts <*> optsParser) . mconcat $
[ fullDesc,
progDesc "",
header ""
]
[fullDesc]
where
ver :: Parser (a -> a)
ver =
Expand Down

0 comments on commit a63ded8

Please sign in to comment.