The rpc-framework package

[Tags: bsd3, library, program]

A library and framework for making remote procedure calls in haskell easy and typesafe.

See http://github.com/mmirman/rpc-framework for more information.


[Skip to ReadMe]

Properties

Versions0.0.0.0, 0.0.0.1, 0.1.0.0, 0.2.0.0, 0.3.0.0, 1.0.0.0, 2.0.0.0, 2.0.0.1, 2.0.0.2
Change logNone available
Dependenciesbase (>=4.3 && <5.0), containers (>=0.4 && <0.6), mtl (>=2.0 && <2.2), network (>=2.0 && <2.5), rpc-framework, template-haskell (==2.7.*), transformers (>=0.2 && <0.4) [details]
LicenseBSD3
AuthorMatthew Mirman
Maintainermmirman@andrew.cmu.edu
CategoryNetwork, Web
Home pagehttp://github.com/mmirman/rpc-framework
Source repositoryhead: git clone git://github.com/mmirman/rpc-framework.git
Executablesrpc-test
UploadedWed Jul 25 21:35:34 UTC 2012 by MatthewMirman
Downloads1206 total (61 in last 30 days)
Votes
1 []
StatusDocs uploaded by user
Build status unknown [no reports yet]

Modules

[Index]

Downloads

Maintainers' corner

For package maintainers and hackage trustees

Readme for rpc-framework-0.0.0.1

rpc-framework

This is a framework for remote procedure calls in haskell.

Features

    putStrLn :: IO_World w => WIO w a
    installTextBox :: JS_World w => WIO w ()
    foo :: (Sendable a1 ,..., Sendable aN, Sendable b, Host w) => a1 -> ... -> aN -> WIO w b
    instance (Serializable a) => Sendable a
    instance (Sendable a, Sendable b) => Sendable (a -> b)

Usage

    $(makeHost "WorldName" "host_location" #portNumber)
    main = runServer $(makeServices [ 'nameOfService1, ... , 'nameOfServiceN])
    main = runServer $(autoService 'HostName)
    module First where
    services = $(autoService 'HostName)

    module Second where
    services = $(autoService 'HostName)

    module Main where
    import qualified First as F
    import qualified Second as S
    main = runServer $ F.services >> S.services
    addServer :: Integer -> WIO Server (Integer -> Integer)
    addServer t = do
        Server <- world
    return (t +)

    getRemoteAdd = $(rpcCall 'addServer)
    ...
    ghci> :t getRemoteAdd
    getRemoteAdd  :: Host w => Integer -> WIO w (Integer -> Integer)

Examples