diff options
author | Joey Hess <joey@kitenet.net> | 2010-10-14 03:18:11 -0400 |
---|---|---|
committer | Joey Hess <joey@kitenet.net> | 2010-10-14 03:18:11 -0400 |
commit | 6f3572e47f57bbe5cc76b58c8bcdc9c6c455dce0 (patch) | |
tree | 4f7f31a703051b9df3986e2a3e7dbfb146e2e032 /Backend.hs | |
parent | 0b55bd05de7b83a474ea58e9d45676934667f4bd (diff) |
more reorg, spiffed up state monad
Diffstat (limited to 'Backend.hs')
-rw-r--r-- | Backend.hs | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/Backend.hs b/Backend.hs index 251e436c7..2829fef9d 100644 --- a/Backend.hs +++ b/Backend.hs @@ -29,16 +29,17 @@ import System.Posix.Files import BackendList import Locations import qualified GitRepo as Git +import qualified Annex import Utility -import AbstractTypes +import Types import BackendTypes {- Attempts to store a file in one of the backends. -} storeFile :: FilePath -> Annex (Maybe (Key, Backend)) storeFile file = do - g <- gitAnnex + g <- Annex.gitRepo let relfile = Git.relative g file - b <- backendsAnnex + b <- Annex.backends storeFile' b file relfile storeFile' [] _ _ = return Nothing storeFile' (b:bs) file relfile = do |