mapM_ = sequence_ . map

This commit is contained in:
Joey Hess 2017-02-27 14:48:07 -04:00
parent 942e0174b3
commit 31275754f5
No known key found for this signature in database
GPG key ID: C910D9222512E3C7

View file

@ -20,5 +20,5 @@ globalSetter :: (v -> Annex ()) -> Parser v -> GlobalOption
globalSetter setter parser = DeferredParse . setter <$> parser
combineGlobalOptions :: [GlobalOption] -> Parser GlobalSetter
combineGlobalOptions l = DeferredParse . sequence_ . map getParsed
combineGlobalOptions l = DeferredParse . mapM_ getParsed
<$> many (foldl1 (<|>) l)