diff --git a/src/Nixon/Config/Options.hs b/src/Nixon/Config/Options.hs index e3f9f09..76cea68 100644 --- a/src/Nixon/Config/Options.hs +++ b/src/Nixon/Config/Options.hs @@ -213,8 +213,10 @@ gcParser = newParser :: Parser NewOpts newParser = - NewOpts - <$> (fromMaybe "" <$> optional (optText "name" 'n' "Command name")) + ( NewOpts + . fromMaybe "" + <$> 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"))