diff options
author | Joey Hess <joeyh@joeyh.name> | 2015-05-10 16:43:09 -0400 |
---|---|---|
committer | Joey Hess <joeyh@joeyh.name> | 2015-05-10 16:43:09 -0400 |
commit | 9d8a51e956b6ec9b3ee5a4fab8993aa5f2707ab4 (patch) | |
tree | 91dcb71bac456100d810e6843b0192132983cc75 /Annex/Perms.hs | |
parent | 0a9d6f10244d3cf7fa16b80e8a58319fcc737f36 (diff) |
rename traverse to walk since Data.Traversable is imported by default in ghc 7.10
Diffstat (limited to 'Annex/Perms.hs')
-rw-r--r-- | Annex/Perms.hs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Annex/Perms.hs b/Annex/Perms.hs index 3ae351d8c..06971173f 100644 --- a/Annex/Perms.hs +++ b/Annex/Perms.hs @@ -69,14 +69,14 @@ annexFileMode = withShared $ return . go {- Creates a directory inside the gitAnnexDir, including any parent - directories. Makes directories with appropriate permissions. -} createAnnexDirectory :: FilePath -> Annex () -createAnnexDirectory dir = traverse dir [] =<< top +createAnnexDirectory dir = walk dir [] =<< top where top = parentDir <$> fromRepo gitAnnexDir - traverse d below stop + walk d below stop | d `equalFilePath` stop = done | otherwise = ifM (liftIO $ doesDirectoryExist d) ( done - , traverse (parentDir d) (d:below) stop + , walk (parentDir d) (d:below) stop ) where done = forM_ below $ \p -> do |