diff options
author | Joey Hess <joey@kitenet.net> | 2011-09-19 01:03:16 -0400 |
---|---|---|
committer | Joey Hess <joey@kitenet.net> | 2011-09-19 01:03:16 -0400 |
commit | 6e80f195148ca689d85c6c8ed7f1a4f9720397a7 (patch) | |
tree | 01959d35864da9fa90125ffe8679b51cf08c0f17 /Limit.hs | |
parent | c31a6a9e100d9d9a822fd5e93f2a59d1562db579 (diff) |
golf
Diffstat (limited to 'Limit.hs')
-rw-r--r-- | Limit.hs | 5 |
1 files changed, 1 insertions, 4 deletions
@@ -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 |