diff options
author | Joey Hess <joeyh@joeyh.name> | 2015-01-28 16:11:28 -0400 |
---|---|---|
committer | Joey Hess <joeyh@joeyh.name> | 2015-01-28 16:11:28 -0400 |
commit | 82161654830b0dc4187e9928555c9321ef61bb89 (patch) | |
tree | fef3edba1366663956ed484a9c9951616765d505 /Annex/Wanted.hs | |
parent | 7ca8ec00a7fcda71a08d22f06838424765a1b215 (diff) |
import Data.Default in Common
Diffstat (limited to 'Annex/Wanted.hs')
-rw-r--r-- | Annex/Wanted.hs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Annex/Wanted.hs b/Annex/Wanted.hs index 87b4377c2..ba7df0a9c 100644 --- a/Annex/Wanted.hs +++ b/Annex/Wanted.hs @@ -15,15 +15,15 @@ import qualified Data.Set as S {- Check if a file is preferred content for the local repository. -} wantGet :: Bool -> Maybe Key -> AssociatedFile -> Annex Bool -wantGet def key file = isPreferredContent Nothing S.empty key file def +wantGet d key file = isPreferredContent Nothing S.empty key file d {- Check if a file is preferred content for a remote. -} wantSend :: Bool -> Maybe Key -> AssociatedFile -> UUID -> Annex Bool -wantSend def key file to = isPreferredContent (Just to) S.empty key file def +wantSend d key file to = isPreferredContent (Just to) S.empty key file d {- Check if a file can be dropped, maybe from a remote. - Don't drop files that are preferred content. -} wantDrop :: Bool -> Maybe UUID -> Maybe Key -> AssociatedFile -> Annex Bool -wantDrop def from key file = do +wantDrop d from key file = do u <- maybe getUUID (return . id) from - not <$> isPreferredContent (Just u) (S.singleton u) key file def + not <$> isPreferredContent (Just u) (S.singleton u) key file d |