avoid build failure with older base

This commit is contained in:
Joey Hess 2019-05-23 12:16:57 -04:00
parent 16a2bed710
commit e1aa8b9001
No known key found for this signature in database
GPG key ID: DB12DB0FF05F8F38

View file

@ -82,7 +82,7 @@ preferredRequiredMapsLoad mktokens = do
return (pc', rc')
where
handleunknown = M.mapWithKey $ \u ->
fromRight (unknownMatcher u)
either (unknownMatcher u) id
preferredRequiredMapsLoad' :: (PreferredContentData -> [ParseToken (MatchFiles Annex)]) -> Annex (M.Map UUID (Either String (FileMatcher Annex)), M.Map UUID (Either String (FileMatcher Annex)))
preferredRequiredMapsLoad' mktokens = do