diff options
author | Joey Hess <joey@kitenet.net> | 2012-12-06 13:22:16 -0400 |
---|---|---|
committer | Joey Hess <joey@kitenet.net> | 2012-12-06 13:22:16 -0400 |
commit | 2a04e215e10469ee3bab5d1a5d6d76b0c35cc46c (patch) | |
tree | 41328caa30ae494316d20e1a5e5909b29aa94516 /Utility | |
parent | 53304252ca5483ce80f5a66bb74cc9f0732f65d7 (diff) |
--auto fixes
* get/copy --auto: Transfer data even if it would exceed numcopies,
when preferred content settings want it.
* drop --auto: Fix dropping content when there are no preferred content
settings.
Diffstat (limited to 'Utility')
-rw-r--r-- | Utility/Matcher.hs | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/Utility/Matcher.hs b/Utility/Matcher.hs index edb4cadd6..3d525e2af 100644 --- a/Utility/Matcher.hs +++ b/Utility/Matcher.hs @@ -26,7 +26,7 @@ module Utility.Matcher ( match, matchM, matchMrun, - matchesAny + isEmpty ) where import Common @@ -105,9 +105,7 @@ matchMrun m run = go m go (MNot m1) = liftM not (go m1) go (MOp o) = run o -{- Checks is a matcher contains no limits, and so (presumably) matches - - anything. Note that this only checks the trivial case; it is possible - - to construct matchers that match anything but are more complicated. -} -matchesAny :: Matcher a -> Bool -matchesAny MAny = True -matchesAny _ = False +{- Checks if a matcher contains no limits. -} +isEmpty :: Matcher a -> Bool +isEmpty MAny = True +isEmpty _ = False |