diff options
Diffstat (limited to 'Types/DeferredParse.hs')
-rw-r--r-- | Types/DeferredParse.hs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Types/DeferredParse.hs b/Types/DeferredParse.hs index 4c6e90175..c11b722bf 100644 --- a/Types/DeferredParse.hs +++ b/Types/DeferredParse.hs @@ -46,6 +46,6 @@ globalFlag setter = flag' (DeferredParse setter) globalSetter :: (v -> Annex ()) -> Parser v -> Parser GlobalSetter globalSetter setter parser = DeferredParse . setter <$> parser -globalSetters :: [Parser GlobalSetter] -> Parser GlobalSetter -globalSetters l = DeferredParse . sequence_ . map getParsed +combineGlobalSetters :: [Parser GlobalSetter] -> Parser GlobalSetter +combineGlobalSetters l = DeferredParse . sequence_ . map getParsed <$> many (foldl1 (<|>) l) |