summaryrefslogtreecommitdiff
path: root/Annex.hs
diff options
context:
space:
mode:
authorGravatar Joey Hess <joey@kitenet.net>2010-10-31 14:32:18 -0400
committerGravatar Joey Hess <joey@kitenet.net>2010-10-31 14:32:18 -0400
commit1576c48c80e4806b6021ec66f0dc645cf0a83486 (patch)
treed22b6f821f8367b678663fe49616cb7047ce60b1 /Annex.hs
parentdc12ce762e521a5db052346eb67590ca62e4f2f6 (diff)
more Wall cleaning
Diffstat (limited to 'Annex.hs')
-rw-r--r--Annex.hs5
1 files changed, 3 insertions, 2 deletions
diff --git a/Annex.hs b/Annex.hs
index 60ae91708..63eef5158 100644
--- a/Annex.hs
+++ b/Annex.hs
@@ -39,15 +39,16 @@ new gitrepo allbackends = do
Internals.flags = M.empty,
Internals.repoqueue = GitQueue.empty
}
- (_,s') <- Annex.run s (prep gitrepo)
+ (_,s') <- Annex.run s prep
return s'
where
- prep gitrepo = do
+ prep = do
-- read git config and update state
gitrepo' <- liftIO $ Git.configRead gitrepo
Annex.gitRepoChange gitrepo'
{- performs an action in the Annex monad -}
+run :: AnnexState -> StateT AnnexState IO a -> IO (a, AnnexState)
run state action = runStateT (action) state
{- Returns the git repository being acted on -}