Skip to content

Commit

Permalink
fix: Lints from hlint
Browse files Browse the repository at this point in the history
  • Loading branch information
myme committed May 14, 2024
1 parent 0a20410 commit ad5621e
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/Nixon/Config/Options.hs
Original file line number Diff line number Diff line change
Expand Up @@ -213,8 +213,10 @@ gcParser =

newParser :: Parser NewOpts
newParser =
NewOpts
<$> (fromMaybe "<name>" <$> optional (optText "name" 'n' "Command name"))
( NewOpts
. fromMaybe "<name>"
<$> optional (optText "name" 'n' "Command name")
)
<*> (fromMaybe "Description…" <$> optional (optText "desc" 'd' "Command description"))
<*> (fromMaybe Lang.Bash <$> optional (opt parseLang "lang" 'l' "Language: bash, JavaScript, Haskell, ..."))
<*> (fromMaybe "" <$> optional (optText "src" 's' "Command source code"))
Expand Down

0 comments on commit ad5621e

Please sign in to comment.