diff options
author | Joey Hess <joeyh@joeyh.name> | 2015-04-11 00:10:34 -0400 |
---|---|---|
committer | Joey Hess <joeyh@joeyh.name> | 2015-04-11 00:10:34 -0400 |
commit | e80353490db56e21d266a384141d39f50797e8e3 (patch) | |
tree | b6d7a46763e1d83f11fd57eaad36800d666f7a8f /Types | |
parent | 9becab4331b57a05369a3dcf225c57fd24f39e41 (diff) |
a few hlints
Diffstat (limited to 'Types')
-rw-r--r-- | Types/Difference.hs | 4 | ||||
-rw-r--r-- | Types/Distribution.hs | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/Types/Difference.hs b/Types/Difference.hs index 74bac0aca..064703bf7 100644 --- a/Types/Difference.hs +++ b/Types/Difference.hs @@ -62,8 +62,8 @@ readDifferences :: String -> Differences readDifferences = maybe UnknownDifferences Differences . readish getDifferences :: Git.Repo -> Differences -getDifferences r = Differences $ S.fromList $ catMaybes $ - map getmaybe [minBound .. maxBound] +getDifferences r = Differences $ S.fromList $ + mapMaybe getmaybe [minBound .. maxBound] where getmaybe d = case Git.Config.isTrue =<< Git.Config.getMaybe (differenceConfigKey d) r of Just True -> Just d diff --git a/Types/Distribution.hs b/Types/Distribution.hs index 2a44a1575..d4de7a79b 100644 --- a/Types/Distribution.hs +++ b/Types/Distribution.hs @@ -25,7 +25,7 @@ type GitAnnexVersion = String data AutoUpgrade = AskUpgrade | AutoUpgrade | NoAutoUpgrade deriving (Eq) -toAutoUpgrade :: (Maybe String) -> AutoUpgrade +toAutoUpgrade :: Maybe String -> AutoUpgrade toAutoUpgrade Nothing = AskUpgrade toAutoUpgrade (Just s) | s == "ask" = AskUpgrade |