-
Notifications
You must be signed in to change notification settings - Fork 6
/
json-rpc-client.cabal
130 lines (124 loc) · 5.09 KB
/
json-rpc-client.cabal
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
name: json-rpc-client
version: 0.2.5.0
x-revision: 10
license: MIT
license-file: LICENSE
category: Network, JSON
author: Kristen Kozak
maintainer: Kristen Kozak <grayjay@wordroute.com>
synopsis: JSON-RPC 2.0 on the client side.
build-type: Simple
extra-source-files: changelog.md
cabal-version: >=1.10
tested-with: GHC == 7.0.4, GHC == 7.4.2, GHC == 7.6.3,
GHC == 7.8.3, GHC == 7.10.1, GHC == 7.10.3,
GHC == 8.0.1, GHC == 8.0.2, GHC == 8.2.2,
GHC == 8.4.1, GHC == 8.4.4, GHC == 8.6.1
homepage: https://github.com/grayjay/json-rpc-client
bug-reports: https://github.com/grayjay/json-rpc-client/issues
description: Functions for creating a JSON-RPC 2.0 client. See
<http://www.jsonrpc.org/specification>. This library supports
batch requests and notifications, as well as single method
calls. It also provides a function for creating corresponding
server-side methods with the package
<http://hackage.haskell.org/package/json-rpc-server json-rpc-server>.
This library does not handle transport, so a function for
communicating with the server must be provided.
The demo folder contains an example client and server that can
be compiled with the demo flag. See "Network.JsonRpc.Client"
for details.
source-repository head
type: git
location: git://github.com/grayjay/json-rpc-client.git
flag demo
description: Builds the JSON-RPC demo client and server.
default: False
manual: True
library
exposed-modules: Network.JsonRpc.Client
Network.JsonRpc.ServerAdapter
build-depends: base >=4.3.1 && <4.13,
json-rpc-server >=0.2 && <0.3,
aeson >=0.7 && <1.5,
bytestring >=0.9.1 && <0.11,
mtl >=2.2.1 && <2.3,
text >=0.11.2 && <1.3,
unordered-containers >=0.2.3 && <0.3,
vector >=0.10 && <0.13,
vector-algorithms >=0.5.4 && <0.9
hs-source-dirs: src
default-language: Haskell2010
ghc-options: -Wall
other-extensions: CPP,
FlexibleContexts,
FlexibleInstances,
FunctionalDependencies,
MultiParamTypeClasses,
OverloadedStrings,
TypeOperators,
UndecidableInstances
executable demo-server
hs-source-dirs: demo
main-is: Server.hs
other-modules: Signatures
if flag (demo)
build-depends: base,
json-rpc-client,
json-rpc-server,
aeson,
bytestring >=0.9.2,
mtl,
text
default-language: Haskell2010
other-extensions: OverloadedStrings,
TypeOperators
else
buildable: False
executable demo-client
hs-source-dirs: demo
main-is: Client.hs
other-modules: Signatures
if flag (demo)
build-depends: base,
json-rpc-client,
json-rpc-server,
process >=1.1.0 && <1.7,
aeson,
bytestring >=0.9.2,
mtl,
text
default-language: Haskell2010
other-extensions: OverloadedStrings,
TypeOperators
else
buildable: False
test-suite tests
hs-source-dirs: tests
main-is: All.hs
other-modules: Tests, Properties
type: exitcode-stdio-1.0
build-depends: base,
json-rpc-client,
json-rpc-server,
aeson,
bytestring,
mtl,
scientific >=0.2 && <0.4,
text,
unordered-containers,
vector,
HUnit >=1.2.4 && <1.7,
QuickCheck >=2.4.2 && <2.14,
test-framework >=0.6 && <0.9,
test-framework-hunit >=0.3 && <0.4,
test-framework-quickcheck2 >=0.3 && <0.4
default-language: Haskell2010
ghc-options: -Wall -fno-warn-missing-signatures -fno-warn-orphans
other-extensions: CPP,
FlexibleContexts,
FlexibleInstances,
MultiParamTypeClasses,
OverloadedStrings,
TypeOperators,
TypeSynonymInstances,
UndecidableInstances