summaryrefslogtreecommitdiff
path: root/RemoteClass.hs
diff options
context:
space:
mode:
authorGravatar Joey Hess <joey@kitenet.net>2011-03-29 16:21:21 -0400
committerGravatar Joey Hess <joey@kitenet.net>2011-03-29 16:21:21 -0400
commit475f7073613b7164302e3f826f60929cf4cd38f0 (patch)
tree8ce447a9549ede25e27fce04568955440ad539d7 /RemoteClass.hs
parente62f9816ab29dceb5489d520b9cf569ede2ffb52 (diff)
initremote now creates buckets
Diffstat (limited to 'RemoteClass.hs')
-rw-r--r--RemoteClass.hs7
1 files changed, 1 insertions, 6 deletions
diff --git a/RemoteClass.hs b/RemoteClass.hs
index 825197a4b..e16cbdbb0 100644
--- a/RemoteClass.hs
+++ b/RemoteClass.hs
@@ -14,17 +14,12 @@ import Data.Map as M
import Key
-{- A remote generator identifies configured remotes, and returns an action
- - that can be run to set up each remote, and a list of names of remotes
- - that are not cheap to set up. -}
-type RemoteGenerator a = ([a (Remote a)], [String])
-
{- There are different types of remotes. -}
data RemoteType a = RemoteType {
-- human visible type name
typename :: String,
-- generates remotes of this type
- generator :: a (RemoteGenerator a),
+ generator :: a [Remote a],
-- initializes or changes a remote
setup :: String -> M.Map String String -> a (M.Map String String)
}