summaryrefslogtreecommitdiff
path: root/src/Remote/KRPC/Method.hs
diff options
context:
space:
mode:
Diffstat (limited to 'src/Remote/KRPC/Method.hs')
-rw-r--r--src/Remote/KRPC/Method.hs14
1 files changed, 0 insertions, 14 deletions
diff --git a/src/Remote/KRPC/Method.hs b/src/Remote/KRPC/Method.hs
index 4283256b..4d91fe47 100644
--- a/src/Remote/KRPC/Method.hs
+++ b/src/Remote/KRPC/Method.hs
@@ -9,7 +9,6 @@
9{-# LANGUAGE FlexibleInstances, UndecidableInstances #-} 9{-# LANGUAGE FlexibleInstances, UndecidableInstances #-}
10module Remote.KRPC.Method 10module Remote.KRPC.Method
11 ( Method(methodName, methodParams, methodVals) 11 ( Method(methodName, methodParams, methodVals)
12 , methodQueryScheme, methodRespScheme
13 12
14 -- * Construction 13 -- * Construction
15 , method 14 , method
@@ -18,10 +17,6 @@ module Remote.KRPC.Method
18 , idM 17 , idM
19 ) where 18 ) where
20 19
21import Control.Applicative
22import Data.BEncode
23import Data.Set as S
24
25import Remote.KRPC.Protocol 20import Remote.KRPC.Protocol
26 21
27 22
@@ -43,15 +38,6 @@ data Method param result = Method {
43 -- | Description of each return value in /right to left/ order. 38 -- | Description of each return value in /right to left/ order.
44 , methodVals :: [ValName] 39 , methodVals :: [ValName]
45 } 40 }
46methodQueryScheme :: Method a b -> KQueryScheme
47methodQueryScheme = KQueryScheme <$> methodName
48 <*> S.fromList . methodParams
49{-# INLINE methodQueryScheme #-}
50
51
52methodRespScheme :: Method a b -> KResponseScheme
53methodRespScheme = KResponseScheme . S.fromList . methodVals
54{-# INLINE methodRespScheme #-}
55 41
56-- TODO ppMethod 42-- TODO ppMethod
57 43