summaryrefslogtreecommitdiff
path: root/Upgrade.hs
diff options
context:
space:
mode:
authorGravatar Joey Hess <joey@kitenet.net>2011-01-31 23:27:53 -0400
committerGravatar Joey Hess <joey@kitenet.net>2011-01-31 23:27:53 -0400
commit755029ae0e46e9d4ca2b7416d5a67b2be34eec0a (patch)
treee010cd227fce6a994c25ff1845d802c6e29ef838 /Upgrade.hs
parent27056daccd1a2f541cd104a835a32523a532d4da (diff)
use forM_ in a few places
Diffstat (limited to 'Upgrade.hs')
-rw-r--r--Upgrade.hs4
1 files changed, 2 insertions, 2 deletions
diff --git a/Upgrade.hs b/Upgrade.hs
index 9c5a57a0c..b584b2666 100644
--- a/Upgrade.hs
+++ b/Upgrade.hs
@@ -10,7 +10,7 @@ module Upgrade where
import System.IO.Error (try)
import System.Directory
import Control.Monad.State (liftIO)
-import Control.Monad (filterM)
+import Control.Monad (filterM, forM_)
import System.Posix.Files
import System.FilePath
@@ -41,7 +41,7 @@ upgradeFrom0 = do
-- do the reorganisation of the files
let olddir = gitAnnexDir g
keys <- getKeysPresent0' olddir
- mapM_ (\k -> moveAnnex k $ olddir </> keyFile k) keys
+ forM_ keys $ \k -> moveAnnex k $ olddir </> keyFile k
-- update the symlinks to the files
files <- liftIO $ Git.inRepo g [Git.workTree g]