simplify evals
This commit is contained in:
parent
f3e4633e35
commit
00d4c7cd01
3 changed files with 5 additions and 3 deletions
3
Annex.hs
3
Annex.hs
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue