summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Joey Hess <joey@kitenet.net>2011-09-19 01:03:16 -0400
committerGravatar Joey Hess <joey@kitenet.net>2011-09-19 01:03:16 -0400
commit6e80f195148ca689d85c6c8ed7f1a4f9720397a7 (patch)
tree01959d35864da9fa90125ffe8679b51cf08c0f17
parentc31a6a9e100d9d9a822fd5e93f2a59d1562db579 (diff)
golf
-rw-r--r--Limit.hs5
1 files changed, 1 insertions, 4 deletions
diff --git a/Limit.hs b/Limit.hs
index 602da7001..2482c8a65 100644
--- a/Limit.hs
+++ b/Limit.hs
@@ -9,7 +9,6 @@ module Limit where
import Text.Regex.PCRE.Light.Char8
import System.Path.WildMatch
-import Control.Monad (filterM)
import Control.Applicative
import Data.Maybe
@@ -29,9 +28,7 @@ limited = (not . Utility.Matcher.matchesAny) <$> getMatcher'
{- Gets a matcher for the user-specified limits. The matcher is cached for
- speed; once it's obtained the user-specified limits can't change. -}
getMatcher :: Annex (FilePath -> Annex Bool)
-getMatcher = do
- m <- getMatcher'
- return $ Utility.Matcher.matchM m
+getMatcher = Utility.Matcher.matchM <$> getMatcher'
getMatcher' :: Annex (Utility.Matcher.Matcher (FilePath -> Annex Bool))
getMatcher' = do