diff options
author | Sam T <pxqr.sta@gmail.com> | 2013-05-14 10:57:25 +0400 |
---|---|---|
committer | Sam T <pxqr.sta@gmail.com> | 2013-05-14 10:57:25 +0400 |
commit | 50490ccb9ac98dc03a499972e693da8514779be6 (patch) | |
tree | c19c9eadb07ecc742aa94dff1ccb3556a40bccb5 /tests/Server.hs | |
parent | e8ce2092f9738072ddee1a677b5c6e8923f8627e (diff) |
~ Move exsamples to tests.
Diffstat (limited to 'tests/Server.hs')
-rw-r--r-- | tests/Server.hs | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/tests/Server.hs b/tests/Server.hs new file mode 100644 index 00000000..f636b0be --- /dev/null +++ b/tests/Server.hs | |||
@@ -0,0 +1,16 @@ | |||
1 | {-# LANGUAGE IncoherentInstances #-} | ||
2 | module Main (main) where | ||
3 | |||
4 | import Remote.KRPC | ||
5 | import Shared | ||
6 | |||
7 | |||
8 | main :: IO () | ||
9 | main = server 6000 | ||
10 | [ unitM ==> return | ||
11 | , echoM ==> return | ||
12 | , echoBytes ==> return | ||
13 | , swapM ==> \(a, b) -> return (b, a) | ||
14 | , reverseM ==> return . reverse | ||
15 | , shiftR ==> \(a, b, c) -> return (c, a, b) | ||
16 | ] | ||