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 | 2b79e6fe08233325123d4d6fa9c3cba6923947d2 (patch) | |
tree | bcad7cb23c1a6214fc208f1a9791e4ef90983eba /Types/Difference.hs | |
parent | 32aa42de7d34ff2b7f55341d880021c2ff21e731 (diff) |
a few hlints
Diffstat (limited to 'Types/Difference.hs')
-rw-r--r-- | Types/Difference.hs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Types/Difference.hs b/Types/Difference.hs index 74bac0aca5..064703bf7d 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 |