rpc-framework- a remote procedure call framework

Safe HaskellNone




rpcCall :: Name -> Q ExpSource

$(rpcCall 'serviceNm) simply splices in realRemoteCall (undefined :: typeofcall) "serviceNm" which is typed in a manner similar to typeofcall.

makeHost :: String -> String -> Integer -> Q [Dec]Source

$(makeHost "HostName" "hostLocation" hostPortNumber) makes a newtype HostName and declares an instance Host HostName.

makeServices :: [Name] -> Q ExpSource

$(makeServices ['service1 ,..., 'serviceN]) makes all given services listen for incoming requests.

autoService :: Name -> Q ExpSource

$(autoService 'World) finds all services declared in the module that definitely run on the given world, and makes them listen for incoming requests.