From ad5621ec0bc4664e918d95a481dcdac58fb69107 Mon Sep 17 00:00:00 2001 From: Martin Myrseth Date: Tue, 14 May 2024 22:11:51 +0200 Subject: [PATCH] fix: Lints from `hlint` --- src/Nixon/Config/Options.hs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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"))