subdir
This commit is contained in:
parent
7117702fdd
commit
0f12bd16d8
4 changed files with 11 additions and 11 deletions
|
@ -1,14 +1,14 @@
|
||||||
{- git-annex "checksum" backend
|
{- git-annex "checksum" backend
|
||||||
- -}
|
- -}
|
||||||
|
|
||||||
module BackendChecksum (backend) where
|
module Backend.Checksum (backend) where
|
||||||
|
|
||||||
import qualified BackendFile
|
import qualified Backend.File
|
||||||
import Data.Digest.Pure.SHA
|
import Data.Digest.Pure.SHA
|
||||||
import BackendTypes
|
import BackendTypes
|
||||||
|
|
||||||
-- based on BackendFile just with a different key type
|
-- based on BackendFile just with a different key type
|
||||||
backend = BackendFile.backend {
|
backend = Backend.File.backend {
|
||||||
name = "checksum",
|
name = "checksum",
|
||||||
getKey = keyValue
|
getKey = keyValue
|
||||||
}
|
}
|
|
@ -1,7 +1,7 @@
|
||||||
{- git-annex "file" backend
|
{- git-annex "file" backend
|
||||||
- -}
|
- -}
|
||||||
|
|
||||||
module BackendFile (backend) where
|
module Backend.File (backend) where
|
||||||
|
|
||||||
import Control.Monad.State
|
import Control.Monad.State
|
||||||
import System.IO
|
import System.IO
|
|
@ -1,7 +1,7 @@
|
||||||
{- git-annex "url" backend
|
{- git-annex "url" backend
|
||||||
- -}
|
- -}
|
||||||
|
|
||||||
module BackendUrl (backend) where
|
module Backend.Url (backend) where
|
||||||
|
|
||||||
import Control.Monad.State
|
import Control.Monad.State
|
||||||
import System.Cmd
|
import System.Cmd
|
|
@ -10,13 +10,13 @@ module BackendList (
|
||||||
import BackendTypes
|
import BackendTypes
|
||||||
|
|
||||||
-- When adding a new backend, import it here and add it to the list.
|
-- When adding a new backend, import it here and add it to the list.
|
||||||
import qualified BackendFile
|
import qualified Backend.File
|
||||||
import qualified BackendChecksum
|
import qualified Backend.Checksum
|
||||||
import qualified BackendUrl
|
import qualified Backend.Url
|
||||||
supportedBackends =
|
supportedBackends =
|
||||||
[ BackendFile.backend
|
[ Backend.File.backend
|
||||||
, BackendChecksum.backend
|
, Backend.Checksum.backend
|
||||||
, BackendUrl.backend
|
, Backend.Url.backend
|
||||||
]
|
]
|
||||||
|
|
||||||
{- Parses a string with a list of backend names into
|
{- Parses a string with a list of backend names into
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue