mapM_ = sequence_ . map
This commit is contained in:
parent
942e0174b3
commit
31275754f5
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue