summaryrefslogtreecommitdiff
path: root/RemoteClass.hs
diff options
context:
space:
mode:
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)
}