update
This commit is contained in:
parent
912d10e78b
commit
64b5167b0f
1 changed files with 3 additions and 3 deletions
6
Types.hs
6
Types.hs
|
@ -1,7 +1,8 @@
|
||||||
{- git-annex core data types -}
|
{- git-annex core data types -}
|
||||||
|
|
||||||
module Types (
|
module Types (
|
||||||
Annex(..),
|
Annex,
|
||||||
|
AnnexState,
|
||||||
makeAnnexState,
|
makeAnnexState,
|
||||||
runAnnexState,
|
runAnnexState,
|
||||||
gitAnnex,
|
gitAnnex,
|
||||||
|
@ -9,7 +10,6 @@ module Types (
|
||||||
backendsAnnex,
|
backendsAnnex,
|
||||||
backendsAnnexChange,
|
backendsAnnexChange,
|
||||||
|
|
||||||
AnnexState(..),
|
|
||||||
Key(..),
|
Key(..),
|
||||||
Backend(..)
|
Backend(..)
|
||||||
) where
|
) where
|
||||||
|
@ -34,7 +34,7 @@ makeAnnexState g = AnnexState { repo = g, backends = [] }
|
||||||
-- performs an action in the Annex monad
|
-- performs an action in the Annex monad
|
||||||
runAnnexState state action = runStateT (action) state
|
runAnnexState state action = runStateT (action) state
|
||||||
|
|
||||||
-- state accessors
|
-- Annex monad state accessors
|
||||||
gitAnnex :: Annex GitRepo
|
gitAnnex :: Annex GitRepo
|
||||||
gitAnnex = do
|
gitAnnex = do
|
||||||
state <- get
|
state <- get
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue