summaryrefslogtreecommitdiff
path: root/examples/Server.hs
blob: 0407c304f6fec1f4fce19bfce68b1131ec03d8a6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
{-# LANGUAGE IncoherentInstances #-}
module Main (main) where

import Remote.KRPC
import Shared


main :: IO ()
main = server 6000
  [ unitM ==> return
  , echoM ==> return
  , swapM ==> \(a, b) -> return (b, a)
  , reverseM ==> return . reverse
  , shiftR ==> \(a, b, c) -> return (c, a, b)
  ]