summaryrefslogtreecommitdiff
path: root/Types/Remote.hs
diff options
context:
space:
mode:
authorGravatar Joey Hess <joey@kitenet.net>2012-09-21 14:50:14 -0400
committerGravatar Joey Hess <joey@kitenet.net>2012-09-21 14:50:14 -0400
commit226781c047a50747f5c60a6cf4920a43cd3a3a73 (patch)
tree0a5ead6c80110d533630db1875a9ebc10dea176d /Types/Remote.hs
parent6873d785f050cbfb2aa7bd67fcdb29ab585ec291 (diff)
unify types
Diffstat (limited to 'Types/Remote.hs')
-rw-r--r--Types/Remote.hs6
1 files changed, 3 insertions, 3 deletions
diff --git a/Types/Remote.hs b/Types/Remote.hs
index b89972fdd..d31d9a78f 100644
--- a/Types/Remote.hs
+++ b/Types/Remote.hs
@@ -37,8 +37,8 @@ instance Eq (RemoteTypeA a) where
type AssociatedFile = Maybe FilePath
{- An action that can be run repeatedly, feeding it the number of
- - bytes sent or retreived so far. -}
-type ProgressCallback = (Integer -> IO ())
+ - bytes sent or retrieved so far. -}
+type MeterUpdate = (Integer -> IO ())
{- An individual remote. -}
data RemoteA a = Remote {
@@ -49,7 +49,7 @@ data RemoteA a = Remote {
-- Remotes have a use cost; higher is more expensive
cost :: Int,
-- Transfers a key to the remote.
- storeKey :: Key -> AssociatedFile -> ProgressCallback -> a Bool,
+ storeKey :: Key -> AssociatedFile -> MeterUpdate -> a Bool,
-- retrieves a key's contents to a file
retrieveKeyFile :: Key -> AssociatedFile -> FilePath -> a Bool,
-- retrieves a key's contents to a tmp file, if it can be done cheaply