name: jsonrpc-conduit
version: 0.2
synopsis: JSON-RPC 2.0 server over a Conduit.
description:
@jsonrpc-conduit@ implements the basic building block of a JSON-RPC 2.0 server.
.
It provides a @Conduit@ that consumes RPC requests and invokes user-provided
functions to handle them. Conversion of values to and from JSON is almost
completely automatic thanks to the @aeson@ library.
.
The JSON-RPC conduit is generic with respect to the channel used to exchange
data with the client. It can use a network connection or, for example,
the standard input / ouput of a process. The latter is demonstrated by the
@jsonrpc-conduit-demo@ executable, which can be compiled using the @demo@ flag.
license: GPL-3
license-file: LICENSE
author: Gabriele Sales
maintainer: gbrsales@gmail.com
category: Conduit
build-type: Simple
cabal-version: >=1.8
flag demo
description: Build the demo executable.
default: False
library
exposed-modules: Data.Conduit.JsonRpc.Methods,
Data.Conduit.JsonRpc.Server
build-depends: base >=4 && <5,
aeson ==0.6.*,
attoparsec ==0.10.*,
bytestring ==0.10.*,
conduit ==0.5.*,
mtl ==2.1.*,
text ==0.11.*,
transformers ==0.3.*,
unordered-containers ==0.2.*
executable jsonrpc-conduit-demo
if !flag(demo)
buildable: False
main-is: Data/Conduit/JsonRpc/Demo.hs
other-modules: Data.Conduit.JsonRpc.Methods,
Data.Conduit.JsonRpc.Server
build-depends: base >=4 && <5,
aeson ==0.6.*,
attoparsec ==0.10.*,
bytestring ==0.10.*,
conduit ==0.5.*,
mtl ==2.1.*,
text ==0.11.*,
transformers ==0.3.*,
unordered-containers ==0.2.*