-
-
Notifications
You must be signed in to change notification settings - Fork 13
/
Copy pathcapnp.cabal
200 lines (186 loc) · 6.28 KB
/
capnp.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
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
cabal-version: 2.2
name: capnp
version: 0.18.0.0
category: Data, Serialization, Network, Rpc
copyright: 2016-2023 haskell-capnp contributors (see CONTRIBUTORS file).
author: Ian Denhardt
maintainer: ian@zenhack.net
license: MIT
license-file: LICENSE.md
homepage: https://codeberg.org/zenhack/haskell-capnp
bug-reports: https://codeberg.org/zenhack/haskell-capnp/issues
synopsis: Cap'n Proto for Haskell
description:
A native Haskell implementation of the Cap'N Proto cerialization format and
RPC protocol.
.
The library implements serialization and level 1 RPC.
.
The "Capnp.Tutorial" module is the best place to start reading; the
reference documentation can seem bewildering without that context.
build-type: Simple
extra-source-files:
README.md
, CHANGELOG.md
, CONTRIBUTING.md
, ci/README.md
, ci/Dockerfile
, core-schema/README.md
, core-schema/capnp/schema.capnp
, core-schema/capnp/stream.capnp
, core-schema/capnp/rpc-twoparty.capnp
, core-schema/capnp/persistent.capnp
, core-schema/capnp/rpc.capnp
, core-schema/capnp/compat/json.capnp
, core-schema/capnp/c++.capnp
, scripts/format.sh
, scripts/hlint.sh
, scripts/README.md
, scripts/regen.sh
, .stylish-haskell.yaml
, .gitattributes
, .gitignore
--------------------------------------------------------------------------------
source-repository head
type: git
branch: master
location: https://codeberg.org/zenhack/haskell-capnp.git
--------------------------------------------------------------------------------
common shared-opts
build-depends:
base >= 4.14 && < 5
, bytes >= 0.15.4 && <0.18
, bytestring >= 0.10 && <0.12
, containers >= 0.5.9 && <0.7
, data-default ^>= 0.7.1
, exceptions ^>= 0.10.0
, ghc-prim >= 0.6.1 && <0.11
, mtl >= 2.2.2 && <2.4
, primitive >= 0.6.3 && <0.9
, safe-exceptions ^>= 0.1.7
, text >= 1.2 && < 2.1
, transformers >= 0.5.2 && <0.7
, vector >= 0.12.0 && <0.14
, monad-stm ^>= 0.1
ghc-options:
-Wall
-- This warning is triggered by normal use of NamedFieldPuns, so it's a no-go
-- for us:
-Wno-name-shadowing
-- I(zenhack) find it rather odd that orphan instances are flagged when the
-- class and the type are in different modules but, the same *package*. We do
-- this in a number of places in the capnp package, so we disable this
-- warning. It's not super easy to write a package-level orphan by accident,
-- so we're not losing much.
-Wno-orphans
default-language: Haskell2010
--------------------------------------------------------------------------------
-- main runtime library.
library
import: shared-opts
hs-source-dirs:
lib
-- generated code:
gen/lib
exposed-modules:
Capnp.Address
, Capnp.Bits
, Capnp.Canonicalize
, Capnp
, Capnp.Accessors
, Capnp.Basics
, Capnp.Classes
, Capnp.Constraints
, Capnp.Rpc.Common
, Capnp.Rpc.Membrane
, Capnp.Rpc.Revoke
, Capnp.Rpc.Server
, Capnp.Convert
, Capnp.Errors
, Capnp.Fields
, Capnp.GenHelpers
, Capnp.GenHelpers.Rpc
, Capnp.IO
, Capnp.Message
, Capnp.Mutability
, Capnp.Pointer
, Capnp.Untyped
, Capnp.Repr
, Capnp.Repr.Methods
, Capnp.Repr.Parsed
, Capnp.TraversalLimit
, Capnp.Rpc
, Capnp.Rpc.Promise
, Capnp.Rpc.Untyped
, Capnp.Rpc.Errors
, Capnp.Rpc.Transport
, Capnp.Tutorial
, Data.Mutable
, Capnp.Gen
, Capnp.Gen.Capnp
-- BEGIN GENERATED SCHEMA MODULES
, Capnp.Gen.Capnp.Cxx
, Capnp.Gen.Capnp.Compat.Json
, Capnp.Gen.Capnp.Persistent
, Capnp.Gen.Capnp.Rpc
, Capnp.Gen.Capnp.RpcTwoparty
, Capnp.Gen.Capnp.Schema
, Capnp.Gen.Capnp.Stream
, Capnp.Gen.ById.Xbdf87d7bb8304e81
, Capnp.Gen.ById.X8ef99297a43a5e34
, Capnp.Gen.ById.Xb8630836983feed7
, Capnp.Gen.ById.Xb312981b2552a250
, Capnp.Gen.ById.Xa184c7885cdaf2a1
, Capnp.Gen.ById.Xa93fc509624c72d9
, Capnp.Gen.ById.X86c366a91393f3f8
-- END GENERATED SCHEMA MODULES
other-modules:
Internal.AppendVec
, Internal.SnocList
, Internal.Rc
, Internal.TCloseQ
, Internal.BuildPure
, Internal.STE
, Internal.Rpc.Breaker
, Internal.Rpc.Export
-- other-extensions:
build-depends:
hashable >= 1.2.7 && <1.5
, data-default-instances-vector ^>= 0.0.1
, stm ^>= 2.5.0
, stm-containers >= 1.1.0 && <1.3
, list-t ^>= 1.0.2
, focus ^>= 1.0.1
, async ^>= 2.2.1
, network-simple ^>= 0.4
, network >= 3 && <3.2
, supervisors ^>= 0.2.1
, lifetimes ^>= 0.2
, pretty-show >= 1.9.5 && <1.11
, template-haskell >=2.18 && <2.21
--------------------------------------------------------------------------------
-- code generator plugin
executable capnpc-haskell
import: shared-opts
hs-source-dirs: cmd/capnpc-haskell
main-is: Main.hs
other-modules:
IR.Name
, IR.AbstractOp
, IR.Common
, IR.Stage1
, IR.Flat
, IR.Haskell
, Trans.CgrToStage1
, Trans.Stage1ToFlat
, Trans.FlatToAbstractOp
, Trans.ToHaskellCommon
, Trans.AbstractOpToHaskell
, Trans.HaskellToText
, Check
build-depends:
capnp
, wl-pprint-text ^>= 1.2
, filepath ^>= 1.4.2
, directory ^>= 1.3.0
, bifunctors >= 5.5.8 && <5.7