rpc-0.0.1: type safe rpcs provided as basic IO actions

Network.RPC.Client

Synopsis

Documentation

fetch :: Address -> Q [Dec]Source

Splices in rpc calls to a given IP. Function names and types will remain the same as on the server side, with the result encapsulated in the IO monad. Usage:

    $(fetch (IP "127.0.0.1" 9000))

data Address

Constructors

IP HostName Int

Host name and port, either IPv4 or IPv6.

IPv4 HostName Int

Host name and port, only IPv4.

IPv6 HostName Int

Host name and port, only IPv6

Unix FilePath

Local unix socket, not supported on Windows.