From a2697b8253fdb564b7f5455e171493d4d6604f30 Mon Sep 17 00:00:00 2001 From: Ilya Portnov Date: Sun, 25 Apr 2010 22:38:44 +0600 Subject: [PATCH] Update README. --- README | 8 ++++++++ 1 files changed, 8 insertions(+), 0 deletions(-) diff --git a/README b/README index 50f151e..1340f87 100644 --- a/README +++ b/README @@ -13,6 +13,14 @@ typeclass. Moreover, Network.YAML.Derive module contains (TemplateHaskell) function deriveIsYamlObject, which will help you to declare `instance IsYamlObject ...' for almost any ADT. +RPC-client calls RPC-methods usually using one of two ways. First is to use +`call' (or `callDynamic') function from Network.YAML.Caller module. One need to +give method name as it's parameter. Second way is to use (TemplateHaskell-) +function `remote' from Network.YAML.WrapMethods module to declare wrapper +functions for RPC-methods. These wrappers will have same names as source +functions, and almost same behaivour. Single difference is that wrappers +require pair: (RPC-server host name, port number) as their first argument. + You can see examples of usage in files Test.hs and TestCall.hs. Haddock documentation is here: http://iportnov.ru/files/yaml-rpc/html/index.html. -- 1.7.2.3