summaryrefslogtreecommitdiff
path: root/bench/Server.hs
diff options
context:
space:
mode:
Diffstat (limited to 'bench/Server.hs')
-rw-r--r--bench/Server.hs11
1 files changed, 11 insertions, 0 deletions
diff --git a/bench/Server.hs b/bench/Server.hs
new file mode 100644
index 00000000..cb5ed316
--- /dev/null
+++ b/bench/Server.hs
@@ -0,0 +1,11 @@
1{-# LANGUAGE OverloadedStrings #-}
2module Main (main) where
3
4import Remote.KRPC
5
6
7echo :: Method [Int] [Int]
8echo = method "echo" ["x"] ["x"]
9
10main :: IO ()
11main = server 6000 [ echo ==> return ]