git-annex/BackendChecksum.hs
2010-10-10 15:27:49 -04:00

18 lines
367 B
Haskell

{- git-annex "checksum" backend
- -}
module BackendChecksum (backend) where
import Backend
import qualified BackendFile
import Data.Digest.Pure.SHA
-- based on BackendFile just with a different key type
backend = BackendFile.backend {
name = "checksum",
getKey = keyValue
}
--
keyValue :: FilePath -> IO (Maybe Key)
keyValue k = error "unimplemented" -- TODO