summaryrefslogtreecommitdiff
path: root/examples/Shared.hs
diff options
context:
space:
mode:
Diffstat (limited to 'examples/Shared.hs')
-rw-r--r--examples/Shared.hs6
1 files changed, 5 insertions, 1 deletions
diff --git a/examples/Shared.hs b/examples/Shared.hs
index 2d5b9cbb..e0e5268c 100644
--- a/examples/Shared.hs
+++ b/examples/Shared.hs
@@ -1,8 +1,9 @@
1{-# LANGUAGE OverloadedStrings #-} 1{-# LANGUAGE OverloadedStrings #-}
2module Shared 2module Shared
3 (echoM, unitM, swapM, reverseM, shiftR 3 (echoM, echoBytes, unitM, swapM, reverseM, shiftR
4 ) where 4 ) where
5 5
6import Data.ByteString (ByteString)
6import Remote.KRPC 7import Remote.KRPC
7 8
8unitM :: Method () () 9unitM :: Method () ()
@@ -11,6 +12,9 @@ unitM = method "unit" [] []
11echoM :: Method Int Int 12echoM :: Method Int Int
12echoM = method "echo" ["x"] ["x"] 13echoM = method "echo" ["x"] ["x"]
13 14
15echoBytes :: Method ByteString ByteString
16echoBytes = method "echoBytes" ["x"] ["x"]
17
14reverseM :: Method [Int] [Int] 18reverseM :: Method [Int] [Int]
15reverseM = method "reverse" ["xs"] ["ys"] 19reverseM = method "reverse" ["xs"] ["ys"]
16 20