summaryrefslogtreecommitdiff
path: root/tests/Shared.hs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/Shared.hs')
-rw-r--r--tests/Shared.hs12
1 files changed, 11 insertions, 1 deletions
diff --git a/tests/Shared.hs b/tests/Shared.hs
index bf29365b..a04b6093 100644
--- a/tests/Shared.hs
+++ b/tests/Shared.hs
@@ -1,9 +1,16 @@
1{-# LANGUAGE OverloadedStrings #-} 1{-# LANGUAGE OverloadedStrings #-}
2module Shared 2module Shared
3 (echoM, echoBytes, unitM, swapM, reverseM, shiftR 3 ( echoM
4 , echoBytes
5 , unitM
6 , swapM
7 , reverseM
8 , shiftR
9 , rawM
4 ) where 10 ) where
5 11
6import Data.ByteString (ByteString) 12import Data.ByteString (ByteString)
13import Data.BEncode
7import Remote.KRPC 14import Remote.KRPC
8 15
9unitM :: Method () () 16unitM :: Method () ()
@@ -23,3 +30,6 @@ swapM = method "swap" ["x", "y"] ["b", "a"]
23 30
24shiftR :: Method ((), Int, [Int]) ([Int], (), Int) 31shiftR :: Method ((), Int, [Int]) ([Int], (), Int)
25shiftR = method "shiftR" ["x", "y", "z"] ["a", "b", "c"] 32shiftR = method "shiftR" ["x", "y", "z"] ["a", "b", "c"]
33
34rawM :: Method BEncode BEncode
35rawM = method "rawM" [""] [""] \ No newline at end of file