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

import Data.BEncode
import Network.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)
  , rawM      ==> return
  , rawDictM  ==> return
  ]