summaryrefslogtreecommitdiff
path: root/Annex.hs
diff options
context:
space:
mode:
authorGravatar Joey Hess <joey@kitenet.net>2011-03-15 22:04:50 -0400
committerGravatar Joey Hess <joey@kitenet.net>2011-03-15 22:04:50 -0400
commit4594bd51c1754bc7e1fdf03d83569aeea163e761 (patch)
treec8af87eac86a875d377dce04aa6933218ba817a1 /Annex.hs
parentf27df5e6584ed6a09be4a9bb1030be132c2d8051 (diff)
rename file
Diffstat (limited to 'Annex.hs')
-rw-r--r--Annex.hs10
1 files changed, 5 insertions, 5 deletions
diff --git a/Annex.hs b/Annex.hs
index dd3362b29..f8cfd0ec9 100644
--- a/Annex.hs
+++ b/Annex.hs
@@ -25,7 +25,7 @@ import Data.Maybe
import qualified GitRepo as Git
import qualified GitQueue
-import qualified BackendTypes
+import qualified BackendClass
import Utility
-- git-annex's monad
@@ -34,8 +34,8 @@ type Annex = StateT AnnexState IO
-- internal state storage
data AnnexState = AnnexState
{ repo :: Git.Repo
- , backends :: [BackendTypes.Backend Annex]
- , supportedBackends :: [BackendTypes.Backend Annex]
+ , backends :: [BackendClass.Backend Annex]
+ , supportedBackends :: [BackendClass.Backend Annex]
, repoqueue :: GitQueue.Queue
, quiet :: Bool
, force :: Bool
@@ -47,7 +47,7 @@ data AnnexState = AnnexState
, remotesread :: Bool
} deriving (Show)
-newState :: Git.Repo -> [BackendTypes.Backend Annex] -> AnnexState
+newState :: Git.Repo -> [BackendClass.Backend Annex] -> AnnexState
newState gitrepo allbackends = AnnexState
{ repo = gitrepo
, backends = []
@@ -64,7 +64,7 @@ newState gitrepo allbackends = AnnexState
}
{- Create and returns an Annex state object for the specified git repo. -}
-new :: Git.Repo -> [BackendTypes.Backend Annex] -> IO AnnexState
+new :: Git.Repo -> [BackendClass.Backend Annex] -> IO AnnexState
new gitrepo allbackends = do
gitrepo' <- liftIO $ Git.configRead gitrepo
return $ newState gitrepo' allbackends