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

import Remote.KRPC
import Shared


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