diff options
Diffstat (limited to 'src/Remote/KRPC/Method.hs')
-rw-r--r-- | src/Remote/KRPC/Method.hs | 14 |
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 #-} |
10 | module Remote.KRPC.Method | 10 | module 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 | ||
21 | import Control.Applicative | ||
22 | import Data.BEncode | ||
23 | import Data.Set as S | ||
24 | |||
25 | import Remote.KRPC.Protocol | 20 | import 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 | } |
46 | methodQueryScheme :: Method a b -> KQueryScheme | ||
47 | methodQueryScheme = KQueryScheme <$> methodName | ||
48 | <*> S.fromList . methodParams | ||
49 | {-# INLINE methodQueryScheme #-} | ||
50 | |||
51 | |||
52 | methodRespScheme :: Method a b -> KResponseScheme | ||
53 | methodRespScheme = KResponseScheme . S.fromList . methodVals | ||
54 | {-# INLINE methodRespScheme #-} | ||
55 | 41 | ||
56 | -- TODO ppMethod | 42 | -- TODO ppMethod |
57 | 43 | ||