diff options
Diffstat (limited to 'tests/Shared.hs')
-rw-r--r-- | tests/Shared.hs | 12 |
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 #-} |
2 | module Shared | 2 | module 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 | ||
6 | import Data.ByteString (ByteString) | 12 | import Data.ByteString (ByteString) |
13 | import Data.BEncode | ||
7 | import Remote.KRPC | 14 | import Remote.KRPC |
8 | 15 | ||
9 | unitM :: Method () () | 16 | unitM :: Method () () |
@@ -23,3 +30,6 @@ swapM = method "swap" ["x", "y"] ["b", "a"] | |||
23 | 30 | ||
24 | shiftR :: Method ((), Int, [Int]) ([Int], (), Int) | 31 | shiftR :: Method ((), Int, [Int]) ([Int], (), Int) |
25 | shiftR = method "shiftR" ["x", "y", "z"] ["a", "b", "c"] | 32 | shiftR = method "shiftR" ["x", "y", "z"] ["a", "b", "c"] |
33 | |||
34 | rawM :: Method BEncode BEncode | ||
35 | rawM = method "rawM" [""] [""] \ No newline at end of file | ||