import Data.Default in Common

This commit is contained in:
Joey Hess 2015-01-28 16:11:28 -04:00
parent 0fd5f257d0
commit e8c376e0ad
19 changed files with 48 additions and 54 deletions

View file

@ -110,10 +110,10 @@ inAnnexSafe key = inAnnex' (fromMaybe False) (Just False) go key
( checkOr is_unlocked lockfile
, return is_missing
)
checkOr def lockfile = do
checkOr d lockfile = do
v <- checkLocked lockfile
return $ case v of
Nothing -> def
Nothing -> d
Just True -> is_locked
Just False -> is_unlocked
#else