diff options
author | Joey Hess <joey@kitenet.net> | 2010-10-10 15:04:18 -0400 |
---|---|---|
committer | Joey Hess <joey@kitenet.net> | 2010-10-10 15:04:18 -0400 |
commit | cc235192353561a374c431485c6c3834659e0fa6 (patch) | |
tree | 6c092eece822fea609a05acb92850669223c6508 /BackendUrl.hs | |
parent | f4d2a05e86df464790fb183148717e7ac7f49cda (diff) |
update
Diffstat (limited to 'BackendUrl.hs')
-rw-r--r-- | BackendUrl.hs | 15 |
1 files changed, 11 insertions, 4 deletions
diff --git a/BackendUrl.hs b/BackendUrl.hs index f95c53bbf..9b4c83d61 100644 --- a/BackendUrl.hs +++ b/BackendUrl.hs @@ -7,11 +7,18 @@ import Backend backend = Backend { name = "url", - keyvalue = keyValue, - retrievekey = downloadUrl + getKey = keyValue, + storeFileKey = dummyStore, + retrieveKeyFile = downloadUrl } -- cannot generate url from filename -keyValue k = Nothing +keyValue :: FilePath -> IO (Maybe Key) +keyValue k = return Nothing -downloadUrl k = error "unimplemented" +-- cannot store to urls +dummyStore :: FilePath -> Key -> IO (Bool) +dummyStore file url = return False + +downloadUrl :: IO Key -> FilePath -> IO (Bool) +downloadUrl url file = error "unimplemented" |