blob: aaf6d9f2c603257afa1238ba9b97948064872e95 (
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 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)
, rawM ==> return
, rawDictM ==> return
]
|