summaryrefslogtreecommitdiff
path: root/Backend
diff options
context:
space:
mode:
authorGravatar Joey Hess <joey@kitenet.net>2011-01-30 12:01:56 -0400
committerGravatar Joey Hess <joey@kitenet.net>2011-01-30 12:13:34 -0400
commit1b0edc1ab2f3516dc532b0cf4ea39a0af2f6392f (patch)
tree2f552619d5f283672c79d405c709661a6046c8ec /Backend
parent96e561bc477bd0a4bbffb769369fabe1e1e1982f (diff)
idiomatic elem
Diffstat (limited to 'Backend')
-rw-r--r--Backend/File.hs6
1 files changed, 3 insertions, 3 deletions
diff --git a/Backend/File.hs b/Backend/File.hs
index 68dd4db27..d76cd2939 100644
--- a/Backend/File.hs
+++ b/Backend/File.hs
@@ -108,7 +108,7 @@ checkRemoveKey key numcopiesM = do
| length have >= need = return True
| otherwise = do
u <- getUUID r
- let dup = elem u have
+ let dup = u `elem` have
haskey <- Remotes.inAnnex r key
case (dup, haskey) of
(False, Right True) -> findcopies need (u:have) rs bad
@@ -139,7 +139,7 @@ showLocations key exclude = do
ppuuidsskipped <- prettyPrintUUIDs uuidsskipped
showLongNote $ message ppuuidswanted ppuuidsskipped
where
- filteruuids list x = filter (\l -> not $ elem l x) list
+ filteruuids list x = filter (`notElem` x) list
message [] [] = "No other repository is known to contain the file."
message rs [] = "Try making some of these repositories available:\n" ++ rs
message [] us = "Also these untrusted repositories may contain the file:\n" ++ us
@@ -179,7 +179,7 @@ checkKeyNumCopies key file numcopies = do
locations <- liftIO $ keyLocations g key
untrusted <- trustGet UnTrusted
let untrustedlocations = intersect untrusted locations
- let safelocations = filter (\l -> not $ l `elem` untrusted) locations
+ let safelocations = filter (`notElem` untrusted) locations
let present = length safelocations
if present < needed
then do