From: Michael Orlitzky Date: Mon, 15 Jul 2013 02:02:41 +0000 (-0400) Subject: Fix hlint suggestion. X-Git-Url: https://gitweb.michael.orlitzky.com/?a=commitdiff_plain;h=62b4e5715d31747ffd526c54f6697736dcbf163e;p=dead%2Fhalcyon.git Fix hlint suggestion. --- diff --git a/src/OptionalConfiguration.hs b/src/OptionalConfiguration.hs index 3018e9e..600647f 100644 --- a/src/OptionalConfiguration.hs +++ b/src/OptionalConfiguration.hs @@ -79,9 +79,10 @@ instance Monoid OptionalCfg where merge (Just _) (Just y) = Just y -- Use only the latter usernames if there are any. - all_usernames = if (null (usernames cfg2)) - then (usernames cfg1) - else (usernames cfg2) + all_usernames = + usernames $ if (null (usernames cfg2)) + then cfg1 + else cfg2 instance DCT.Configured [String] where convert (DCT.List xs) =