summaryrefslogtreecommitdiff
path: root/src/Network/KRPC/Method.hs
diff options
context:
space:
mode:
Diffstat (limited to 'src/Network/KRPC/Method.hs')
-rw-r--r--src/Network/KRPC/Method.hs6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/Network/KRPC/Method.hs b/src/Network/KRPC/Method.hs
index f70923f5..68f1fa4e 100644
--- a/src/Network/KRPC/Method.hs
+++ b/src/Network/KRPC/Method.hs
@@ -38,7 +38,7 @@ import Network.KRPC.Message
38-- 38--
39-- * result: Type of return value of the method. 39-- * result: Type of return value of the method.
40-- 40--
41newtype Method param result = Method MethodName 41newtype Method param result = Method { methodName :: MethodName }
42 deriving (Eq, Ord, IsString, BEncode) 42 deriving (Eq, Ord, IsString, BEncode)
43 43
44-- | Example: 44-- | Example:
@@ -74,7 +74,9 @@ showsMethod (Method name) =
74-- method = \"ping\" 74-- method = \"ping\"
75-- @ 75-- @
76-- 76--
77class (BEncode req, BEncode resp) => KRPC req resp | req -> resp where 77class (Typeable req, BEncode req, Typeable resp, BEncode resp)
78 => KRPC req resp | req -> resp where
79
78 -- | Method name. Default implementation uses lowercased @req@ 80 -- | Method name. Default implementation uses lowercased @req@
79 -- datatype name. 81 -- datatype name.
80 -- 82 --