diff options
author | Joey Hess <joey@kitenet.net> | 2014-01-18 14:51:55 -0400 |
---|---|---|
committer | Joey Hess <joey@kitenet.net> | 2014-01-18 14:51:55 -0400 |
commit | 842ca9c4b684ec21b9e5a99b3742db5f36a1440f (patch) | |
tree | b198d4b4d66dd9497820f0149906df3a5a37e0cd /Annex.hs | |
parent | beb9bfa4454c46f62e6ecb4bc180b4a33cce6370 (diff) |
improve matcher data type to allow matching Keys, instead of just files (no behavior changes)
Diffstat (limited to 'Annex.hs')
-rw-r--r-- | Annex.hs | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -75,7 +75,7 @@ newtype Annex a = Annex { runAnnex :: ReaderT (MVar AnnexState) IO a } ) type Matcher a = Either [Utility.Matcher.Token a] (Utility.Matcher.Matcher a) -type PreferredContentMap = M.Map UUID (Utility.Matcher.Matcher (S.Set UUID -> FileInfo -> Annex Bool)) +type PreferredContentMap = M.Map UUID (Utility.Matcher.Matcher (S.Set UUID -> MatchInfo -> Annex Bool)) -- internal state storage data AnnexState = AnnexState @@ -95,7 +95,7 @@ data AnnexState = AnnexState , checkignorehandle :: Maybe (Maybe CheckIgnoreHandle) , forcebackend :: Maybe String , forcenumcopies :: Maybe Int - , limit :: Matcher (FileInfo -> Annex Bool) + , limit :: Matcher (MatchInfo -> Annex Bool) , uuidmap :: Maybe UUIDMap , preferredcontentmap :: Maybe PreferredContentMap , shared :: Maybe SharedRepository |