diff options
author | Joey Hess <joey@kitenet.net> | 2010-10-31 23:24:16 -0400 |
---|---|---|
committer | Joey Hess <joey@kitenet.net> | 2010-10-31 23:24:16 -0400 |
commit | 00d4c7cd01b6f6e863a22483b9ea20ca5260da43 (patch) | |
tree | 2c345eb26dfab3f8bc107764f20343fecb45014e /Annex.hs | |
parent | f3e4633e359d0a4afc7a0f90a89e4d276b597d84 (diff) |
simplify evals
Diffstat (limited to 'Annex.hs')
-rw-r--r-- | Annex.hs | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -8,6 +8,7 @@ module Annex ( new, run, + eval, gitRepo, gitRepoChange, backends, @@ -50,6 +51,8 @@ new gitrepo allbackends = do {- performs an action in the Annex monad -} run :: AnnexState -> StateT AnnexState IO a -> IO (a, AnnexState) run state action = runStateT (action) state +eval :: AnnexState -> StateT AnnexState IO a -> IO a +eval state action = evalStateT (action) state {- Returns the git repository being acted on -} gitRepo :: Annex Git.Repo |