aboutsummaryrefslogtreecommitdiff
path: root/Utility/Matcher.hs
diff options
context:
space:
mode:
authorGravatar Joey Hess <joey@kitenet.net>2012-12-06 13:22:16 -0400
committerGravatar Joey Hess <joey@kitenet.net>2012-12-06 13:22:16 -0400
commit2a04e215e10469ee3bab5d1a5d6d76b0c35cc46c (patch)
tree41328caa30ae494316d20e1a5e5909b29aa94516 /Utility/Matcher.hs
parent53304252ca5483ce80f5a66bb74cc9f0732f65d7 (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/Matcher.hs')
-rw-r--r--Utility/Matcher.hs12
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