summaryrefslogtreecommitdiff
path: root/tests/Server.hs
diff options
context:
space:
mode:
authorSam T <pxqr.sta@gmail.com>2013-05-14 10:57:25 +0400
committerSam T <pxqr.sta@gmail.com>2013-05-14 10:57:25 +0400
commit50490ccb9ac98dc03a499972e693da8514779be6 (patch)
treec19c9eadb07ecc742aa94dff1ccb3556a40bccb5 /tests/Server.hs
parente8ce2092f9738072ddee1a677b5c6e8923f8627e (diff)
~ Move exsamples to tests.
Diffstat (limited to 'tests/Server.hs')
-rw-r--r--tests/Server.hs16
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 #-}
2module Main (main) where
3
4import Remote.KRPC
5import Shared
6
7
8main :: IO ()
9main = 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 ]