golf
This commit is contained in:
parent
c31a6a9e10
commit
6e80f19514
1 changed files with 1 additions and 4 deletions
5
Limit.hs
5
Limit.hs
|
@ -9,7 +9,6 @@ module Limit where
|
||||||
|
|
||||||
import Text.Regex.PCRE.Light.Char8
|
import Text.Regex.PCRE.Light.Char8
|
||||||
import System.Path.WildMatch
|
import System.Path.WildMatch
|
||||||
import Control.Monad (filterM)
|
|
||||||
import Control.Applicative
|
import Control.Applicative
|
||||||
import Data.Maybe
|
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
|
{- 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. -}
|
- speed; once it's obtained the user-specified limits can't change. -}
|
||||||
getMatcher :: Annex (FilePath -> Annex Bool)
|
getMatcher :: Annex (FilePath -> Annex Bool)
|
||||||
getMatcher = do
|
getMatcher = Utility.Matcher.matchM <$> getMatcher'
|
||||||
m <- getMatcher'
|
|
||||||
return $ Utility.Matcher.matchM m
|
|
||||||
|
|
||||||
getMatcher' :: Annex (Utility.Matcher.Matcher (FilePath -> Annex Bool))
|
getMatcher' :: Annex (Utility.Matcher.Matcher (FilePath -> Annex Bool))
|
||||||
getMatcher' = do
|
getMatcher' = do
|
||||||
|
|
Loading…
Reference in a new issue